[Rspamd-Users] More than one Multimap matches added symbol weight together... config fail?

Alexander Moisseev moiseev at mezonplus.ru
Wed Feb 5 11:23:48 UTC 2020


05.02.2020 14:04, Daniel, Sebastian пишет:
> Hello,
> 
> i have a rule in my multimap.conf, that will be added per hit the symbol weight. The rule is this:
> 
> spam_content {
>        type = "header";
>        header = "subject";
>        map = "regexp_multi;/etc/rspamd/local.d/content.map";
>        symbol = "SPAM_CONTENT";
>    }
> 
> The map contains the keywords.
> 
> If one Subject contains 2 or more oft he keywords, rspamd will add the weight as result. For example the subject matched 3 keywords and the symbol weigth is 6, rspamd added 18 Points for this Symbol.
> 

You wanted "per hit"? So you get it: 3 matches - 3*score.

Probably you need to use "regexp" map type instead of "regexp_multi".
https://rspamd.com/doc/tutorials/writing_rules.html#using-maps-from-lua-plugin


More information about the Users mailing list