We add Exim4 for VestaCP

Mail is not sent when connecting an account to any mail program.

We go to the Exim4 server settings through the VectaCP control panel

We are looking for such a line

begin acl

Insert this code before this line

acl_not_smtp = acl_not_smtp

Looking for a line again

begin acl

After this line, insert this code

# for PHP scripts, limit per vesta user
  acl_not_smtp :
deny message = Web site of $ authenticated_id user is sending too much emails - rate overlimit = $ sender_rate / $ sender_rate_period
ratelimit = 20/1h / $ authenticated_id
accept

Then we look for such a piece of code

acl_check_rcpt :
  accept hosts =:

After it, insert such a code

# for SMTP authenticated users, limit per email account
  deny message = Email account $ authenticated_id is sending too much emails - rate overlimit = $ sender_rate / $ sender_rate_period
ratelimit = 20/1h / $ authenticated_id

The number 20 means the number of letters per hour on the 1 account

Save, done

The decision is taken from here https://forum.vestacp.com/viewtopic.php?t=12623&start=20

After that, you must definitely perform the operation with Dovecot according to the instructions here

Leave a Reply

Your email address will not be published.