Once upon a time I had Postfix configured to authenticate incoming SMTP connections with Courier’s authdaemond. Then I moved servers, it stopped working, and I never was able to figure out why it failed due to a rather generic error message. I worked through my options and arrived at the following:
Courier and most of Postfix were configured a long time ago, so I’m going to focus on the changes I made this evening while they are fresh.
Open /etc/default/saslauthd and change the following:
That last option tells it to connect to the IMAP server running on localhost and pass in the realm (domain) of the user. You will most likely need that -r option if you are hosting multiple domains.
Now start saslauthd: /etc/init.d/saslauthd start
Restart postfix: /etc/init.d/postfix restart
Postfix now authenticates against my IMAP server, and I can forget that I wrote this until the next time I execute a server migration.
Next: PyTexas 2010 Afterglow Previous: The 7:00 AM Phone Call