Remove first ‘Recieved’ header with Postfix


June 25th, 2008

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.

DKIMproxy with Postfix


June 25th, 2008

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:

Continue reading »

Vodafone Mobile Broadband on Ubuntu – part 2


June 25th, 2008

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.

HOWTO: Wordpress & lighttpd nice blog permalinks


June 25th, 2008

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.)

Vostro 1500 Review – Even Better!


June 23rd, 2008

I replaced my former Dell Vostro 1310 with a 1500. In the end, the smaller keyboard was too cramped. There weren’t really any other problems with it, although I’ll pretend it needed a more powerful video card.

My new Vostro 1500 cost about the same, and has similar specs. Main differences:

  • T8100 CPU. Slower, just.
  • Geforce 8600M 256mb GPU. Significantly better, but still won’t play Crysis.
  • 15.1″ 1680×1050 screen. A little brighter, but the far better resolution has only been awesome so far.
  • 9-cell battery. This lasts for a lot longer, despite the bigger screen. About 3.5hrs while doing stuff. Even more if I play with the power settings.

The keyboard is a lot better. Same size as my old Inspiron 1501. The only bad part is the the Home/End/PgUp/Down keys are full size keys added as an extra column on the far right, instead of half sized buttons along the top. Unusual placement, and the bottom two are hard to push anyway. Related: the arrow keys are full sized, but there’s no spare space around them, which is also confusing.

Has Bluetooth, no fingerprint reader. Everything worked out of the box with Ubuntu 8.04.

Because I got a 9-cell battery you get a beefier power brick, which probably helps charging. BTW, the charger plug for all three of my Dell laptops is the same, they bricks are 100% interchangeable.

Socket layout on the laptop is saner than the 1310, but still not as nice as the 1501. Power cable is near the middle of the back, the ethernet is on the right side towards the back. Headphones are on the right, CDROM is on the right front. Only the ethernet port is annoying.

Either the CD Drive randomly ejects, or I am accidentally pushing the button a lot. The latter is probably what I’m doing, although the eject button on the drive is small. Will probably get used to this.

Overall: Smaller laptops have their place, but that place is not on my desk! My new near-desktop replacement was a wise choice.

Archives

Misc