Postfix+Cyrus/SASL+MYSQL+PAM


Subject: Postfix+Cyrus/SASL+MYSQL+PAM
From: Rois Lima (rifle7022 at terra dot com dot br)
Date: Thu Apr 03 2003 - 18:25:04 EST


Hi,

I installed cyrus-sasl-2.1.12, postfix-2.0.7, mysql-4.0.12, pam-0.75 and
pam_mysql.

My users and password are in mysql database. When I send email, donīt work.
My maillog:

Apr 3 19:34:10 snake postfix/smtpd[28336]: connect from
localhost.localdomain[127.0.0.1]
Apr 3 19:34:32 snake postfix/smtpd[28336]: warning: SASL authentication
problem: unknown password verifier
Apr 3 19:34:32 snake postfix/smtpd[28336]: warning: SASL authentication
failure: Password verification failed
Apr 3 19:34:32 snake postfix/smtpd[28336]: warning:
localhost.localdomain[127.0.0.1]: SASL plain authentication failed
Apr 3 19:34:35 snake postfix/smtpd[28336]: disconnect from
localhost.localdomain[127.0.0.1]

My main.cf:

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
   permit_sasl_authenticated,
   permit_mynetworks,
   check_relay_domains

My /usr/local/lib/sasl2/smtpd.conf:

#smtpd.conf
pwcheck_method: pam

My /etc/pam.d/smtp:

auth optional /lib/security/pam_mysql.so user="postfix"
passwd="senha00" host="localhost" db="email" table="virtual_users
" usercolumn="id" passwdcolumn="password" crypt=1
account required /lib/security/pam_mysql.so user="postfix"
passwd="senha00" host="localhost" db="email" table="virtual_users
" usercolumn="id" passwdcolumn="password" crypt=1

Can someone give me a hint ?

Alvaro Rezende de Oliveira







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD