Moving from Qmail to Postfix

Annika Backstrom
in misc, on 19 August 2007. It is tagged and #Linux.

I'm migrating e-mail servers, changing from Qmail to Postfix along the way. These settings have been necessary so far:

   home_mailbox = Maildir/
   recipient_delimiter = -

The former sets up mail delivery for Maildirs (obviously), and the latter replaces the Postfix-style address separator of "+" (the plus character) with the Qmail-style "-" (dash, minus).

I've also updated .procmailrc to handle the address extensions that were formerly handled by dot-qmail files. Before, mail sent to would be handled by ~/.qmail-sample. Now procmail will route these messages for me. First I uncommented the correct mailbox_command:

    mailbox_command = /usr/bin/procmail -a "$EXTENSION"

Then I updated my .procmailrc to handle extensions:


* EXTENSION ?? ^^sample^^

The important bits are mapping the "-a" flag back to EXTENSION for readability, and the syntax of the matching line.