Last updated: July 24, 2026
How to configure Office 365 in mail server settings?
This guide explains how to configure Office 365 mail server settings in Mobile Device Manager Plus using OAuth authentication, since Microsoft has deprecated basic authentication. Admins enter SMTP server details on the Admin > Mail Server Settings page, then register an app in the Microsoft Azure Portal using the redirect URL from MDM to obtain a Client ID and Client Secret. Entering these credentials in MDM and saving completes the mail server configuration.
Description
This document will explain the steps involved in configuring Office 365 in Mail Server Settings on Mobile Device Manager Plus.
Note: Microsoft will soon withdraw basic authentication support for mail servers by 1 October 2022. We recommend that users move to OAuth Authentication while configuring mail server settings.
Configuring Mail Server settings using Office 365 - OAuth Authentication
- On the Mobile Device Manager Plus console, click on the Admin tab.
- Under Setting Up MDMP, click on Mail Server Settings.
- Specify the following details:
- Server Name : smtp.office365.com
- Port :587 (When port 587 is specified, TLS has to be enabled.)
- Sender Email Address: Any email address with an independent mailbox (not a shared one)
- Test Email Address: Any Email Address to receive test emails.
- Email Type: SMTP
- Enable TLS: Yes
- Login to the Microsoft Azure Portal , using your Microsoft credentials.
- Navigate to App Registrations and click on New registration.
- Enter the name and choose the supported account type.
- Obtain the Redirect URL by navigating to Mail Server Settings > Authorization Server Details on the Mobile Device Manager Plus console.
- On the Microsoft Azure Portal, choose the type of platform and enter the Redirect URL.
- Click on Register to obtain the Client ID
- To create a Client secret, Navigate to Certificates and Secrets and click on New Client Secret.
- Enter a description and expiry period for secret and click Add to obtain the Client Secret.
- After obtaining both the Client ID and Client Secret, enable the API service for Office365.
- Now, enter the Client ID and Client Secret on the Mobile Device Manager Plus console, and click Save.
You have successfully configured Office 365 in Mail Server Settings, using OAuth Authentication.
Frequently asked questions
Why do I need to use OAuth instead of basic authentication for Office 365 mail server settings?
Microsoft has withdrawn basic authentication support for mail servers, so OAuth authentication must be used when configuring Office 365 in Mail Server Settings.
What SMTP details are needed to configure Office 365 mail server settings?
Use smtp.office365.com as the Server Name, port 587 with TLS enabled, a sender email address with an independent (non-shared) mailbox, a test email address, and SMTP as the Email Type.
Where do I get the Client ID and Client Secret needed for Office 365 OAuth setup?
Register an app in the Microsoft Azure Portal under App Registrations using the Redirect URL from Mail Server Settings > Authorization Server Details; registering the app provides the Client ID, and creating a new Client Secret under Certificates and Secrets provides the Client Secret.