Tag: mail

Redirecting outgoing mail with Postfix

We have a various staging deployments of our systems at Brightbox and need to test that the emails they send are correct. We have a bunch of test accounts registered with various email addresses and we wanted them all to go to our dev team, rather than the original recipient.

Rather than write support for this into our apps, we used Postfix to redirect the mail to our devs.

In our case, our staging deployments use a local installation of Postfix and the systems are generally not used by anything else, which makes this dead easy.

Firstly, write a rewrite map file, with the following one line of content. Call it /etc/postfix/recipient_canonical_map:

/./ devteam@example.com 

Then configure Postfix like this (in /etc/postfix/main.cf):

 recipient_canonical_classes = envelope_recipient recipient_canonical_maps = regexp:/etc/postfix/recipient_canonical_map 

Now all mail going through this relay will be redirected to devteam@example.com. It rewrites only the envelope, so the important headers are not changed.

Hula calendar and mail server proprietaryness

I played with Hula a few weeks ago. I really didn’t spend very long with it, but managed to get it working on Ubuntu Breezy and connected to it with Evolution IMAP client. A big fat tip if you’re planning on having a go with it: don’t use the official Ubuntu packages. The ones I used were old and really sucked; I got nowhere with them. There are packages for Debian on the Hula site that worked well for me.
(more…)