# How to configure Office 365 in mail server settings? Last updated: July 24, 2026 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 explains the steps involved in configuring Office 365 in Mail Server Settings on Mobile Device Manager Plus. **Note:** [Microsoft](https://docs.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online) 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 the **Admin** tab. - Under **Setting Up MDMP**, click **Mail Server Settings**. - Specify the following details: 1. Server Name: **smtp.office365.com** 2. Port: **587 (When port 587 is specified, TLS has to be enabled.)** 3. Sender Email Address: Any email address with an independent mailbox (not a shared one) 4. Test Email Address: Any email address to receive test emails. 5. Email Type: **SMTP** 6. Enable TLS: **Yes** - Log in to the [Microsoft Azure Portal](https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize?redirect_uri=https%3A%2F%2Fportal.azure.com%2Fsignin%2Findex%2F&response_type=code%20id_token&scope=https%3A%2F%2Fmanagement.core.windows.net%2F%2Fuser_impersonation%20openid%20email%20profile&state=OpenIdConnect.AuthenticationProperties%3D5CfKBCp5SgCO9S5Jyl3Rtphm0AJct4MNpW5dnFKEVcCbJPg9e1rMUFgOVKf2TrxD_6qihXupD1Un3uF_rrXbph9hcv5_W2N9dyp0b2ircywK59RUKwjq2wkzLn0a-HtoPTN5W26xw7gvtYRcUFe-xUBqmiGw7kAgLrMJexy8WlqLfw-R3_tisTEjQRLaDYe2Eq762az8HOTIkxpgE-cwF7JEBqgKTEjvFKylD1wy1jwDnh7GwQpgVaggEo044_-bhS9n2zc6xlcI8VC0v_K8eriAn2A9doDXjQ9pYc9i59ONNKXgUU7G6CCXx4Z7NuI7TgwRRgeUwiD1f7Z6MK78kFDg2gJxEb_TOi43K1CHDhsvFLjRvcnEuVAUlbcWLSxCQ7Naq71avvrhH3ZuWjFm6g&response_mode=form_post&nonce=637895025705112290.ZWZjODcwMDMtYzFkMS00MWM0LTliZjMtNGM0MmRjNjZiNTYyMzhkYjBlYjQtZDNlNC00YzhjLTk5MDEtMTk0YzBmYWU2YjFl&client_id=c44b4083-3bb0-49c1-b47d-974e53cbdf3c&site_id=501430&client-request-id=990eb9f9-a44f-4566-90ed-3622147e9325&x-client-SKU=ID_NET472&x-client-ver=6.16.0.0), using your Microsoft credentials. - Navigate to **App Registrations** and click **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 **Register** to obtain the **Client ID**. - To create a Client Secret, navigate to **Certificates and Secrets** and click **New Client Secret**. - Enter a **description and expiry period** for the secret and click **Add** to obtain the Client Secret. - After obtaining both the Client ID and Client Secret, enable the API service for Office365. - 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.