Joe Blogs » Archive of 'Sep, 2004'

Getmail, Spamassassin and Procmail

I got a new server machine recently and spent quite a while getting it back to the same state as my old one. The thing that I found most difficult was getting my mail properly and dealing with it nicely.

I used to use spamassassin run via procmail from getmail version 3 on my P75, but it made it crawl so badly I gave up. When I came to install it this time on a 1GHz Duron, I found getmail had changed a lot and my old config no longer worked. I’d also heard about spamd/spamc and thought it sounded better. I had a lot of problems getting a working system, mainly due to annoying little things so I’ll briefly document them here for the great good (ha!).

Getmail is a much nicer replacement for the evil fetchmail and although it took a bit of getting my head around, version 4 seems even better.

There are examples for all sorts of different uses. I use it to get my email from a pop3 box and then pass it to spamassassin before passing it on to procmail to filter into various folders.

My getmailrc is below [options] verbose = 2 readall = true delete = true messagelog = ~/.getmail/log [retriever] type = SimplePOP3Retriever server = mail.wrigley.me.uk username = joe password = password [filter] type = Filterexternal path = /usr/bin/spamc [destination] type = MultiDestination destinations = ("[procmail-as-joe]",) [procmail-as-joe] type = MDAexternal path = /usr/bin/procmail arguments = ('~joe/.procmailrc', ) user = joe

The main problem I had was with getting spamd to work. It was largely down to overlooking the fact that I hadn’t enabled it. D’oh!

In /etc/default/spamassassin (or somewhere similar if not Debian Sarge) make sure that you set ENABLED=1

Then /etc/init.d/spamassassin restart

I can’t be bothered to fully write this up right now. If you think I might know the answer to a question about it all, drop me a line (or leave a comment or something)

GMail Invitations

Quick one, I have 6 gmail invitations to give away. Please leave your name and email address as a comment if you want one. If you’ve been living under a rock for the last whatever Gmail is the new webmail service from Google and it gives you a lot of disk space and is nicely searchable and stuff.

Check the comments to see if I have any left.

© 2008 Joe Blogs is powered by WordPress

Spam Karma 2 has sent 33825 comments to hell and 82 comments to purgatory. The total spam karma of this blog is -46881. What's your karma?