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

AUTH not provided in EHLO with SSL/TLS #281

Open
FinnStutzenstein opened this issue Aug 19, 2021 · 2 comments · May be fixed by #292
Open

AUTH not provided in EHLO with SSL/TLS #281

FinnStutzenstein opened this issue Aug 19, 2021 · 2 comments · May be fixed by #292

Comments

@FinnStutzenstein
Copy link

When using implicit SSL/TLS (so no STARTTLS), the self._tls_protocol will never be set. This results in AUTH not being present in the EHLO response (given that auth_require_tls is true): https://github.com/aio-libs/aiosmtpd/blob/master/aiosmtpd/smtp.py#L833

I would expect that when an SSL/TLS connection is used instead of STARTTLS (and auth_require_tls is true), AUTH is provided to the client. Currently, we are setting auth_require_tls is false to circumvent this issue.

@pepoluan
Copy link
Collaborator

Sadly, I don't think* there's an efficient way for SMTP to detect if it's being wrapped externally in an SSL/TLS context.

For the time being I think the easiest workaround is to add a note to the documentation w.r.t. needing to set auth_require_tls=False when using implicit SSL/TLS.

  • I may change my mind, though. Let me refresh my understanding of the code first ... it's been quite awhile 😅

@strongholdmedia strongholdmedia linked a pull request Nov 21, 2021 that will close this issue
strongholdmedia added a commit to strongholdmedia/aiosmtpd that referenced this issue Dec 19, 2022
@strongholdmedia
Copy link

@FinnStutzenstein in fact not only was AUTH not present in response, but was also explicitly rejected when attempted without feature checking.
But hopefully it will be merged and fixed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants