Skip to content

Conversation

@cedric-anne
Copy link
Contributor

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #49701
License MIT
Doc PR symfony/symfony-docs#... TODO

SMTP authentication using OAuth token on Azure servers is really long, due to high latency responses from the SMTP server (probably to prevent brute-force attacks).
Indeed, a AUTH LOGIN command is sent first, and have to wait for about 5 seconds get the error response back. Then a RSET command is sent and also have to wait for about 5 seconds get a response back. The AUTH XOAUTH2 command is then sent and all is fast after that.

Adding the ability to override default eSMTP authenticators will permit developers to explicitely define that only XOAUTH2 authenticator has to be used, to prevent high latency in SMTP authentication.

I will update the documentation once new methods signatures will be validated.

Copy link

@mpoetzsch mpoetzsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Also additional tests, great!

@fabpot
Copy link
Member

fabpot commented Apr 14, 2023

Thank you @cedric-anne.

@fabpot fabpot merged commit 88f04e6 into symfony:6.3 Apr 14, 2023
@cedric-anne cedric-anne deleted the feature/mailer-authenticators branch June 2, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Symfony->Mailer additional Method: EsmtpTransport->setAuthenticators (because of Microsoft Authentification with OAuth for SMTP sending is slow)

4 participants