Remove first 'Recieved' header with Postfix
I used to have problems with sending mail via my own Postfix install. The first hop for all my emails would originate from a dynamic IP:
Received: from [192.168.0.200] (203-59-192-211.dyn.iinet.net.au [203.59.192.211])
by mx.bluebottle.net.au (Postfix) with ESMTPSA id E3345C34170
for <user@domain.com>; Wed, 25 Jun 2008 22:45:41 +0800 (WST)
This caused problems with a few misconfigured SpamAssassin installs, which did RBL checks against every IP in the Received chain(!) and marked the message as being in the PBL or whatever. To work around this, I did the following:
/etc/postfix/main.cf:
header_checks = regexp:/etc/postfix/header_checks
/etc/postfix/header_checks:
/^Received:.*by\ mx.bluebottle.net.au\ \(Postfix\)\ with\ ESMTPSA/ IGNORE
This won't fire on incoming mail, because the 'A' in ESMTPSA stands for 'Authenticated', that is, the client used SMTP-AUTH to login before sending the mail.
This action totally drops the header, which has a number of consequences you should be aware of:
- bounce processing can be disrupted
- you lose any in-message records of the source of mail
If you don't mind the above problems, this is a nice method. If you want a more robust solution you can change the IGNORE action to a REPLACE, and write up a dummy 'Received' header entry.
Comment (0)DKIMproxy with Postfix
I used DKIMproxy 1.0.0 and Postfix 2.5, but the setup should be reasonably forwards-compatible. When setting this up, I followed the guides at the DKIMproxy homepage, and made a few other changes:
Comment (1)Vodafone Mobile Broadband on Ubuntu - part 2
I installed Ubuntu 8.04 x64 onto my new laptop, and discovered a far nicer way to hop on the net with my Huawei E220: Vodafone Mobile Connect Card driver. Unlike last time I tried it, the latest build (2.0.beta3) worked more or less out of the box.
The app does a lot more than just wvdial, you can In Theory send/receive SMSes, as well as follow your quota usage. I say 'In Theory', because the former doesn't seem to work for me, and the latter is just painfully slow to draw and update when dragged around the screen. Other problems:
- Moving the USB Device between ports while the laptop is on (yay USB hotswap!) fails 100% of the time for me,
- Using the device when it wasn't plugged in at boot time is sketchy,
- Tends to think you're plugging in a new device every time you use it.
- Randomly borks far more than wvdial ever did (which was never), not too much if you don't poke it while it's working though.
None of those problems really matter for me, and since it can minimise to the tray I've happily migrated across. Far more newbie friendly too.
Comment (0)HOWTO: Wordpress & lighttpd nice blog permalinks
Or maybe, that should be HOWNOTTO:
Into lighttpd.conf:
$HTTP["host"] == "bluebottle.net.au" {
[...]
url.rewrite-once = ( "^/blog/(200./.*)" => "/blog/index.php?$1" )
}
Into Wordpress admin -> settings -> permalinks -> custom structure:
/%year%/%postname%
If you don't speak regex, here's what you should know:
- Guaranteed to break 1st January 2010 or your money back.
- Don't make any files / folders under 'blog' called '200x', where x is any single character. (You shouldn't make any folders under there anyway, because that makes upgrading painful.)