We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
How to limit per hour sending mails
-
- Posts: 14
- Joined: Thu Apr 23, 2015 6:05 am
How to limit per hour sending mails
Hello Friends,
I am just a beginner and had install VESTCP on my VPS but i don't know how to limit per hour sending mails.
Could anybody suggest me how to do it.
Also if somebody suggest how to stop mail relaying, if somebody is trying to relay mails from my server.
Looking for the solution.
Thanks
Kautuk
I am just a beginner and had install VESTCP on my VPS but i don't know how to limit per hour sending mails.
Could anybody suggest me how to do it.
Also if somebody suggest how to stop mail relaying, if somebody is trying to relay mails from my server.
Looking for the solution.
Thanks
Kautuk
Re: How to limit per hour sending mails
Test your domain first - https://sku.su/WbB68 - have you open relay or not. Default config prevents your software work as open relay. It's not good for tech karma, you know :)
You can use ratelimit for limit user.
Manual - https://sku.su/WD3SV
Example code, in your exim config file:
You can use ratelimit for limit user.
Manual - https://sku.su/WD3SV
Example code, in your exim config file:
Code: Select all
acl_not_smtp = acl_not_smtp
begin acl
acl_not_smtp:
deny message = Sender rate overlimit - $sender_rate / $sender_rate_period
ratelimit = 50 / 1h / leaky
accept
acl_check_rcpt:
deny message = Sender rate SMTP overlimit - $sender_rate / $sender_rate_period
ratelimit = 100 / 1h / leaky
accept hosts = net-lsearch;/etc/exim/whitelist