[Rspamd-Users] Impact of Whitelisted Messages on Bayes/Neural Learning in rspamd

Denny Friebe denny.friebe at icera-network.de
Wed Aug 6 15:10:42 UTC 2025


Hello everyone,
I’m currently using a cronjob to send out a daily spam report to 
mailboxes that do not use IMAP. This report is intended to inform users 
about newly received messages that were classified as spam. It includes 
details such as the reception time, Envelope-From, From, Subject, and 
the IP address of the sender, all formatted in a table.

Initially, these reports were themselves marked as spam by rspamd. To 
address this, I created a multimap based whitelist that includes the 
full sender email address:

WHITELIST_FROM {
     type = "from";
     map = "$CONFDIR/local.d/whitelist_from.map";
     description = "Local from whitelist";
     action = "accept";
}

This works as expected. Rspamd now accepts the reports without flagging 
them as spam.

However, I am wondering how this affects the Bayes or neural learning 
process. (i use autolearning)
Are these whitelisted messages still included in the classifier training 
despite being accepted via multimap?
If so, is there a recommended way to exclude them from training to avoid 
negatively impacting the learning accuracy?


More information about the Users mailing list