[Rspamd-Users] symbol insertion issue: unknown symbol
Philip Paeps
philip at trouble.is
Wed Sep 9 03:33:51 UTC 2026
We apply a ALLOW_DKIM_SIGN symbol to mail we want signed and check for
it in rspamd.lua:
local.d/rspamd.lua:
-- Disable dkim signing for all the cases except specific ones
rspamd_config:add_condition("DKIM_SIGNED", function(task)
return task:has_symbol('ALLOW_DKIM_SIGN')
end)
The symbol is defined in local.d/groups.conf:
local.d/groups.conf
symbol "ALLOW_DKIM_SIGN" {
score = 0.0;
weight = 0.0;
name = "ALLOW_DKIM_SIGN";
description = "Allow DKIM signing";
}
In local.d/settings.conf we set the symbol. E.g.:
bugzilla_outbound {
from = '/^bugzilla-noreply at freebsd.org$/i';
ip = ["2610:1c1:1:606c::19:3"];
apply { symbols_enabled = ["DKIM_SIGNED", "ARC_SIGNED",
"ARC_CALLBACK" ] };
symbols = ["ALLOW_DKIM_SIGN"];
priority = low;
}
I upgraded from rspamd-3.11.0 to rspamd-4.1.0_1 this morning (yes yes
... big jump) and we are now seeing this in our logs:
/var/log/rspamd/rspamd.log:2026-09-09 00:26:19 #42979(rspamd_proxy)
<4hfhSC>; proxy; lua_task_insert_result_common: symbol insertion issue:
unknown symbol ALLOW_DKIM_SIGN; trace:
[1]:{/usr/local/share/rspamd/plugins/settings.lua:422 - fun [Lua]};
[2]:{/usr/local/share/rspamd/lualib/fun.lua:34 - call_if_not_empty
[Lua]}; [3]:{/usr/local/share/rspamd/lualib/fun.lua:192 - each [Lua]};
[4]:{/usr/local/share/rspamd/plugins/settings.lua:421 - <unknown>
[Lua]};
Curiously, mail seems to be signed that we don't expect to see signed.
I guess that's better than not signing email that ought to be signed but
... still not ideal.
Could someone please gently hit me with a clue mallet?
Thank you. :)
Philip
More information about the Users
mailing list