New submission from Eric Shubert <pyt...@shubes.net>: The login method in smtplib.py tries only one authentication mechanism. There are legitimate situations where cram-md5 might fail, yet plain or login would succeed.
RFC2554 states: If an AUTH command fails, the client may try another authentication mechanism by issuing another AUTH command. The login method should attempt all mechanisms in preferred_auths before returning a failure. This will make the code more robust, returning a failure only when absolutely no authentication is possible. ---------- messages: 91478 nosy: shubes severity: normal status: open title: smtplib authentication - try all mechanisms type: behavior versions: Python 2.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6683> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com