Limit of sent emails per day (24h)
- myVesta
- Site Admin
- Posts: 963
- Joined: Fri Jun 19, 2020 9:59 am
- Has thanked: 10 times
- Been thanked: 6 times
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:
- 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.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 /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
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?
- myVesta
- Site Admin
- Posts: 963
- Joined: Fri Jun 19, 2020 9:59 am
- Has thanked: 10 times
- Been thanked: 6 times
Yes.
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...)
- myVesta
- Site Admin
- Posts: 963
- Joined: Fri Jun 19, 2020 9:59 am
- Has thanked: 10 times
- Been thanked: 6 times
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
warn ratelimit = 0 / 1h / means "log sent email if counter of sent emails is above 0", which means log all sent emails