I've got a mail server I'm attempting to set up to replace an outdated one, and am having some hair-pulling troubles getting sendmail to work. Basically, when I try to send mail through Thunderbird, it repeatedly asks me for the password, and authentication never works. I eventually have to hit cancel, and the sending fails.
I'm no stranger to sendmail, but I admit my knowledge is limited.
The server is running Sendmail 8.14 and SASL2, and I cannot get them to play nice at all.
Sendmail is configured to use sasl2:
/var/log> sendmail -d0.1 -bv root | grep SASL
NAMED_BIND NETINET NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF
/var/log> telnet localhost 25
Connected to localhost.
Escape character is '^]'.
220 ESMTP Sendmail 8.14/8.14; Thu, 19 Feb 2009 17:10:34 -0600
250-Hello localhost [127.0.0.1], pleased to meet you
250-AUTH DIGEST-MD5 CRAM-MD5
The sasl2 libraries are in "the right place" i.e. findable:
/var/log> findlib --all sasl
sasl2's Sendmail.conf is configured as I have read it should be:
/var/log> cat /usr/lib/sasl2/Sendmail.conf
I used saslpasswd2
to create a password entry for the user in question... the password matches the system password for that user, for testing purposes.
the sasldb2 password file is located at /etc/sasldb2
Both sasl2 and sendmail are running, as shown in the sasl auth check above.
Thunderbird has the outgoing mail server with the right host and domain name and is configured to use username and password, and the username is set correctly, the same as on the sendmail server.
The server maillog has the following to say (the IP address was changed to represent the localhost, be be assured the correct IP address is in place and being used:
Feb 19 17:10:51 www2 sm-mta: n1JNAY3g022325: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
I assume this is because authentication continues to fail and then I click cancel, so it writes that log line. Am I correct?
What else can I do, check, set, test, try? Any other information I can give? I'm at my wits end here.