Archive for March 1st, 2006

smtp-auth problems which are not that clear

Wednesday, March 1st, 2006

Today I faced a problem when I have a smtp-auth sendmail server configured to accept connections using password authentication, and everything was configured just fine in sendmail, that is, I had all required libs installed and the following strings on sendmail config (you can find more info anywhere on the web):

define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl

But although the configuration was correct, I couldn't connect to mail server, getting password incorrect message. Well after some googling I found out that one simple daemon should be running for sendmail to be able to process login. The daemon is: saslauthd. And for some reason it was not launched at startup. After I have launched it, the server immediately accepted my authentication and I was able to send mail again.

On RedHad Linux you can launch the daemon by typing the following:
/etc/init.d/saslauthd start

The solution is actually pretty easy, but not so clear just because the required stuff is not actually thought of as a part of sendmail system. But it actually is.