Skip to content
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

Smtp auth login should fail immediately if error is bad authentication #100331

Open
gpatel-fr opened this issue Dec 18, 2022 · 0 comments
Open

Smtp auth login should fail immediately if error is bad authentication #100331

gpatel-fr opened this issue Dec 18, 2022 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@gpatel-fr
Copy link

gpatel-fr commented Dec 18, 2022

Bug report

when using smtplib.SMTP.login, library is using different authentication schemes if available: cram-md5, plain, login
when cram-md5 fails with bad password (smtp error code 535), there is no point in trying plain and login.
Also when server is behind a proxy doing ssl termination, plain and login may fail with a different failure mode:
unprotected password needs ssl mode
leading to confusion on what the real problem is.

Your environment

  • CPython versions tested on: conda python 3.9 (concerned code is identical on trunk)
  • Operating system and architecture: Ubuntu 22.04

Linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant