dear all

i've got a problem with postfix-sasl and debian7.

I've copied the confguration from a debian6 working scenario, postifx is
using virtual mysql cnf and sasl is configured to auth users via sql.

O the new debian7 server sasl auth fails and i get on mail.log:

SASL PLAIN authentication failed: no mechanism available

Here some configuration:

relevant of /etc/postfix/main.cf
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd

my /etc/default/saslauthd
START=yes
MECHANISMS="pam"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"

my /etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: sql
sql_hostnames: xxx
sql_user:xxx
sql_passwd:xxx
sql_database:xxx
sql_select:select password from mailbox where username = '%u@%r'
saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux

my /etc/pam.d/smtp
auth required pam_mysql.so user=xxx passwd=xxx host=xxx db=xxx
table=mailbox usercolumn=username passwdcolumn=password crypt=1 md5=1
verbose=5
account sufficient pam_mysql.so user=xxx passwd=xxx host=xxx db=xxx
table=mailbox usercolumn=username passwdcolumn=password crypt=1 md5=1
verbose=5

The strange think is that if i run:

testsaslauthd -f /var/spool/postfix/var/run/saslauthd/mux -u xxx -p xxx
0: NO "authentication failed"

but, if i run:
testsaslauthd -f /var/spool/postfix/var/run/saslauthd/mux -u xxx -p xxx -s
smtp
0: OK "Success."

So, it seems that postfix doesn't pass the information to saslauthd to use
the service smtp, is it correct?

Can you help me to figure it out?

Thanks


-- 
/*************/
nik600
http://www.kumbe.it

Reply via email to