Skip to content

I think I did pretty well under the circumstances

Procmail

This will be the last time I talk about this, but here's my anti-rubbish procmail filter.

It correctly copes with:

  • Foreign character sets that I can't read.
  • Bounces from joe-jobs.
  • Malformed emails.

Obviously edit to suit your tastes. Especially with regard to character sets - it is a wide brush which is tarring a group unfairly. That said in practise it works for me.

If you want real antispam filtering then you should probably be looking at externalising it, or having a layered approach.

ObQuote: Citizen Kane

Comments On This Entry

  1. [gravitar] Shot
    ‘Check for invalid Message-Id: […] Two @s’ – technically you can have a legal Message-Id of the form "@"@domain, for example. But yes, it’s most probably bogus anyway. :)