Adds support for SMTP AUTH logins using the LOGIN
protocol (in addition to currently supported PLAIN and
CRAM-MD5 options). This is added as a "last resort"
option after the other two, so no change should be
visible against servers supporting either of the two
currently supported methods.
This patch has been tested against a Microsoft
Windows 2000 SMTP server (which supports LOGIN,
but not either of the other two options).
The patch also includes a small change to handle MS
SMTP server (broken???) behaviour in sending a line
AUTH=xxxx line in response to EHLO in addition to the
standard AUTH protocol protocol ... This change simply
changes the feature match regular expression to ignore
feature names followed by anything other than space or
end of line. Alternative approaches could involve
specifically trapping repeated features, and ignoring the
second and subsequent occurrences, or somehow
combining the repeated occurrences. I don't believe that
this adds anything over the simple approach taken in the
patch.
|