Hi, there,
I am trying to setup postfix smtp auth (PLAIN and CRAM-MD5)
with cyrus-sasl. My sytem is a mandrake 9.1 with postfix 2.0.12
from cooker, and the stock cyrus-sasl 2.1.12.
The result is:
sasl2-sample-server and sasl2-sample-client works ok with
auxprop in
/usr/lib/sasl2/smtpd.conf
PLAIN smtp auth is ok, with saslauthd in
/usr/lib/sasl2/smtpd.conf
and SASL_AUTHMECH=shadow in /etc/sysconfig/saslauthd
However, when use pwcheck_method=auxprop in smtpd.conf,
PLAIN smtp auth fails with password verification failure,
CRAM-MD5 auth fails with "no secret found".
I can see that sasl2-sample-server/client and postfix smtpd both
invoked /usr/lib/sasl2/libplain.so.2.0.12. I tried substitute with
a modified version and I can see my modifed error message appeared.
And I do see smtpd opened /var/lib/sasl2/sasl.db in strace.
What I wonder why sasl2-sample-client/server works but smtpd
doesn't work ?
Any hint is appreciated.
Xiong Jiang