SpamAssassin with SAProxy

I’m happy to say that spam isn’t usually too much of a problem for me. I get about half a dozen messages per day on my main sunpig address. That’s a manageable volume. Most spam is very easy to spot based on its sender and subject line, and hitting the “delete” key a handful of time just isn’t that much effort.

Nonetheless, it’s annoying that I have to. I try to be careful where I pass out my email address, and even though the sunpig web site features email links (click on my name at the bottom of each post, or on the page banner), they are obfuscated by some custom javascript. I don’t run around signing up for random mailing lists, or buying stuff from companies without opt-in/opt-out mail policies (although they’re not always worth the bits they’re encoded in).

This is where SAProxy comes in. SAProxy is built on SpamAssassin, which is generally regarded as one of the best spam filters around. I had looked at SpamAssassin last year, but I’d been put off by the fact that it ran under Unix (or Linux). And even while I was running Linux on my desktop last year, it seemed confusing and difficult to get set up effectively.

Not any more. SAProxy rolls up the SpamAssassin engine in a nice little package for Windows that sits between your email program and your mail server. Normally your mail client (Outlook, Mozilla Mail, etc.) contacts your mail server directly to download its mail. SAProxy adds a proxy layer into the mix: your mailer speaks to the proxy, and the proxy contacts your mail server. When your mail is downloaded, the proxy runs all of it through the SpamAssassin filters. If it finds any spam, it adds the text “*****SPAM*****” to the subject line of the message. Then all you have to do is tell your mailer to automatically shunt all messages with this text into a junk folder. Every now and then you can quickly run through this folder to make sure that it hasn’t accidentally tagged any non-spam, and bulk delete the rest.

It’s very easy to set up, and it works with most modern mail programs under Windows. I installed it yesterday, and so far it has successfully caught all seven spam messages I received since then. It’s a small sample, but it looks very promising.

Ultimately, I would prefer a server-based solution, because the spam still does get downloaded onto my own computer. If the volume of spam were to increase, this could become a problem. But until then, it’s nice to have a clean inbox again.

Related entries:

Related Links

Mail delays

Blueyonder, our ISP, has been having some mail problems in the last few days:

“The current queue on the secondary MX (Mail eXchanger) for blueyonder.co.uk has grown to approximately 1.2 million e-mails that are queued for delivery to the primary server in Knowsley as well as the business domains that this server acts as a backup MX for.

“Of this 1.2 million we have identified that approximately 95% of this is spam due to a sustained attack against the mail platform over the last few days. Therefore this entire queue is going to be placed into quarantine and filtered into the mail platform in a controlled manner.”

I know that some people have seen their mail to me bounce back (including someone looking for more information about the Minidisc player I’m selling on eBay, causing them to retract their bid) so if you’ve sent me something important…you might want to try it again.

Diet: end of week two, end of Atkins

When I stood on the scales this morning they said 71.5kg. Two weeks ago I was up at 77kg. The Atkins diet may have lost me 5.5kg (12lbs) in just two weeks, but it has been really difficult. The bread cravings weren’t quite so bad in the second week. The nausea before mealtimes also mostly disappeared, only to be replaced by a complete lack of appetite. And I still got no joy from any of the food I ate.

I said I would stick with Atkins for the two weeks of the “induction” period, and I have, but that’s quite enough. I’ve switched to a low calorie diet now instead. If previous experience is anything to go by, 1500kCal per day should lose me about 0.5kg per week. I don’t expect to lose much this week, as my body will be adjusting to taking in carbohydrates again. If anything, I’ll probably go up a bit.

My goal is to get to 67kg. I’m pleasantly surprised that Atkins has got me half-way there in just two weeks, but that’s just not sustainable. On a low calorie diet I can eat everything I enjoy most (bread, rice, bread) and still lose weight. It may take longer, but I’d always expected to be in this for the long run.

Being able to have bread at lunch today was a joy beyond words. Forget chocolate. Give me a couple of slices of wholemeal, and I’m a happy man.

Alex’s pages are now locked down

As of earlier this evening, Alex’s web pages are now closed off from public access. We’ve had too many incidents of people grabbing pictures of Alex from the site and using them elsewhere. We were also noticing an increase in the amount of people being sent to Alex’s pages from search engines (Google and Yahoo in particular) based on bizarre and sometimes creepy search queries.

(No, I’m not going to say what the search phrases are, because then my pages will end up indexed under those words instead.)

Rather than hack together a bunch of code to do the password-protection myself, I decided to move Alex’s site out of Movable Type and into phpBB. phpBB is a bulletin board tool rather than a blogging tool. But the purpose of Alex’s pages is to keep our friends and family up to date with what’s going on in his life. A bulletin board allows us to publish stories and pictures just as effectively as a blog does. And by going with phpBB, I didn’t have to spend hours/days implementing a custom user management system.

(Top programming tip: wherever possible, avoid writing your own code.)

Anyway, it’s up and running now at last. The only problem is that our ISP’s mail servers are being overwhelmed by spam attacks (so they say), and all of our incoming mail is being delayed by up to twelve hours. I can see that several people have already registered themselves (including two complete strangers, who came in via AOL and Google), but I haven’t received the activation emails yet. I can approve accounts without the activation emails, but that results in the user in question not getting an email to confirm that they have been activated. So if you’re waiting to get in…sorry! It may take a little while…

Opera 7.10 – gone

Frank tried Opera 7.10 and found it wanting, too. I have now also moved back down to 7.03, and I’m much happier with it.

I’m quite disappointed about that. I started using Opera when it was still at version 5, and every version since then has been a step forward, adding at least some feature or bug fix that improved my browsing experience. I hope that 7.10 is an anomaly, and that 7.11 will patch things up again.