Skip to content

Commit cbf09f3

Browse files
Update exim4.conf.template
1 parent 4ac24b0 commit cbf09f3

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

install/ubuntu/18.04/exim/exim4.conf.template

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ acl_not_smtp = acl_not_smtp
6161

6262
begin acl
6363

64+
# Limit per user for PHP scripts
6465
acl_not_smtp:
65-
deny message = Web site is sending too much emails [limitlog]: deny / account / $authenticated_id / $sender_rate / $sender_rate_period
66-
ratelimit = 40 / 1h / $authenticated_id
66+
deny message = Website of user $authenticated_id is sending too many emails - rate overlimit = $sender_rate / $sender_rate_period
67+
ratelimit = 100 / 1h / $authenticated_id
6768

68-
warn ratelimit = 0 / 1h / strict / $authenticated_id
69-
log_message = Sender rate [limitlog]: log / account / $authenticated_id / $sender_rate / $sender_rate_period
69+
warn ratelimit = 0 / 1h / strict / $authenticated_id
70+
log_message = Sender rate [limitlog]: log / account / $authenticated_id / $sender_rate / $sender_rate_period
7071

7172
accept
7273

@@ -101,11 +102,12 @@ acl_check_mail:
101102
acl_check_rcpt:
102103
accept hosts = :
103104

104-
deny message = Email account is sending too much emails [limitlog]: deny / email / $authenticated_id / $sender_rate / $sender_rate_period
105-
ratelimit = 40 / 1h / $authenticated_id
105+
# Limit per email account for SMTP auhenticated users
106+
deny message = Email account $authenticated_id is sending too many emails - rate overlimit = $sender_rate / $sender_rate_period
107+
ratelimit = 200 / 1h / $authenticated_id
106108

107-
warn ratelimit = 0 / 1h / strict / $authenticated_id
108-
log_message = Sender rate [limitlog]: log / email / $authenticated_id / $sender_rate / $sender_rate_period
109+
warn ratelimit = 0 / 1h / strict / $authenticated_id
110+
log_message = Sender rate [limitlog]: log / email / $authenticated_id / $sender_rate / $sender_rate_period
109111

110112
deny message = Restricted characters in address
111113
domains = +local_domains

0 commit comments

Comments
 (0)