New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smtplib authentication - try all mechanisms #50932
Comments
The login method in smtplib.py tries only one authentication mechanism. RFC2554 states: The login method should attempt all mechanisms in preferred_auths before |
Here is one work-around. The default smtplib.SMTP.login() doesn't work |
This affects tophost.it too. Unable to login with CRAM-MD5 but plain login (as described in referenced workaround) work fine. |
Fixed in r83742. I implemented this without a test case, because if we wait for a test case for this, we can wait forever (would need a SMTP server implementation in Python for the various auth methods). |
A test suite is now available for both smtpd and smtplib modules. |
Wow! That's great! |
The attached patch against trunk (3.4) exercises the multiple-authentication functionality; the SMTP server advertises four different authentication methods, If this patch is OK, or if having a test isn't considered necessary, then this bug can be closed. |
New changeset 19912ad231a3 by Andrew Kuchling in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: