How to? saslauthd strip domain

Netlink Tech tech at netlinkcom.com
Wed Apr 12 13:27:44 EDT 2006


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 at netlinkcom.com' 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 at netlinkcom.com -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 at netlinkcom.com] [service=smtp] [realm=] [mech=pam] 
[reason=PAM auth error]

How can I strip the domain before sending the auth request to PAM?

Thanks, Curt


More information about the Cyrus-sasl mailing list