From: Patrick Ben Koetter (p at state-of-mind dot de)
Date: Wed May 25 2005 - 09:52:28 EDT
* Piotr Strycharz <>:
> I have very big trouble setting up SMTP AUTH with postfix. Here goes
> - system is Mandrake 10.1
> - postfix-2.1.4, cyrus-sasl-2.1.19, libsasl2, libsasl2-plug-login-2.1.19,
> - ldd smtpd - OK (linked to libsasl2.so.2)
> - options in main.cf: smtpd_sasl_auth_enable = yes;
> smtpd_sasl_security_options = noanonymous; smtpd_sasl_application_name =
> smtpd; smtpd_sasl_local_domain = $myhostname; smtpd_sasl_path =
> /etc/postfix/sasl; smtpd_recipient_rectrictions = permit_sasl_authenticated,
> permit_mynetworks, check_relay_domains
> - lines in /etc/postfix/sasl/smtpd.conf: pwcheck_method: saslauthd;
> mech_list: plain login
> - saslauthd demon is running
> - SASL_AUTHMECH=pam in /etc/sysconfig/saslauthd file
> - smtpd in /etc/pam.d
Must be "smtp" because it is the service name "smtp" that PAM needs to know.
> - testsaslauthd -u ... -p ... -r smtpd ends with OK "Succcess"
> - when starts, saslauthd creates hardlink /var/lib/sasl2/mux to
> /var/spool/postfix/var/lib/sasl2/. Mux has rwx permissions for all.
> So, it is supposed to work. But it does not. Telnet to port 25 almost
> immediately closes connection (no 220 invitation from postfix). Connection
> makes also error in mail logs: "fatal: no SASL authentication mechanism".
Seems like Postfix can't find the SASL libs...
Take Postfix out of the chroot, reset the saslauthd socket and test again.
p at rick
-- The Book of Postfix <http://www.postfix-book.com> SMTP AUTH debug utility: <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>