How to connect to Exchange Online mailboxes from any endpoint

Case #

You need Exchange Online mailbox connection details to setup your endpoint (email client), for example a desktop PC, a mobile client or another device (printer, scanner) or application (Web App, mobile app, Windows Forms app, API) to authenticate to an Exchange Online mailbox and you need the Microsoft 365 server connection details.

Solution #

The connection details depend on whether your email client (endpoint) uses the Exchange Online MAPI protocol or IMAP/POP as well as whether is supports TLS v1.2 or later.

MAPI desktop and mobile clients #

MAPI clients include, but are not limited to, the Microsoft Outlook desktop client for Windows and MacOSX, Outlook mobile for iOS, Android and Windows Phone and other email clients.

  • For mobile mail clients, use step-by-step instructions at: and
  • For Outlook desktop clients, use step-by-step instructions at:

Devices and applications acting as MAPI clients #

For another device, such as printer, scanner or other third-party appliance or application, follow step-by-step instructions at:

There are generally three methods for sending out emails via your Microsoft 365 tenant, as explained in the below sections.

Option 1: SMTP AUTH client submission method #

Device or Application settingValue
PortPort 587 (recommended) or port 25
Username/email address and passwordEnter the sign in credentials of the hosted mailbox being used
Option 1: SMTP Auth Client submission method


In some cases you may need to also check the SmtpClientAuthenticationDisabled property of your Exchange Online organization. If it is set to True, you will need to set it to false, otherwise the SMTP Auth Client submission method will not work, especially in cases where POP/IMAP are being used. you can check the value of the SmtpClientAuthenticationDisabled property by running the following cmdlet:

Get-TransportConfig | Select SmtpClientAuthenticationDisabled
#Set it to false if it was set to true
Set-TransportConfig -SmtpClientAuthenticationDisabled $false

Option 2: Direct send method #

For direct send, use the following connection details.

Device or application settingValue
Server/smart hostYour MX endpoint, for example,
PortPort 25
Email addressAny email address for one of your Microsoft 365 or Office 365 accepted domains. This email address does not need to have a mailbox.
Option 2: Direct send method

Option 3: Microsoft 365 SMTP Relay method #

Use this method when you cannot use methods 1 or 2 above or when your environment is making use of security defaults or MFA.

Option 3: Microsoft 365 SMTP relay

Choosing the correct device/application MAPI connection method #

In order to decide which of the above options are suitable for your device or application, you should first consider the following design factors:

IMAP/POP clients #

After you enable POP3 and IMAP4 client access, you have to give users the information in the following table so that they can connect their email programs to their Exchange Online mailboxes. POP3 and IMAP4 email programs don't use POP3 and IMAP4 to send messages to the email server. Email programs that use POP3 and IMAP4 rely on SMTP to send messages.

ProtocolServer namePortEncryption method

Additional steps #

Bear in mind that in all cases, Office 365 requires connectivity to the Internet. The endpoints listed in the following article should be reachable for customers using Office 365 plans: It is also a good idea to make use of the Microsoft 365 network connectivity test tool. When you run this test, it measures the connectivity between your device and the internet, and from there to Microsoft’s network.

Sources #

Powered by BetterDocs