Skip to content
DFY Inbox Setup

Microsoft 365 (Office 365) SMTP and IMAP Settings

The exact SMTP, IMAP and POP settings for Microsoft 365 and Outlook.com, how to turn on SMTP AUTH, what changes for password sign-in at the end of 2026, and how to fix the usual errors.

Photo of Farhan MujahidBy Farhan MujahidFounder and CEO, DFY Inbox Setup

Updated · 7 min read

These are the settings for work and school mailboxes on Microsoft 365, the service still often called Office 365, including Exchange Online. Personal Outlook.com and Hotmail accounts use a slightly different sending server, covered further down. If you are not sure what SMTP and IMAP do, start with what SMTP is.

Microsoft 365 SMTP, IMAP and POP settings

SettingValue
Outgoing server (SMTP)smtp.office365.com
SMTP port587
SMTP encryptionSTARTTLS (sometimes labelled TLS)
Incoming server (IMAP)outlook.office365.com
IMAP port and encryption993, SSL/TLS
Incoming server (POP)outlook.office365.com
POP port and encryption995, SSL/TLS
UsernameThe full email address, for example sarah@yourdomain.com
PasswordThe mailbox password, or a Microsoft sign-in (OAuth) where the app offers it
Settings for Microsoft 365 work and school mailboxes

Most apps find these on their own once you enter the email address. Type them in only when the app asks for manual setup. For the ports themselves and when to use which, see SMTP and IMAP ports.

Outlook.com and Hotmail settings

Personal Microsoft accounts (outlook.com, hotmail.com, live.com) use a different sending server. According to Microsoft’s settings page for Outlook.com:

SettingValue
Outgoing server (SMTP)smtp-mail.outlook.com
SMTP port and encryption587, STARTTLS
Incoming server (IMAP)outlook.office365.com
IMAP port and encryption993, SSL/TLS
POPoutlook.office365.com, port 995, SSL/TLS

Outlook.com requires Microsoft sign-in (OAuth) for these connections, and POP and IMAP are off until you turn them on under Settings, Mail, Forwarding and IMAP.

How to turn on SMTP AUTH in Microsoft 365

Apps that send with a username and password use what Microsoft calls authenticated SMTP, or SMTP AUTH. Many organizations have it switched off, and new ones start with it off. Turn it on only for the mailboxes that need it:

  1. Sign in to the Microsoft 365 admin center with an admin account.
  2. Go to Users, then Active users, and select the mailbox.
  3. Open the Mail tab and choose Manage email apps.
  4. Tick Authenticated SMTP and save.

If it is still refused, the setting may be off for the whole organization. In the Exchange admin center, open Settings, then Mail flow, and clear the option that turns off the SMTP AUTH protocol for your organization. Admins who prefer PowerShell can run:

Set-CASMailbox -Identity sarah@yourdomain.com -SmtpClientAuthenticationDisabled $false
Turns SMTP AUTH on for one mailbox in Exchange Online PowerShell

Two more things block password sign-in even when SMTP AUTH is on: security defaults, and Conditional Access policies that block legacy authentication. Microsoft explains the full setup in its guide to authenticated client SMTP submission.

Password sign-in for SMTP ends in 2026

Source: Microsoft’s updated SMTP AUTH timeline. If an app or printer still sends with a password, move it to OAuth now rather than waiting for it to stop. Password sign-in for IMAP and POP was already switched off in 2022, so reading mail with a password no longer works at all.

Connecting Microsoft 365 inboxes to Instantly, Smartlead or another sending tool

Cold email tools read replies and run warm-up over IMAP, and since IMAP no longer accepts passwords, Microsoft inboxes are connected through Microsoft sign-in instead of typed SMTP settings:

  1. In the sending tool, add an email account and choose Microsoft, Outlook or Office 365.
  2. Sign in with the inbox’s full email address and password, then accept the permissions.
  3. If Microsoft shows Need admin approval, sign in once with the organization’s admin account and approve the app for the whole organization. Every other inbox then connects without asking.

Microsoft 365 sending limits

Exchange Online limits allow up to 10,000 recipients a day and 30 messages a minute per mailbox. Those are ceilings, not targets. For cold email, keep each inbox to 25 to 30 emails a day after a full warm-up. Sending close to the limit from new domains is the fastest way to land in spam.

Common Microsoft 365 SMTP errors and fixes

ErrorWhat it meansFix
535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabledSMTP AUTH is off for the mailbox or the organizationTurn on Authenticated SMTP as above, or connect with OAuth
535 5.7.139 … security defaults policySecurity defaults block password sign-inConnect with OAuth. Turning off security defaults weakens the whole organization
535 5.7.3 Authentication unsuccessfulWrong username or passwordUse the full email address and check the password by signing in at outlook.office.com
530 5.7.57 Client not authenticated to send mailThe app is sending without signing inTurn on authentication in the app’s outgoing server settings
Connection timed outWrong port, or the network blocks itUse port 587 with STARTTLS; some networks block outgoing mail ports

Frequently asked questions

What is the SMTP server for Office 365?

smtp.office365.com on port 587 with STARTTLS. Sign in with the full email address of the mailbox. The same settings apply to Microsoft 365 business plans and Exchange Online.

What is the IMAP server for Office 365?

outlook.office365.com on port 993 with SSL/TLS. POP uses the same server on port 995.

Does Office 365 SMTP support port 465?

Microsoft documents port 587 with STARTTLS for authenticated sending. Use 587. Port 465 is not one of the ports Microsoft lists for smtp.office365.com.

Why do I get 535 5.7.139 Authentication unsuccessful?

SMTP AUTH is turned off for the mailbox or the whole organization, or security defaults are blocking password sign-in. Turn on Authenticated SMTP for the mailbox in the Microsoft 365 admin center, or connect with OAuth instead.

Will Office 365 SMTP with a password stop working?

Microsoft turns off password (Basic) sign-in for SMTP by default for existing organizations at the end of December 2026. Admins can still turn it back on for now, and Microsoft will announce a final removal date in the second half of 2027. New organizations created after December 2026 get OAuth only.

How do I connect Microsoft 365 inboxes to Instantly or Smartlead?

Use the sending tool’s Microsoft or Outlook sign-in button and sign in with the inbox’s email and password. If Microsoft asks for admin approval, sign in once with the organization’s admin account and approve the app for everyone.

Your next campaign could be sending by the end of the week.

Create a free account, build your order in a few minutes and request a quote. You only pay when you are happy with it.