Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

How to add Exchange or Microsoft 365 in Android Gmail

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Gmail on Android can hold a Microsoft 365 or Exchange ActiveSync account. Google documents the add-account path under the device Settings app. Both cited pages give set-up steps, not a matrix of sync-failure causes. Finish Google's steps, honour any Mobile device mailbox policy password prompt, and only then fall back to Outlook for Android with Microsoft's published server names.

What the symptom means

Google's Android Enterprise page "Set up an Android device with a Microsoft® Office 365 or Exchange ActiveSync account" states that Gmail supports those accounts and comes pre-installed on Android devices. The add path is:

Open your device's Settings app. Tap Passwords & accounts. It may be called 'Accounts' or 'Users & accounts' on your device.

Then, still per Google: at the bottom, tap Add account; tap Exchange; enter your Microsoft® Office 365 or Exchange ActiveSync email and credentials.

Google continues:

After you add your account to Gmail, you may be prompted to set up a password via the Mobile device mailbox policies if your IT admin requires it.

Google's page gives no table of Gmail Exchange error strings. If your organisation uses a different email client, Google says to consult that client's documentation.

iPhone ActiveSync set-up is covered separately: iPhone Exchange ActiveSync set-up. SMTP AUTH failures for scanners are a different fault: Microsoft 365 SMTP AUTH 535 5.7.3. Desktop Autodiscover after migration: Outlook Autodiscover.

Likely causes

Cause What you see How to confirm
Wrong Settings label on the device Cannot find Passwords & accounts Google: may be Accounts or Users & accounts
Credentials or modern authentication rejected (example symptom; not on either page) Exchange form returns without creating the account Retry carefully; ask the administrator about Conditional Access
Mobile device mailbox policy password required Prompt for a device password after add Google's mailbox-policies sentence
ActiveSync or mobile access blocked (example symptom; not on either page) Account disappears or never syncs Administrator mailbox and mobile policy
Need manual Outlook server values Automatic discovery fails in Outlook for Android Microsoft's manual Exchange / Microsoft 365 settings

Prove the cause before changing anything

1. Note which label your device shows for accounts (Passwords & accounts, Accounts, or Users & accounts) and what the Add account → Exchange screen asks for. Do not enter credentials yet. Write down the on-screen labels.

2. If Google shows a Mobile device mailbox policies password prompt, that is expected when the IT admin requires it. It is not proof the password for the mailbox itself is wrong.

3. Ask the administrator (read-only on the phone) whether the mailbox exists, whether Exchange ActiveSync or mobile access is allowed, and whether a device password or encryption policy applies.

4. If you move to Outlook for Android, Microsoft's "Set up email in the Outlook for Android app" page gives manual Exchange / Microsoft 365 values. Confirm you are on that Microsoft page before typing server names.

Fix

Complete Gmail Exchange add

Risk: the next steps add a work Exchange or Microsoft 365 account to Gmail on this device. Until you remove that account in Settings, the account stays on the phone.

Use Google's four steps above (Settings → Passwords & accounts or the alternate label → Add account → Exchange → credentials). After a successful add, complete any Mobile device mailbox policy password screen the organisation requires. Turning that policy off to avoid a device password is an administrator decision, not a tip for the phone user.

To undo it: remove the Exchange account from the device account settings (the same Settings accounts area Google uses to add it).

If the policy prompt asks for a device password, note the current screen-lock state first (write it down or take a screenshot).

Risk: the next step sets or changes the device password (or other lock) required by Mobile device mailbox policies. A password you cannot remember locks you out of the device.

Set the password the prompt requires, using a value you can recover under your organisation's process.

To undo it: there is no safe back-out for a forgotten device password. If the policy prompt was cancelled and no new lock was saved, nothing changed. If you set a new lock only for this account and your administrator later removes the policy requirement, change the lock back to the scheme you noted through the device Settings security screen.

Outlook for Android manual Microsoft 365 settings

Risk: the next steps add an Exchange account in Outlook for Android with manual server settings. Until you remove that account, Outlook uses those hosts for mail on this device.

When Gmail will not hold the account and the administrator directs you to Outlook for Android, Microsoft's manual section is:

  1. In Outlook for Android, go to Settings > Add Account > Add Email Account.
  2. Enter email address. Tap Continue.
  3. Tap Setup account manually if available, and then on the email provider page choose Exchange and toggle Advanced Settings on.
  4. Enter your server setting details, if available and then tap the checkmark icon.

Incoming Server Settings from that Microsoft page (wording as published):

  • Domain\Username — "Enter your full email address, such as yourname@contoso.com."
  • Password — "Use the password that you use to access your email."
  • Server — "Microsoft 365 work or school accounts - Use outlook.office365.com."
  • Port — "Use 443 or 993."
  • Security type — "Select SSL/TLS or make sure the Use secure connection (SSL) checkbox is checked, then tap Next."

Outgoing SMTP Server Settings from the same page:

  • SMTP Server — "Microsoft 365 work or school accounts - Use smtp.office365.com."
  • Security Type — "Choose TLS."
  • Port Number — "Enter 587. Tap Next."

Note the server values you typed (write them down or screenshot the fields) before you change them again later.

Risk: wrong host names or ports leave mail unable to sync or send until you correct them or remove the account.

Enter Microsoft's Microsoft 365 values above exactly when the administrator confirms the mailbox is in Microsoft 365. For on-premises Exchange, Microsoft says to ask the IT administrator for server information instead of assuming outlook.office365.com.

To undo it: remove the account in Outlook for Android and add it again with the values you noted, or with automatic discovery if that works again.

Example (illustrative): Gmail accepts the Exchange account only after the user sets a device PIN required by Mobile device mailbox policies. Sync then starts without typing outlook.office365.com. A second user whose automatic discovery fails in Outlook for Android enters outlook.office365.com on port 443 with SSL/TLS and smtp.office365.com on port 587 with TLS.

Confirm the fix

  1. The Exchange or Microsoft 365 account appears in Gmail or Outlook for Android.
  2. Inbox messages arrive on the device.
  3. A send test works when SMTP is in use.
  4. Any policy-required device lock is one the user can still unlock.

What to watch afterwards

  • Google: if the organisation uses a different email client, use that client's documentation for Office 365 and Exchange ActiveSync support.
  • Microsoft notes that work or school accounts may have extra Intune or app-protection requirements before Outlook for Android will open mail.
  • Scanner or device SMTP AUTH failures against Microsoft 365 are not fixed by these mobile client settings.

Risks and limits

  • Android Settings labels vary; Google documents alternate account menu names (Accounts or Users & accounts) on answer 9412194.
  • Microsoft's manual host names apply to Microsoft 365 work or school accounts on that Outlook for Android page, not automatically to every on-premises server.
  • Neither Google answer 9412194 nor the Outlook for Android page lists a definitive matrix of sync error strings for every OEM skin.

Sources