aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-20 16:22:54 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-20 16:23:12 +0100
commit447681fc808436f82b76016b8212697400843094 (patch)
tree2e98d95919954ce04d6bb98eed94e178249aa6af /src
parent7457d466d9e0d8186e1141f89b6265c13b7140ea (diff)
downloadrspamd-447681fc808436f82b76016b8212697400843094.tar.gz
rspamd-447681fc808436f82b76016b8212697400843094.zip
[Minor] Add more whitelists debugging
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/rbl.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index 1e339b1f5..44d718d9e 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -282,7 +282,12 @@ end
local function gen_rbl_callback(rule)
local function is_whitelisted(task, req, req_str, whitelist, what)
- if rule.ignore_whitelist then return false end
+ if rule.ignore_whitelist then
+ lua_util.debugm(N, task,
+ 'ignore whitelisting checks to %s by %s: ignore whitelist is being set',
+ req_str, rule.symbol)
+ return false
+ end
if rule.whitelist then
if rule.whitelist:get_key(req) then
@@ -951,6 +956,10 @@ local function add_rbl(key, rbl, global_opts)
end
if not rbl.is_whitelist and rbl.ignore_whitelist == false then
table.insert(black_symbols, rbl.symbol .. '_CHECK')
+ else
+ lua_util.debugm(N, rspamd_config, 'rule %s ignores whitelists: rbl.is_whitelist = %s, ' ..
+ 'rbl.ignore_whitelist = %s',
+ rbl.symbol, rbl.is_whitelist, rbl.ignore_whitelist)
end
else
id = rspamd_config:register_symbol{