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

Add support for Office 365 smtp online exchange using SASL XOAUTH2 #2981

Open
HanoRossouw opened this issue Jan 27, 2025 · 0 comments
Open

Comments

@HanoRossouw
Copy link

We tried during our setup to configure Office 365 for sending mails via the cloud service but apparently they are moving away from basic auth and moving to oauth based smtp security (https://techcommunity.microsoft.com/blog/exchange/exchange-online-to-retire-basic-auth-for-client-submission-smtp-auth/4114750)

they have documentation on their new way of authenticating which might be implemented by other email vendors in near future as they move away from basic auth with smtp

https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#authenticate-connection-requests

This requires adding support for SASL XOAUTH2

AUTHENTICATE XOAUTH2
and the format is
base64("user=" + userName + "^Aauth=Bearer " + accessToken + "^A^A")

@HanoRossouw HanoRossouw changed the title Add support for Office 365 online exchange using SASL XOAUTH2 Add support for Office 365 smtp online exchange using SASL XOAUTH2 Jan 27, 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
Development

No branches or pull requests

1 participant