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

Andy Spiegl rspamd.andy at spiegl.de
Thu Apr 13 15:41:26 UTC 2023


Hi,

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";
  }
...


local.d/actions.conf
greylist = 4;
add_header = 7;
rewrite_subject = 8;
reject = 50;
# Set rewrite subject to this value (%s is replaced by the original subject)
subject = "+++SPAM+++(%d) %s"


Here's an example:
X-Rspamd-Server: lobo
X-Rspamd-Action: no action
X-Rspamd-Queue-Id: 57C8482D84
X-Rspamd-Pre-Result: action=no action;
        module=multimap;
        Matched map: KARIBU_BLACKLIST_TO_RCPT
X-Spamd-Result: default: False [9.90 / 50.00];
        KARIBU_BLACKLIST_TO_RCPT(8.00)[XXXXX-address-removed-by-me-XXXXXX];
        RDNS_NONE(1.00)[];
        FROM_NAME_HAS_TITLE(1.00)[dr];
        R_DKIM_ALLOW(-0.20)[arabrcp.org:s=root];
        R_SPF_ALLOW(-0.20)[+ip4:198.251.89.0/24];
        MIME_HTML_ONLY(0.20)[];
        ONCE_RECEIVED(0.10)[];
        DKIM_TRACE(0.00)[arabrcp.org:+];
        MIME_TRACE(0.00)[0:~];
        ASN(0.00)[asn:53667, ipnet:198.251.89.0/24, country:US];
        FROM_EQ_ENVFROM(0.00)[];
        FROM_HAS_DN(0.00)[];
        RDNS_DNSFAIL(0.00)[]
X-Spam-Level: *********

Thank you
 Andy

-- 
 A wise man gets more use from his enemies than a fool from his friends.
   (Baltasar Gracian)


More information about the Users mailing list