From ed0e23a25095965c478193c8c4770f7d93b4ec6c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 6 Apr 2018 09:36:20 +0100 Subject: [PATCH] [Minor] Fix setting of whitelisted rcpts and users --- src/plugins/lua/ratelimit.lua | 4 +--- 1 file changed, 1 insertion(+), 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 -- 2.39.5