fetchmail, procmail & bogofilter (weed out SPAM)


Subject: fetchmail, procmail & bogofilter (weed out SPAM)
From: dhul (dhull@digitaloverload.net)
Date: Mon Jun 16 2003 - 09:33:34 AKDT


“Linux Magazine” has an article on bogofilter. It’s another tool in the fight against SPAM. I finally set it up last night.

Here’s what I’m using.

1. fetchmail
2. procmail
3. bogofilter
4. Evolution

For those of you who don’t know bogofilter is a bayesian SPAM filter. It’s kind of like AI for SPAM filtering. You have to teach it. In the beginning it doesn’t know much if anything. To teach it you give it some SPAM and HAM (good email). Bogofilter then learns what email should be labeled SPAM and what should be labeled HAM.

Bogofilter rates every email with a spamisity rating. Good email gets a rating of 0. In between email might get a rating of .4 something. SPAM might get a rating of .9 something too 1.

The more you teach it the better bogofilter will be at determining SPAM from HAM. This system is much better then a simple list of words that might be found in SPAM. A system that uses a list of words might label good email as SPAM because it has the words in the list. Bogofilter might give the same email a spamisity of .4 something. This means the email is listed has HAM or good email.

Here is how I have this configured.

1. fetchmail gets my email from my pop3 account and sends it to procmail

2. procmail filters the mail through bogofilter. If the email is SPAM it goes into /home/dhull/Mail/spam. If it is not SPAM it goes into /home/dhull/Mail/unseen

3. Evolution is configured to get mail locally from /home/dhull/Mail/unseen

So far I like bogofilter. I still get SPAM but a lot less then I did before. To solve this problem I created a SPAM folder in Evolution. When I get SPAM I place it in the SPAM folder. These messages will be sent to bogofilter and labeled as SPAM. The next time I get my mail it should weed out more SPAM.

You can learn more here http://bogofilter.sourceforge.net/

I hope this helps. If anyone wants to see config files let me know and I’ll post them on the list.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Mon Jun 16 2003 - 09:33:18 AKDT