[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Postfix and SASL



I am trying to get SASL working with Postfix so I can authenticate SMTP users. Having some problems. The testsaslauthd app runs fine and returns a success, but when I telnet and try to authenticate as below, it fails. Any ideas? Thanks.

Debian testing
Postfix 2.0.19-1
sasl2-bin 2.1.18-4

mkrauselin# cat /etc/postfix/sasl/smtpd.conf
mech_list: LOGIN PLAIN
minimum_layer: 0
#pwcheck_method: auxprop
pwcheck_method: saslauthd
auto_transition: no
saslauthd_path:/var/run/saslauthd/mux

mkrauselin# ps -axf
/usr/sbin/saslauthd -m /var/run/saslauthd -a pam

mkrauselin# testsaslauthd -u mkrause -p testing1
0: OK "Success."

mkrauselin# perl -MMIME::Base64 -e 'print encode_base64("mkrause\0mkrause\0testing1");' yields bWtyYXVzZQBta3JhdXNlAHRlc3Rpbmcx

mkrauselin# telnet localhost 25
Trying 127.0.0.1...
Connected to MKRAUSELIN.
Escape character is '^]'.
220 MKRAUSELIN ESMTP Postfix (Debian/GNU)
ehlo mkrauselin
250-MKRAUSELIN
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
auth plain bWtyYXVzZQBta3JhdXNlAHRlc3Rpbmcx
535 Error: authentication failed

/var/log/mail.log reads

Apr 28 08:29:58 MKRAUSELIN postfix/smtpd[9935]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory Apr 28 08:29:58 MKRAUSELIN postfix/smtpd[9935]: warning: SASL authentication failure: Password verification failed Apr 28 08:29:58 MKRAUSELIN postfix/smtpd[9935]: warning: MKRAUSELIN[127.0.0.1]: SASL plain authentication failed







Reply to: