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

Andy Spiegl rspamd.andy at spiegl.de
Fri Apr 14 17:50:25 UTC 2023


On 2023-04-14, 15:57, Gerald Galster wrote:
> Why is it rejected then?
That's exactly the question! :-)

> It should be rejected with 50+ hitpoints. How many do you get now?
It got only 10.

> Check your logs or mail header which rules trigger.
> Perhaps you have set action = "reject" elsewhere?
Good point!  But I doublechecked and found no rules with "reject".

Uhmm, and doesn't this message (to the sender):
>> SMTP error from remote server for TEXT command, host: xxx.yyy.de
>> (aa.bb.cc.dd) reason: 554 5.7.1 Matched map: KARIBU_BLACKLIST_TO_RCPT
mean that the reason for the rejection was my rule KARIBU_BLACKLIST_TO_RCPT ?
But at that point in time it did not contain any "action" setting.

> Action is usually used in prefilter context to stop further processing.
> Just don't set it if you don't need it to get default behaviour (that means
> thresholds from local.d/actions.conf apply).
Okay, thanks.  That's how I read the documentation and it's exactly the
behaviour I'd like to have.

Well, I'll play around some more with all the settings.

Thanks a lot for your hints,
 Andy

-- 
 Just because something doesn't do what you planned it to do doesn't mean it's useless.
   (Thomas A. Edison)


More information about the Users mailing list