SMTP.Send OAuth permission not working for consumer accounts

Filip Navara 80 Reputation points
2023-02-06T21:52:24.1833333+00:00

Since beginning of February all the logins with Outlook.com/Hotmail consumer account to the Office 365 SMTP server fail. This affects OAuth2 logins with the SMTP.Send permissions for our app. Curiously the deprecated live.com OAuth endpoints and permissions still work on the same app registration.

Here's a .NET code that reproduces the issue: https://github.com/filipnavara/Office365OAuthIsBrokenAgain

We have a large number of affected customers who are unable to send emails.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
3,771 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Akshay-MSFT 16,026 Reputation points Microsoft Employee
    2023-02-15T09:06:45.33+00:00

    @Filip Navara

    Thanks for your time and patience. I was able to test this with Gmail and got authentication error as "SMTP AUTH" is disabled in your tenant, The issue was fixed after enabling Authenticated SMTP.

    In your tenant kindly validate the following :

    • If Authenticated SMTP is enabled for your impacted user (this setting does over ride tenant configuration)
    1. Navigate to https://admin.microsoft.com/Adminportal/Home?source=applauncher#/users
    2. Select the user you are testing this with.
    3. Ensure "Authenticated SMTP" is checked.User's image

    User's image

    User's image

    • If your authentication policy disables basic authentication for SMTP, clients cannot use the SMTP AUTH protocol even if you enable the settings outlined in this article. For more information, see Disable Basic authentication in Exchange Online.

    Thanks,

    Akshay Kaushik

    Please "Accept the answer", "Upvote" and share your feedback (Yes/No) if the suggestion works as per your business need. This will help us and others in the community as well.

    2 people found this answer helpful.

  2. Will Wilding 150 Reputation points
    2023-04-11T18:28:15.63+00:00

    It appears that the issue has been quietly resolved with regards to consumer outlook.com email addresses. I don't believe there was any bulletin or acknowledgement by MS, but it's working for me now.

    1 person found this answer helpful.

  3. Craig Stark 0 Reputation points
    2023-02-14T12:17:28.44+00:00

    Online Hotmail worked for me; It was ONLY the EPIM Mail App that had SEND issues with Authentication. I Deleted Hotmail from EPIM and Re-created it with Exchange protocol chosen - SEND now works for me.

    0 comments No comments

  4. Enzo Tech 0 Reputation points
    2023-05-01T14:08:23.9566667+00:00

    This issue can still be reproduced. I created a program written in Rust-Lang to prove that the access token retrieve via Device Code Flow is not working for SMTP XOAUTH2.

    Source Code:

    https://github.com/LorenzoLeonardo/microsoft-smtp-xoauth2-test-tool

    Scopes: offline_access, SMTP.Send

    Endpoints:

    https://login.microsoftonline.com/common/oauth2/v2.0/devicecode

    https://login.microsoftonline.com/common/oauth2/v2.0/token

    0 comments No comments

  5. Abdellatif Sabbah 0 Reputation points
    2024-01-12T14:17:23.9233333+00:00

    anyone solve this issue?

    0 comments No comments