Configuring SMTP AUTH
in Postfix is pretty straightforward now that you have managed to set up and configure Cyrus SASL. The first thing you need to do is to check if Postfix was built to support SMTP authentication. Use the ldd
utility to check if the Postfix smtpd
daemon has been linked to libsasl:
# ldd /usr/libexec/postfix/smtpd | grep libsasl
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00002aaaabb6a000)
If you don't get any output, you will probably have to rebuild Postfix. Read the SASL_README
from the Postfix README_FILES
directory to get detailed information on what you must include in the CCARGS
and AUXLIBS
statements.
Once you've verified that Postfix supports SMTP AUTH
, you need to verify that the smtpd
daemon does not run chrooted
while you configure SMTP AUTH
. Many people spend hours with a chrooted
Postfix that cannot access the saslauthd
socket before they realize that the reason is the chroot
jail. A Postfix smtpd...