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

[Mailer] Allow overriding default eSMTP authenticators #49900

Merged
merged 1 commit into from Apr 14, 2023
Merged

[Mailer] Allow overriding default eSMTP authenticators #49900

merged 1 commit into from Apr 14, 2023

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
3 of 7 checks passed
@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
4 participants