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


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.




  1. April 6, 2009  4:50 pm by faxless payday loans Reply

    Hi, I can?t understand how to add your site in my rss reader. Can you Help me, please :)

  2. Pingback : Garett

  3. October 30, 2010  8:29 am by Seasons Reply

    Maybe you should edit the page subject title Feed spamassassin with spam or ham - Linux * Screw to more suited for your blog post you write. I liked the the writing still.

Leave a reply


Your email address will not be published.