Skip to content

Commit

Permalink
Merge pull request #4498 from fatalbanana/rbl_symbols_prefixes
Browse files Browse the repository at this point in the history
[Fix] rbl: fix dependency registration when symbols_prefixes is used
  • Loading branch information
vstakhov committed May 27, 2023
2 parents acc419d + 868a85c commit 92f695c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/lua/rbl.lua
Expand Up @@ -1088,13 +1088,15 @@ local function add_rbl(key, rbl, global_opts)
lua_util.debugm(N, rspamd_config, 'rule dump for %s: %s',
rbl.symbol, rbl)

local check_sym = rbl.symbol_prefixes and rbl.symbol .. '_CHECK' or rbl.symbol

if rbl.dkim then
rspamd_config:register_dependency(rbl.symbol, 'DKIM_CHECK')
rspamd_config:register_dependency(check_sym, 'DKIM_CHECK')
end

if rbl.require_symbols then
for _,dep in ipairs(rbl.require_symbols) do
rspamd_config:register_dependency(rbl.symbol, dep)
rspamd_config:register_dependency(check_sym, dep)
end
end

Expand Down

0 comments on commit 92f695c

Please sign in to comment.