diff options
Diffstat (limited to 'conf/modules.d/ratelimit.conf')
-rw-r--r-- | conf/modules.d/ratelimit.conf | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/conf/modules.d/ratelimit.conf b/conf/modules.d/ratelimit.conf index 97833c6f5..863dc9a3d 100644 --- a/conf/modules.d/ratelimit.conf +++ b/conf/modules.d/ratelimit.conf @@ -14,9 +14,6 @@ # See https://rspamd.com/doc/tutorials/writing_rules.html for details ratelimit { - .include(try=true,priority=5) "${DBDIR}/dynamic/ratelimit.conf" - .include(try=true,priority=1) "$LOCAL_CONFDIR/local.d/ratelimit.conf" - .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/ratelimit.conf" rates { # Limit for all mail per recipient (burst 100, rate 2 per minute) to = [100, 0.033333333]; @@ -35,4 +32,8 @@ ratelimit { #symbol = "R_RATELIMIT"; whitelisted_rcpts = "postmaster,mailer-daemon"; max_rcpt = 5; + + .include(try=true,priority=5) "${DBDIR}/dynamic/ratelimit.conf" + .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/ratelimit.conf" + .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/ratelimit.conf" } |