Last updated: July 24, 2026

How to configure Mail Server settings using Gmail Account?

This guide explains how to configure Mail Server settings in Mobile Device Manager Plus using a Gmail account with OAuth authentication, since Two-Factor Authentication and basic authentication are not supported. Admins enter server details (smtp.gmail.com, port 465 or 587) in the console, then create OAuth credentials in the Google Cloud Platform Console, adding redirect URIs matching the MDM server's FQDN or localhost, before pasting the Client ID and Client Secret back into MDM to complete setup.

Description

This document explains the steps involved in using Gmail account to configure Mail Server Settings in Mobile Device Manager Plus.

Steps:

Note:

  1. Mobile Device Manager Plus currently does not support Two Factor Authentication (TFA) while using Gmail. 
  2. Google has deprecated the basic authentication support for mail servers from 30 May 2022. Follow the steps given below to configure OAuth authentication.

Configuring Mail Server settings using Gmail Account - 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:
    1. Server Name: smtp.gmail.com
    2. Port :465 (SSL) / 587 (TLS) If port 587 is used, TLS needs to be enabled.
    3. Sender Email Address: Your Email Address
    4. Username: Username should be the same as sender email address.
    5. Test Email Address:Email Address  where you want to receive test mails.
    6. Email Type: SMTP/SMTPS
    7. Enable TLS: Yes / No. If you choose No, then SSL will be set as default.
  • Go to the Google Cloud Platform Console.
  • From the projects list, select a project or create a new one.
  • Open the console and select APIs & Services and click Credentials on the left.

     

  • Click Create Credentials, then select OAuth client ID. configure-mail-server
  • Select the Application type as Web application.
    configure-mail-server
  • You have to configure your consent screen if you are configuring for the first time. configure-mail-server
  • Add the redirect URIs in the following format under "Authorized Redirect URIs" and click Save.
    1. https://mobile_device_manager_plus_server_FQDN or localhost:port/html/oauth-verification.html?actionName=updateMailServerDetails
    2. https://mobile_device_manager_plus_server_FQDN or localhost:port/html/oauth-verification.html?actionName=sendTestMail

    Note: If you specify "localhost", the entire configuration must be performed on the machine where the Mobile Device Manager Plus server is installed.

    configure-mail-server

  • You have successfully created the client ID and secret.
    configure-mail-server
  • Paste the created Client ID and Client Secret values in the Mobile Device Manager Plus console.
  • Provide Redirect URL in the format: "https://mobile_dev_server_FQDN or localhost:port/html/oauth-verification.html" and click Save to finish the configuration.

    Note: If you specify "localhost", the entire configuration must be performed on the machine where the Mobile Device Manager Plus server is installed.

  • You have successfully configured the mail server using Gmail account, with OAuth Authentication.

Frequently asked questions

Why can't I use my regular Gmail password to configure the mail server?

Google deprecated basic authentication for mail servers from May 30, 2022, and Mobile Device Manager Plus does not support Two-Factor Authentication (TFA) with Gmail, so you must configure OAuth authentication using a Client ID and Client Secret from the Google Cloud Platform Console instead of a password.

What server and port details do I need to enter for Gmail SMTP?

Use smtp.gmail.com as the server name with port 465 (SSL) or port 587 (TLS, with TLS enabled), set the sender email address and username to the same Gmail address, and choose SMTP/SMTPS as the email type.