[Rspamd-Users] Ok another one...

Michelle Sullivan michelle at isux.com
Sun Sep 14 23:10:59 UTC 2025



> On 15 Sep 2025, at 02:09, Florian Piekert <floppy at floppy.org> wrote:
> 
> E.g. as in my multimap.conf:
> 
> The action directive?
> 
> BLACKLIST_HARD_SENDER_BLOCKED {
>  extract_from = "mime";
>  type = "from";
>  filter = "email:addr";
>  map = "$LOCAL_CONFDIR/local.d/blacklist.hard.sender.map";
>  message = "The sender is in this host's blacklist. Mail is rejected.";
>  symbol = "BLACKLISTED_SENDER";
>  action = "reject";
>  score = 100.0;
>  one_shot = true;
> }
> 

no, in 2 parts..

1/ i need to do it programmatically.
2/ i found i could put in for example:

reject=15; # default
hard_reject=15; # non overridable
soft_reject=15; # user can whitelist 

however if the score is 10, it doesn't matter i select (using task:set_pre_result) soft_reject rspamc returns "add_header"..  however if i push the score to 15, game on can select any of the 3 rejects.

Michelle

> 
> 
>> Am 14.09.2025 um 17:46 schrieb Michelle Sullivan:
>> Ok followup...
>>>> On 14 Sep 2025, at 22:39, Michelle Sullivan <michelle at isux.com> wrote:
>>> 
>>> Ok answering my own question for the record.
>>> 
>>>> On 14 Sep 2025, at 09:08, Michelle Sullivan <michelle at isux.com> wrote:
>>>> 
>>>> 
>>>> 
>>>>> On 14 Sep 2025, at 07:44, Michelle Sullivan <michelle at isux.com> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>>> On 14 Sep 2025, at 01:29, Vsevolod Stakhov <vsevolod at rspamd.com> wrote:
>>>>>> 
>>>>>> On 13/09/2025 15:30, Michelle Sullivan wrote:
>>>>>>> PD_FROM_CHECK is my module.. but there is also the issue with the bayes module so I am leaning it’s a config issue…
>> It seems I can’t return a custom action unless it’s defined in actions.conf .. that’s all good, however it appears that applying a score to those actions results in the actions only working when the score is reached.
>> I was under the impression that task:set_pre_result would allow one to set the action regardless of the score..(and flags)
>> Is there a way to force an action regardless of score?


More information about the Users mailing list