[Rspamd-Users] replies module error "Attempt to perform arithmetic [on string]"

Gerald Galster list+rspamd at gcore.biz
Tue Sep 10 02:26:39 UTC 2024


>>> I noticed an error ...
>>> ...
>>> call to (REPLIES_SET) failed (2):
>>> /usr/local/share/rspamd/plugins/replies.lua:276: attempt to perform
>>> arithmetic on field 'expire' (a string value); trace:
>>> [1]:{/usr/local/share/rspamd/plugins/replies.lua:276 - <unknown> [Lua]};
>>> Any ideas?
>> rspamadm configtest?
>> --
>> 73,
>> Ged.
> 
> (root at rivendell) 242# rspamadm configtest
> implicitly enabling luapattern returncodes_matcher for rule SH_EMAIL_ZRD
> implicitly enabling luapattern returncodes_matcher for rule SPAMHAUS_ZRD
> syntax OK

Have a look at https://rspamd.com/doc/modules/replies.html

If your config looks like that, create it from scratch (no copy & paste),
to rule out any invisible chars that might interfere.

Basically expire = 5d; is accepted here.

Best regards,
Gerald



More information about the Users mailing list