App registration | Email | 365

Modified on Thu, 13 Mar at 12:07 PM

Microsoft No Longer Supports SMTP with Basic Authentication: Use OAuth Instead

Overview

Microsoft has made Multi-Factor Authentication (MFA) mandatory, and as a result, SMTP authentication using basic credentials (username and password) is no longer supported. To continue using SMTP services with Microsoft, organizations must switch to OAuth authentication.

Steps to Enable OAuth for SMTP

1. Create an App Registration in Azure AD

  1. Sign in to the Azure Portal (https://portal.azure.com).

  2. Navigate to Azure Active Directory > App registrations.

  3. Click New registration.

  4. Provide a name for the app (e.g., "SMTP OAuth App").

  5. Choose Accounts in this organizational directory only (Single tenant).

  6. Click Register.

2. Configure API Permissions

  1. Open the newly registered app.

  2. Navigate to API permissions > Add a permission.

  3. Select Microsoft Graph > Application permissions.

  4. Search for and add the following permissions:

    • SMTP.Send

    • Mail.Send

  5. Click Add permissions, then Grant admin consent.

3. Generate and Store Client Credentials

  1. Navigate to Certificates & secrets.

  2. Click New client secret, enter a description, and select an expiry period.

  3. Copy and store the Client Secret securely.

4. Obtain Required OAuth Details

  1. Note the Application (Client) ID from the app registration.

  2. Note the Directory (Tenant) ID.

5. Configure Casengine Application to Use OAuth

  1. Settings > Email configuraton

  2. Select email type : Oauth

Conclusion

Since Microsoft has enforced MFA and discontinued basic authentication for SMTP, transitioning to OAuth is mandatory. Follow these steps to ensure uninterrupted email functionality. For further assistance, refer to Microsoft's official documentation.



  • APP REGISTRATION


  • REGISTER AN APPLICATION


  • API Permission 

            Mail.read - To Fetch email for email archiving

            Mail.ReadWrite - To Fetch email for email archiving 

            Mail.Send - To Send emails



  • Create Secret



Keys required



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article