Dec. 11, 2006, 10:46 p.m.

Using Gmail as a Spam Filter

I've been using spamassassin for quite a while now which helped quite a bit at first, but then the spammers caught up. When I first read about greylisting, I wrote a toolkit for postfix that was quite successful, but they eventually caught up again.

Today, I set up my home mail to go to my blackberry. That's where I realized my spam was out of control again. I was forced to come up with a new strategy.

My new strategy: Gmail.

When a mail message comes in, I have procmail check to see if it's been through gmail. If not, I forward it to an account I have set up on gmail. If it has, I do my normal processing. I'm using fetchmail to pull mail from gmail via POP and redelivering it locally under the original email address.

This has put about a fifteen minute latency into my mail, but I'll spend much less time fruitlessly marking anti-bayesian crap as spam.

So my current mail processing sequence is as follows:

  1. greylist
  2. gmail
  3. spamassassin

So far, it seems to be quite successful. I looked at the spam stuff on the gmail box and it's got the stuff spamassassin hasn't been able to touch.

blog comments powered by Disqus