From: Vsevolod Stakhov Date: Fri, 6 Apr 2018 08:36:20 +0000 (+0100) Subject: [Minor] Fix setting of whitelisted rcpts and users X-Git-Tag: 1.7.3~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ed0e23a25095965c478193c8c4770f7d93b4ec6c;p=rspamd.git [Minor] Fix setting of whitelisted rcpts and users --- 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