Page 1 of 1

Limit of sent emails per day (24h)

Posted: Sun Jul 05, 2020 12:49 pm
by n1ebieski
Hi, Is it possible to set a limit of sent emails per one day (24h) instead per one hour?

Re: Limit of sent emails per day (24h)

Posted: Sun Jul 05, 2020 1:32 pm
by myVesta
Edit /etc/exim4/exim4.conf.template

- this line - https://github.com/myvesta/vesta/blob/m ... plate#L110
- and this line - https://github.com/myvesta/vesta/blob/m ... mplate#L70

I think replacing 1h to 24h will works.

Then restart exim:

Code: Select all

service exim4 restart

Re: Limit of sent emails per day (24h)

Posted: Wed Jul 15, 2020 11:29 pm
by arktex54
dpeca wrote: Sun Jul 05, 2020 1:32 pm Edit /etc/exim4/exim4.conf.template

- this line - https://github.com/myvesta/vesta/blob/m ... plate#L110
- and this line - https://github.com/myvesta/vesta/blob/m ... mplate#L70

I think replacing 1h to 24h will works.

Then restart exim:

Code: Select all

service exim4 restart
How do I set rate limit ignore to a domain? Like one that sends camera recordings 500/hr. Just a number... idk real number.

Re: Limit of sent emails per day (24h)

Posted: Thu Jul 16, 2020 12:40 am
by myVesta
I must check it.
I can't promise when it will be, i will try in next 10 days.

Re: Limit of sent emails per day (24h)

Posted: Sat Jul 25, 2020 8:21 am
by Ominae
dpeca wrote: Sun Jul 05, 2020 1:32 pm Edit /etc/exim4/exim4.conf.template

- this line - https://github.com/myvesta/vesta/blob/m ... plate#L110
- and this line - https://github.com/myvesta/vesta/blob/m ... mplate#L70

I think replacing 1h to 24h will works.

Then restart exim:

Code: Select all

service exim4 restart
ratelimit = 40 / 1h /
40 is it the amount of mail?

if i replace this
warn ratelimit = 0 / 1h /

for this
warn ratelimit = 1 / 24h /

who receives a warning email?
the user or the administrator?

Re: Limit of sent emails per day (24h)

Posted: Sat Jul 25, 2020 3:43 pm
by myVesta
Ominae wrote: Sat Jul 25, 2020 8:21 am ratelimit = 40 / 1h /
40 is it the amount of mail?
Yes.
Ominae wrote: Sat Jul 25, 2020 8:21 am if i replace this
warn ratelimit = 0 / 1h /

for this
warn ratelimit = 1 / 24h /

who receives a warning email?
the user or the administrator?
User will receive error message during the sending of message.
I'm planing to make some montoring service that will alert admin (not only about this, but also for big load avarage, low disk space, if some service goes down, etc...)

Re: Limit of sent emails per day (24h)

Posted: Sat Jul 25, 2020 9:41 pm
by myVesta
warn ratelimit does nothing except it log sent emails to /var/log/exim4/mainlog

warn ratelimit = 0 / 1h / means "log sent email if counter of sent emails is above 0", which means log all sent emails