[Rspamd-Users] Custom rules: score is added but has no effect

Gerald Galster list+rspamd at gcore.biz
Thu Apr 13 16:10:33 UTC 2023


> I added a few rules in local.d/multimap.conf and the score is actually
> added to the total spam score of the matching mails.  If the threshold is met
> the X-Spamd-Result still stays false and the subject is not rewritten.
> (example below)
> The score of the built-in rules is taken into account, though.
> 
> Did I miss some vital config setting for my custom rule?
> 
> local.d/multimap.conf:
> ...
> KARIBU_BLACKLIST_TO_RCPT {
>      type = "rcpt";
>      filter = "email:addr";
>      map = "${LOCAL_CONFDIR}/local.d/blacklist_to_rcpt.map";
>      description = "Local TO blacklist";
>      score = 4.0;
>      action = "accept";

Try to remove action = "accept";

Best regards,
Gerald



More information about the Users mailing list