On my Slackware 13.37 64-bit system, I am trying to set up the stock
Sendmail 8.14.4 system with SMTP authentication using Cyrus SASL.
Apparently Cyrus SASL itself is authenticating correctly against the
shadow database, according to "testsaslauthd":
# /etc/rc.d/rc.saslauthd start
Starting SASL authentication daemon: /usr/sbin/saslauthd -a shadow
# testsaslauthd -u martijn -p (password removed)
0: OK "Success."
For Sendmail, I am using an /etc/mail/
sendmail.cf built from the
unchanged /usr/share/cf/cf/
sendmail-slackware-tls-sasl.mc file, as
follows (starting from the /usr/share/sendmail/cf/cf directory):
# ./Build
sendmail-slackware-tls-sasl.mc
# cat
sendmail-slackware-tls-sasl.cf > /etc/mail/
sendmail.cf
# /etc/rc.d/rc.sendmail start
Starting sendmail MTA daemon: /usr/sbin/sendmail -L sm-mta -bd -q25m
Starting sendmail MSP queue runner: /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
Now, Sendmail starts successfully and appears to work correctly for
unauthenticated, unencrypted SMTP sessions on port 25. Encryption also
works correctly after generating the keys.
However, for authenticated SMTP sessions, whether encrypted or not, it
always rejects the password. To try to find the reason, I changed
Sendmail's logging level from the default 9 to 15 (using the -O
LogLevel=15 command line option). Using this log level, in
/var/log/maillog I find an error like the following whenever I try to
authenticate using SMTP:
Aug 2 22:21:47 vks14486 sm-mta[310]: q72KLkmt000310: AUTH failure (LOGIN): user not found (-20) SASL(-13): user not found: checkpass failed, relay=
inlv.demon.nl [212.238.240.159]
or, when using CRAM-MD5 authentication:
Aug 2 22:56:55 vks14486 sm-mta[475]: q72KutuT000475: AUTH failure (CRAM-MD5): user not found (-20) SASL(-13): user not found: no secret in database, relay=
inlv.demon.nl [212.238.240.159]
So apparently the user is not found. But I am definitely trying to
authenticate using the same user and password as used earlier with the
"testsaslauthd" command, which succeeded. Two different email programs
(Thunderbird and Apple Mail), using all possible password methods, give
the same results.
So now I'm out of ideas, and I figure I must be missing something. Any
pointers on what to try next?
A full debug log of one failed session is below.
TIA,
- Martijn
Aug 2 23:02:57 vks14486 sm-mta[502]: NOQUEUE: connect from
inlv.demon.nl [212.238.240.159]
Aug 2 23:02:57 vks14486 sm-mta[502]: AUTH: available mech=DIGEST-MD5 OTP CRAM-MD5, allowed mech=LOGIN PLAIN DIGEST-MD5 CRAM-MD5
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: Milter: no active filter
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 220
vks14486.ip-37-59-109.eu ESMTP Sendmail 8.14.4/8.14.4; Thu, 2 Aug 2012 23:02:57 +0200
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: <-- EHLO [192.168.1.124]
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: ---
250-vks14486.ip-37-59-109.eu Hello
inlv.demon.nl [212.238.240.159], pleased to meet you
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250-ENHANCEDSTATUSCODES
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250-PIPELINING
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250-8BITMIME
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250-SIZE
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250-DSN
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250-ETRN
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250-AUTH DIGEST-MD5 CRAM-MD5
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250-STARTTLS
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250-DELIVERBY
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 250 HELP
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: <-- AUTH CRAM-MD5
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 334 RemovedRemovedRemovedRemovedRemovedRemovedRemovedRemovedRe==
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 535 5.7.0 authentication failed
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: AUTH failure (CRAM-MD5): user not found (-20) SASL(-13): user not found: no secret in database, relay=
inlv.demon.nl [212.238.240.159]
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502: --- 421 4.4.1
vks14486.ip-37-59-109.eu Lost input channel from
inlv.demon.nl [212.238.240.159]
Aug 2 23:02:57 vks14486 sm-mta[502]: q72L2vFs000502:
inlv.demon.nl [212.238.240.159] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA