Feed spamassassin with spam or ham

The easiest way to feed spamassassin with spam is:

spamassassin -r < message.txt

To revoke spam message use:

spamassassin -k < message.txt

If you use Bayes just execute:

sa-learn –showdots –mbox –spam spam-file

and/or

sa-learn –showdots –mbox –ham ham-file

Please note: don’t feed Bayes weith different mail streams or public spams. These method will mislead Bayes into believing certain tokens are spammy or hammy when they are not.

SHARE:
nv-author-image

Stefan Durand

My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

Leave a Reply

Your email address will not be published. Required fields are marked *