[Rspamd-Users] Rspamd multimap message "unknown action reject"

Alex JOST jost+lists at dimejo.at
Wed Jun 19 14:05:41 UTC 2019


Am 19.06.2019 um 14:06 schrieb Emanuel Gonzalez:
> Hello everyone.!
> 
> I create this rule:
> 
> BODY_CONTENT_RJT {
>         type = "content";
>         filter = "body";
>         map = "${LOCAL_CONFDIR}/local.d/body_reject.map.inc";
>         action = "reject";
>         regexp = true;
> }
> 
> # cat body_reject.map.inc
> /baja[0-9][0-9]\@yopmail\.com/
> /baseconstruccion\@hotmail\.com/
> /formu9\@hotmail\.com/
> /(nomasmails \@ gmail\.com)/
> 
> 
> 2019-06-19 08:59:51 #24127(normal) <9dc2f3>; task; lua_metric_symbol_callback: call to (BODY_CONTENT_RJT) failed (2): /usr/share/rspamd/plugins/multimap.l
> ua:571: unknown action reject; trace: [1]:{[C]:-1 - set_pre_result [C]}; [2]:{/usr/share/rspamd/plugins/multimap.lua:571 - callback [Lua]}; [3]:{/usr/shar
> e/rspamd/plugins/multimap.lua:459 - match_element [Lua]}; [4]:{/usr/share/rspamd/plugins/multimap.lua:585 - match_rule [Lua]}; [5]:{/usr/share/rspamd/plug
> ins/multimap.lua:706 - match_content [Lua]}; [6]:{/usr/share/rspamd/plugins/multimap.lua:823 - process_func [Lua]}; [7]:{/usr/share/rspamd/plugins/multima
> p.lua:888 - multimap_callback [Lua]}; [8]:{/usr/share/rspamd/plugins/multimap.lua:896 - <unknown> [Lua]};
> 
> Will the backslash to escape the special characters be causing a problem?
> 
> Should I force the action through the force_actions.conf file?

I think you need to enable pre-filter support.

   https://rspamd.com/doc/modules/multimap.html#pre-filter-maps

-- 
Alex JOST


More information about the Users mailing list