Skip to content

Commit d012f2e

Browse files
authored
Exim rate limit for Debian9
1 parent 62de766 commit d012f2e

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

install/debian/9/exim/exim4.conf.template

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,20 @@ DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
5656
# ACL CONFIGURATION #
5757
# Specifies access control lists for incoming SMTP mail #
5858
######################################################################
59+
60+
acl_not_smtp = acl_not_smtp
61+
5962
begin acl
6063

64+
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
67+
68+
warn ratelimit = 0 / 1h / strict / $authenticated_id
69+
log_message = Sender rate [limitlog]: log / account / $authenticated_id / $sender_rate / $sender_rate_period
70+
71+
accept
72+
6173
acl_check_spammers:
6274
accept hosts = +whitelist
6375

@@ -89,7 +101,13 @@ acl_check_mail:
89101
acl_check_rcpt:
90102
accept hosts = :
91103

92-
deny message = Restricted characters in address
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
106+
107+
warn ratelimit = 0 / 1h / strict / $authenticated_id
108+
log_message = Sender rate [limitlog]: log / email / $authenticated_id / $sender_rate / $sender_rate_period
109+
110+
deny message = Restricted characters in address
93111
domains = +local_domains
94112
local_parts = ^[.] : ^.*[@%!/|]
95113

0 commit comments

Comments
 (0)