aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2023-12-12 22:53:23 +0200
committerAndrew Lewis <nerf@judo.za.org>2023-12-12 22:53:23 +0200
commitd06fc3bea376118d912821d106cf50ba03588ffa (patch)
tree11423b5ab0716f1bdcee6c0e5c92bf5d2e19c727 /src/plugins
parenta639c5fae0943ce758e9dc36cb57a2e81849c933 (diff)
downloadrspamd-d06fc3bea376118d912821d106cf50ba03588ffa.tar.gz
rspamd-d06fc3bea376118d912821d106cf50ba03588ffa.zip
[Feature] rbl: support disabling or replacing url_whitelist per RBL
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/rbl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index fda7cce16..a18f9a731 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -1117,11 +1117,11 @@ local function add_rbl(key, rbl, global_opts)
end
end
- if not rbl.whitelist and global_opts.url_whitelist and
+ if not rbl.whitelist and not rbl.ignore_url_whitelist and (global_opts.url_whitelist or rbl.url_whitelist) and
(rbl.urls or rbl.emails or rbl.dkim or rbl.replyto) and
not (rbl.from or rbl.received) then
local def_type = 'set'
- rbl.whitelist = lua_maps.map_add_from_ucl(global_opts.url_whitelist, def_type,
+ rbl.whitelist = lua_maps.map_add_from_ucl(rbl.url_whitelist or global_opts.url_whitelist, def_type,
'RBL url whitelist for ' .. rbl.symbol)
rspamd_logger.infox(rspamd_config, 'added URL whitelist for RBL %s',
rbl.symbol)