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


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.


0 Responses to “Feed spamassassin with spam or ham”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s



%d bloggers like this: