I have set up postfix using mysql but am running into a problem when trying to send mail out -- the SMTP server fails on authentication:
/var/log/mail.log:
localhost postfix/smtpd[16637]: connect from localhost.localdomain[127.0.0.1]
localhost postfix/smtpd[16637]: warning: localhost.localdomain[127.0.0.1]: SASL LOGIN authentication failed: authentication failure
localhost postfix/smtpd[16637]: lost connection after AUTH from localhost.localdomain[127.0.0.1]
localhost postfix/smtpd[16637]: disconnect from localhost.localdomain[127.0.0.1]
With further testing, it seems to me that pam-mysql is not connecting to my database properly; however, the username and password in /etc/pam.d/smtp
are correct.
/var/log/auth.log:
localhost saslauthd[17901]: pam_mysql - MySQL error (Access denied for user 'mail_admin'@'localhost' (using password: YES))
localhost saslauthd[17901]: DEBUG: auth_pam: pam_authenticate failed: Authentication service cannot retrieve authentication info
localhost saslauthd[17901]: do_auth : auth failure: [user=user@domain.com] [service=smtp] [realm=domain.com] [mech=pam] [reason=PAM auth error]
I am stumped as to how to solve this, so any assistance would be greatly appreciated! :)