Skip to content

SMTP: Support SASL XOAUTH2 #4123

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

Closed
wants to merge 3 commits into from
Closed

Conversation

jkroepke
Copy link
Member

Fixes #3244
Fixes #1950

Some Cloud providers like Google and Microsoft disable basic auth for sending mail.

Currently, both offer SASL-XOAUTH2 as replacement, which needs to be implemented in AlertManager.

An alternative solution would be vendor specific notifier.

Reference:

Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
@whitepiratebaku
Copy link

Hello, I think gmail already dropped support for basic auth after 14th of March? so this means alertmanager will not be able to work with gmail until this changes/feature merged? any workaround? thanks in advance

@jkroepke
Copy link
Member Author

jkroepke commented Apr 3, 2025

any workaround?

Checkout Google SMTP relay: https://support.google.com/a/answer/2956491#sendinglimitsforrelay - IP based authentication is also supported.

I learned that this XOAUTH2 approach at Google may works with human accounts only. As I know, only Exchange Online benefit from this.

I lost access to Exchange online, I can't test this PR anymore.

@jkroepke jkroepke closed this Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants