[Rspamd-Users] Whitelisting recipients and bypass bayes autolearning

Aban Dokht mlist at abando.de
Wed Oct 13 11:32:20 UTC 2021


Hello,


I need to formward SPAM, phishing and other suspect emails to a external security company, let's say samples at example.com.

To not block outgouing mail, I have added the following to /etc/rspamd/local.d/multimap.conf:

LOCAL_WL_RECIPIENT {
     type = "rcpt";
     map = "$LOCAL_CONFDIR/local.d/local_wl_rcpt.map.inc";
     description = "Recipient is trusted";
     action= "no action"
     prefilter=true
}

and added samples at example.xom to local_wl_rcpt.map.inc.

Mails sent to samples at example.com pass rspamd as expected, score is 0.


But emails do get lerned by Bayes, as I have configured Bayes to learn < 0.5

/etc/rspamd/local.d/classifier-bayes.conf:
autolearn = [0.5, 5]


How can I prevent rspamd to learn emails to recipielnt in local_wl_rcpt.map.inc?

Do I really need to set the score > 0.5 in multimap.conf?

Or is there some better way, like action= "no action + no autolearn" ?



Regards
Aban

-- 
  Aban Dokht                                   aban.dokht at abando.de
------------------------------------------------------------------


More information about the Users mailing list