aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/ratelimit.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-06 09:36:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-06 09:36:20 +0100
commited0e23a25095965c478193c8c4770f7d93b4ec6c (patch)
tree934504b8b88d0ca48f8207ea701df8ff28d802c5 /src/plugins/lua/ratelimit.lua
parent7f7ee7f0f3e6a9c0d47b8d229f1746ab2cd024b2 (diff)
downloadrspamd-ed0e23a25095965c478193c8c4770f7d93b4ec6c.tar.gz
rspamd-ed0e23a25095965c478193c8c4770f7d93b4ec6c.zip
[Minor] Fix setting of whitelisted rcpts and users
Diffstat (limited to 'src/plugins/lua/ratelimit.lua')
-rw-r--r--src/plugins/lua/ratelimit.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index d70516517..38405c4c2 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -29,8 +29,6 @@ local settings = {
bounce_senders = { 'postmaster', 'mailer-daemon', '', 'null', 'fetchmail-daemon', 'mdaemon' },
-- Do not check ratelimits for these recipients
whitelisted_rcpts = { 'postmaster', 'mailer-daemon' },
- whitelisted_ip = {},
- whitelisted_user = {},
prefix = 'RL',
ham_factor_rate = 1.01,
spam_factor_rate = 0.99,
@@ -514,7 +512,7 @@ if opts then
else
-- Stupid default...
settings.whitelisted_rcpts = lua_maps.rspamd_map_add_from_ucl(
- opts.whitelisted_rcpts, 'set', 'Ratelimit whitelisted rcpts')
+ settings.whitelisted_rcpts, 'set', 'Ratelimit whitelisted rcpts')
end
if opts['whitelisted_ip'] then