[Rspamd-Users] Disable autolearn per user for spam-reporting mailbox

Gerald Galster list+rspamd at gcore.biz
Wed Feb 19 14:31:08 UTC 2020


Hi,

> our users should be able to forward spam-mails to our helpdesk, so we
> can train the filters better.
> How can we disable bayes auto-learning for this recipient-mailbox?
> 
> We have
> 
> classifier "bayes" {
>    tokenizer {
>    name = "osb";
>    }
> 
>    backend = "redis";
>    #servers = "127.0.0.1:6379";
>    min_tokens = 11;
>    min_learns = 200;
>    autolearn = [-0.5, 15]
> 
> in place. Thank you.


https://rspamd.com/doc/modules/multimap.html

See the pre-filter maps examples (IP_WHITELIST ...)
You could create a map with type rcpt and put the recipient address there.
With prefilter=true; and action = "accept"; no filters will be processed.

> PS: Can we maybe just let the users forward mails to our
> spamtrap-addresses or would that be bad, as coming from a legitimate
> email?


There might be users that forward legitimate mail, e.g. newsletters
they don't want to read anymore instead of unsubscribing.

Best regards
Gerald



More information about the Users mailing list