On Tue, Feb 25, 2003 at 11:30:33AM +1300, Hamish McBrearty wrote:
> OK, I asked this one on www.justlinux.com but didn't get any takers. I'm
> trying to get my many email addresses organised. I've setup Gotmail to
> forward all my mail to a pop account, which Fetchmail downloads, as well
> as some other pop accounts. Postfix picks them up from there and I check
> them using Evolution. Sounds simple enough really. 
> 
> How do I add Spamassassin to the mix to help filter out the crap I get?
> I've searched on this and can't seem to find anything simple, or anything
> that doesn't involve Sendmail.

Hey, re-reading that, I noticed that although you invoked many other
fine pieces of software in your question, you didn't seem to be using
procmail - so my advidce on running spamAssassin from within procmail
was missing out a vital step!

Go get procmail :-) It'll be on your system already, most likely. Get
postfix to deliver your email to a command instead of to a file ... one
of the easy ways to do that is to make use of the '.forward' file in
your home directory that pretty much every mail system will look at, if
it exists :-

~/.forward:
|/usr/local/bin/procmail

Now every item of mail coming in to your account will be passed into
procmail instead of being delivered to an inbox file (please don't be
using IMAP - that'll complicate things, but not too much)

Procmail reads a list of instructions in ~/.procmailrc, looks at the
incoming email, makes alterations to it if you want, and will then put
the message into any file you want. In other words, it can organise your
incoming email into folders before you see it ... as well as look for
spam, and delete things if you are confident that you don't want them.
All good fun. A very good companion piece of software to fetchmail ...

-jim

Reply via email to