Page 1 of 1

How to limit per hour sending mails

Posted: Thu Apr 23, 2015 6:10 am
by kautukbhatnagar
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.



Re: How to limit per hour sending mails

Posted: Wed Apr 29, 2015 6:58 pm
by skurudo
Test your domain first - - 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 -

Example code, in your exim config file:

Code: Select all

acl_not_smtp = acl_not_smtp

begin acl

                deny message = Sender rate overlimit - $sender_rate / $sender_rate_period
                ratelimit = 50 / 1h / leaky

                deny message = Sender rate SMTP overlimit - $sender_rate / $sender_rate_period
                ratelimit = 100 / 1h / leaky

                accept  hosts = net-lsearch;/etc/exim/whitelist