Limit of sent emails

Post Reply
dpeca
Site Admin
Posts: 163
Joined: Fri Jun 19, 2020 9:59 am
Limit of sent emails

Post by dpeca »

By defalt, each email account and each website (but limited per user account) has limit of maximum 40 sent emails per hour.

If you want to alter that limit, edit /etc/exim4/exim4.conf.template

Find:

Code: Select all

  deny message = Web site is sending too much emails [limitlog]: deny / account / $authenticated_id / $sender_rate / $sender_rate_period
  ratelimit = 40 / 1h / $authenticated_id
This is a limit for PHP scripts (websites), limited to 40 mails per hour per user account.
You can alter 40 to any larger number if you want wider limit.

Find:

Code: Select all

  deny message = Email account is sending too much emails [limitlog]: deny / email / $authenticated_id / $sender_rate / $sender_rate_period
  ratelimit = 40 / 1h / $authenticated_id
This is a limit for each email account (authenticated with username and password on SMTP protocol), limited to 40 mails per hour per email account.
You can alter 40 to any larger number if you want wider limit.

After changes restart exim:

Code: Select all

service exim4 restart
All sent emails will be logged to /var/log/exim4/mainlog file (with counter per each user)
Example for website:

Code: Select all

2020-07-25 21:41:46 1jzQ3G-0002Qp-8w U=forum Warning: Sender rate [limitlog]: log / account / forum / 7.0 / 1h
Example for email account:

Code: Select all

2020-07-25 20:54:33 H=(DESKTOPGFKPG74) [188.255.1xx.xx] Warning: Sender rate [limitlog]: log / email / [email protected] / 4.0 / 1h

Tags:


Post Reply