Eliminating Spam With Spam Assassin's Learning Function
Many people receive hundreds spam messages for each genuine email. Spam Assassin usually gets rid of 80-90% of them, but it misses many spam messages. That means you may receive ten spams for each bona fide message. Spam Assassin's heuristic learning function can get rid of most of the remaining spam.
- Create a folder in mbox format named
spam2. Each time a spam message gets past Spam Assassin, put it in the spam2 folder instead of deleting it. Only messages that Spam Assassin missed should go into this folder. In pine, this is done by typing 's' and then typing 'spam2'.
- Make sure your .spamassassin/bayes* files are writable
chmod a+rw .spamassassin/bayes*
- After your spam2 folder has accumulated at least 200-300
messages (i.e., after about three days), change to the directory
where spam2 is located and invoke the
Spam Assassin pattern recognition program:
sa-learn --spam --mbox spam2. It will take several minutes to analyze the messages.
- Afterward, your spam should decrease by roughly a factor of ten. (I used to receive about 100 spam messages per day that were missed by Spam Assassin; now it's down to about 10 per day.)