goldfisch.at-knowledgebase   (by peter pilsl)


  sendmail refuses to auth against sasl/sasl2

keywords : sendmail sasl sasl2 realm authprox

After you've installed and configured sendmail according to KB-259 and KB-208 you should be able to create users with saslpasswd2 and smtp-authenticate with these users.

If it doesnt work there is one issue you should take care about:

the sasl-realm !!

if you list your users with sasldblistusers2 you will see that each user is stored as USER@DOMAIN. If you didnt specify an extra domain using the -u switch of saslpasswd2 then the hostname is used as defaultvalue.

Now if sendmail sees itself with a different hostname, then problems start:

Then you have to store the users using the sendmail-hostname or you have to enter the full realm in the sendmail-auth-dialog.


example:

hostname : myhost
hostname as sendmail sees : myhost.local (find out with telnet localhost 25 and look at the first line)

1)

saslpasswd2 -c smtp

if you try to login to sendmail (for smtp-auth) with user = smtp then you will fail. You have to login as smtp@myhost !!!

2)

saslpasswd2 -c smtp -u myhost.local

now you can login to sendmail as user = smtp !!!

















peter at 2007-05-24 (updated 2007-05-24)

serial : 370


If you found any nonsense in this entry or want to see important improvements, I would appreatiate to receive your comments at knowledge@goldfisch.at

disclaimer : all these entries are part of my very private knowledgebase that I created while solving problems. Many solutions are taken from other webpages or from usenet. There is no warranty for this entries of course. Some of the articles are even stupid and one day you might even find the name of my prefered pizza-service in here, cause I always forget about it. Remember : This is my knowledgebase. If you need professional support and are willing to pay for it just email me at pilsl@goldfisch.at
For enlightment take a look at http://leblogsportif.sportnation.at