Mark Crispin wrote:
> On Wed, 15 Mar 2006, Dale J. Chatham wrote:
>
>> The authentication mechanism is "LOGIN". It appears to be basically
>> the same as "PLAIN", but the realm seems to be important. If you're
>> using a CNAME to which to deliver mail, Outlook isn't very happy, or
>> so I'm guessing.
>
>
> There is no such thing as a "realm" in the LOGIN SASL authentication
> mechanism.
I find it odd, since sendmail.org clearly says there are:
http://www.sendmail.org/~ca/email/authrealms.html
Realms and PLAIN/LOGIN
As it can see from the list of possible pwcheck_methods, some of them
support realms for PLAIN/LOGIN while others don't. This requires either
a patch for lib/checkpw.c (applies to 1.5.15, at least integrated since
1.5.20) or the client to add @HOST.DOMAIN to the authid.
>
> The differences between LOGIN and PLAIN are summarized as:
>
> LOGIN has separate, mandatory, challenges for userid (authorization
> only) and password which are sent in separate responses. PLAIN has an
> optional challenge; and the authentication userid, authorization userid,
> and password are sent in a single response.
>
> As implied above, there is no way to send a separate authentication
> userid from the authorization userid in the LOGIN mechanism.
>
> I invented the LOGIN mechanism. The LOGIN mechanism is completely
> obsolete and should not be used, except when faced with broken POP3 and
> SMTP servers (such as Yahoo's authenticated SMTP server) which do not
> implement the PLAIN mechanism correctly.
You may have invented it, but Microsoft has implemented it. *THAT* is
the point, and I've read in a number of places that it has problems with
realms, but I've never found the solution.
Here is what I see in the maillog:
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: assigned id
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: ---
250-michael.stxcadware.com Hello elmo.chatham.org [68.187.34.66] (may be
forged), pleased to meet you
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: ---
250-ENHANCEDSTATUSCODES
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 250-PIPELINING
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 250-8BITMIME
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 250-SIZE
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 250-DSN
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 250-ETRN
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 250-AUTH
DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 250-DELIVERBY
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 250 HELP
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: <-- AUTH LOGIN
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 334 jumble1
Mar 14 21:31:14 michael sendmail[23074]: k2F3USDT023074: --- 334 jumble2
Mar 14 21:31:17 michael sendmail[23074]: k2F3USDT023074: --- 535 5.7.0
authentication failed
Mar 14 21:31:17 michael sendmail[23074]: k2F3USDT023074: AUTH failure
(LOGIN): authentication failure (-13) SASL(-13): authentication failure:
checkpass failed
Mar 14 21:31:17 michael sendmail[23074]: k2F3USDT023074: disconnect level 1
Note that it works fine in pine, mozilla, thunderbird, ... Not outlook.
>
> -- Mark --
>
> http://panda.com/mrc
> Democracy is two wolves and a sheep deciding what to eat for lunch.
> Liberty is a well-armed sheep contesting the vote.