Hello,
I have a FC5 x86_64 server with saslauthd 2.1.21, sendmail 8.13.6, etc.
I have SMTP_auth working fine with 'user' using PAM.
I would like to get it working with 'user@xxxxxxxxxxxxxx' using PAM.
My saslauthd is started from initd with the following options:
/usr/sbin/saslauthd -m /var/run/saslauthd -a pam
When I use testsaslauthd I get the following:
[root]# testsaslauthd -u testuser -p test1234 -s smtp
0: OK "Success."
[root]# testsaslauthd -u testuser@xxxxxxxxxxxxxx -p test1234 -s
smtp
0: NO "authentication failed"
Log file shows this on authentication failure:
Apr 12 12:23:25 mighty saslauthd[31617]: do_auth : auth failure:
[user=testuser@xxxxxxxxxxxxxx] [service=smtp] [realm=] [mech=pam]
[reason=PAM auth error]
How can I strip the domain before sending the auth request to PAM?
Thanks, Curt