View Single Post
  #14  
Old 7th May 2012, 23:01
a.master a.master is offline
Junior Member
 
Join Date: May 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post

excerpt of /var/log/mail.log

May 7 21:42:27 foo.bar postfix/smtpd[5668]: connect from a123456789.adsl.alicedsl.de[12.34.956.178]
May 7 21:42:30 foo.bar postfix/smtpd[5668]: warning: SASL authentication failure: Password verification failed
May 7 21:42:30 foo.bar postfix/smtpd[5668]: warning: a123456789.adsl.alicedsl.de[12.34.956.178]: SASL PLAIN authentication failed: authentication failure
May 7 21:42:33 foo.bar postfix/smtpd[5668]: warning: a123456789.adsl.alicedsl.de[12.34.956.178]: SASL LOGIN authentication failed: authentication failure

excerpt of /var/mail/auth.log

May 7 21:42:27 h2035294 postfix/smtpd[5668]: sql auxprop plugin using mysql engine
May 7 21:42:28 h2035294 saslauthd[5659]: pam_unix(smtp:auth): check pass; user unknown
May 7 21:42:28 h2035294 saslauthd[5659]: pam_unix(smtp:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
May 7 21:42:30 h2035294 saslauthd[5659]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure
May 7 21:42:30 h2035294 saslauthd[5659]: do_auth : auth failure: [user=postmaster@foo.bar] [service=smtp] [realm=ccmail.me] [mech=pam] [reason=PAM auth erro$
May 7 21:42:30 h2035294 saslauthd[5660]: pam_unix(smtp:auth): check pass; user unknown
May 7 21:42:30 h2035294 saslauthd[5660]: pam_unix(smtp:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
May 7 21:42:33 h2035294 saslauthd[5660]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure
May 7 21:42:33 h2035294 saslauthd[5660]: do_auth : auth failure: [user=postmaster@foo.bar] [service=smtp] [realm=ccmail.me] [mech=pam] [reason=PAM auth erro$

The problem caused by the file /etc/pam.d/smtp

#--> commenting out these three lines works fine for me!
##########################
#@include common-auth
#@include common-account
#@include common-password
##########################

auth required pam_mysql.so user=mail_admin passwd=pass_4_mailadmin host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
account sufficient pam_mysql.so user=mail_admin passwd=pass_4_mailadmin host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
Reply With Quote