Hi,
I followed the howto to setup postfix/sasl/postfixadmin/mysql on CentOS 5.2, everything works except the auth part, I can use telnet to send email to virtual user in mysql without problem. The only problem is I couldn't do authentication, I got the following error when trying "testsaslauthd -s smtp -u test@mydomain -p mypass -f /var/run/saslauthd/mux":
Quote:
|
0: NO "authentication failed"
|
auth.log shows
Quote:
saslauthd[17903]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
saslauthd[17903]: do_auth : auth failure: [user=test@mydomain] [service=smtp] [realm=mydomain] [mech=pam] [reason=PAM auth error]
|
I suspect this is because pam is not authenticating against mysql, so I installed pam_mysql, and changed
/etc/pam.d/smtp from
Quote:
#%PAM-1.0
auth include system-auth
account include system-auth
|
to
Quote:
#%PAM-1.0
auth required pam_mysql.so user=postfix passwd=pass host=127.0.0.1 db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=3
account sufficient pam_mysql.so user=postfix passwd=pass host=127.0.0.1 db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=3
|
and restarted saslauthd. However testsaslauthd still failed, with a slightly different error in auth.log:
Quote:
saslauthd[18048]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure
do_auth : auth failure: [user=test@mydomain] [service=smtp] [realm=] [mech=pam] [reason=PAM auth error]
|
Any ideas?
Thanks
Recent comments
8 hours 17 min ago
13 hours 9 min ago
22 hours 2 min ago
23 hours 2 min ago
1 day 2 hours ago
1 day 4 hours ago
1 day 7 hours ago
1 day 14 hours ago
1 day 23 hours ago
2 days 1 hour ago