Hi
I have very big trouble setting up SMTP AUTH with postfix. Here goes
summary:
- system is Mandrake 10.1
- postfix-2.1.4, cyrus-sasl-2.1.19, libsasl2, libsasl2-plug-login-2.1.19,
libsasl2-plug-plain-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
- 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/
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".
Commenting out just the smtpd_sasl_auth_enable line makes the postfix run
..... (without AUTH of course)
I'm stuck. Any help?
Regards.
Piotr.
|