Mapping not working for all accounts using SASL

3 posts / 0 new
Last post
#1 Mon, 08/04/2008 - 12:59
shadih

Mapping not working for all accounts using SASL

Hi,

I'm having a problem with SASL. For some user accounts, SASL works perfectly when they pass their username in the format user@domain. However, some users can only send mail by passing their username in the format: username-domain.

This particular Virtual site (the only one on the server) was imported from an Ensim backup. The mappings in /etc/procmail/virtual are appear OK.

For example, let's take user 'blah@domain.name' When I try the following:

testsaslauthd -u blah@domain.name -p passwd

I get:

0: OK "Success."

However, when that same user tries sending through Thunderbird, using the username blah@domain.name, I get the following in my /var/log/messages:

auth failure: [user=blah] [service=smtp] [realm=domain.name] [mech=shadow] [reason=Unknown]

Furthermore, if I change the username to blah-domain.name, the email goes out without any errors.

Does anyone have any clue what is happening?

Mon, 08/04/2008 - 13:31
shadih

I may have found a solution... I ran:

saslauthd -a shadow -d

from a shell, then tried. It failed, and then I ran:

saslauthd -a shadow -r -d

That worked.... so I added FLAGS=-r to my /etc/sysconfig/saslauthd file. Let'e see what happens!

Wed, 08/06/2008 - 06:07
shadih

Ok, so everything is working now. I guess I just needed to pass the '-r' option to saslauthd, so that is passes the entire name for authentication.

Topic locked