[Rspamd-Users] Force a Spam Score

Gerald Galster list+rspamd at gcore.biz
Mon Sep 16 17:05:52 UTC 2024


> I'm setting up a system where the spam is never rejected, but will be filtered by dovecot-sieve.  But I'm having trouble testing it in a controlled virtual environment because none of the emails I'm sending are being judged as spam (even though I'm taking them from my extensive collection of saved spam).

Train your bayes filter first if you haven't already done so.
Rspamd.log tells you about too few spam/ham samples.

> Is there a way I can force a particular score in an eMail for testing purposes?

There are multiple ways, e.g.

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

or temporarily lower the add_header score, ...
https://github.com/rspamd/rspamd/blob/master/conf/actions.conf

You can find message scores in rspamd.log.

Best regards,
Gerald


More information about the Users mailing list