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
| Setting | Value |
|---|---|
| Outgoing server (SMTP) | smtp.office365.com |
| SMTP port | 587 |
| SMTP encryption | STARTTLS (sometimes labelled TLS) |
| Incoming server (IMAP) | outlook.office365.com |
| IMAP port and encryption | 993, SSL/TLS |
| Incoming server (POP) | outlook.office365.com |
| POP port and encryption | 995, SSL/TLS |
| Username | The full email address, for example sarah@yourdomain.com |
| Password | The mailbox password, or a Microsoft sign-in (OAuth) where the app offers it |
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:
| Setting | Value |
|---|---|
| Outgoing server (SMTP) | smtp-mail.outlook.com |
| SMTP port and encryption | 587, STARTTLS |
| Incoming server (IMAP) | outlook.office365.com |
| IMAP port and encryption | 993, SSL/TLS |
| POP | outlook.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:
- Sign in to the Microsoft 365 admin center with an admin account.
- Go to Users, then Active users, and select the mailbox.
- Open the Mail tab and choose Manage email apps.
- 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 $falseTwo 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:
- In the sending tool, add an email account and choose Microsoft, Outlook or Office 365.
- Sign in with the inbox’s full email address and password, then accept the permissions.
- 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
| Error | What it means | Fix |
|---|---|---|
535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled | SMTP AUTH is off for the mailbox or the organization | Turn on Authenticated SMTP as above, or connect with OAuth |
535 5.7.139 … security defaults policy | Security defaults block password sign-in | Connect with OAuth. Turning off security defaults weakens the whole organization |
535 5.7.3 Authentication unsuccessful | Wrong username or password | Use the full email address and check the password by signing in at outlook.office.com |
530 5.7.57 Client not authenticated to send mail | The app is sending without signing in | Turn on authentication in the app’s outgoing server settings |
| Connection timed out | Wrong port, or the network blocks it | Use 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.