Outlook SMTP Settings: smtp-mail.outlook.com, Ports and Sign-in
For Outlook.com, Hotmail and Live accounts, the outgoing server is smtp-mail.outlook.com on port 587 with STARTTLS. Pick Outlook in the list below to get the full settings, then test them.
Results
- Settings from Microsoft Support
- Outlook.com, Hotmail and Live
- Free, no signup
Outlook.com SMTP, IMAP and POP settings at a glance
These settings are for personal Microsoft accounts: addresses ending in @outlook.com, @hotmail.com or @live.com. Your username is your full email address, and Microsoft requires modern authentication (OAuth2), so look for a "Sign in with Microsoft" option in your app.
| Setting | Outgoing (SMTP) | Incoming (IMAP) | Incoming (POP) |
|---|---|---|---|
| Server | smtp-mail.outlook.com | outlook.office365.com | outlook.office365.com |
| Port | 587 | 993 | 995 |
| Encryption | STARTTLS | SSL/TLS | SSL/TLS |
| Sign-in | OAuth2 (modern auth) | OAuth2 (modern auth) | OAuth2 (modern auth) |
| Username | Your full email address | Your full email address | Your full email address |
Work or school account on Microsoft 365? The outgoing server is different: smtp.office365.com on port 587. See our Office 365 SMTP settings guide, which covers SMTP AUTH, connectors and the basic authentication retirement.
How to set up Outlook.com in another email app
Five steps for Thunderbird, Apple Mail, a phone app or any client that supports IMAP.
Turn on IMAP or POP access
In Outlook.com, go to Settings, Mail, Forwarding and IMAP. Turn on "Let devices and apps use IMAP" (or POP) and save. Microsoft disables both by default.
Choose IMAP rather than POP
IMAP keeps your mailbox in sync on every device. POP only downloads messages to one app.
Enter the servers and ports
Incoming: outlook.office365.com, port 993, SSL/TLS. Outgoing: smtp-mail.outlook.com, port 587, STARTTLS. Username: your full email address.
Sign in with Microsoft
Pick OAuth2 or "Sign in with Microsoft" if the app offers it. If your password is not recognized, Microsoft may require an app password for older apps and devices.
Test the connection
Run the mailX IMAP Checker and SMTP Test with the same settings to see whether the server answers and accepts your sign-in.
Related mailX tools
Check each side of your Outlook setup.
Outlook.com, Microsoft 365 or Exchange: which settings are yours?
Outlook.com, Hotmail and Live (personal)
Outgoing smtp-mail.outlook.com on 587, incoming outlook.office365.com on 993 (IMAP) or 995 (POP). This is the page you are on.
Microsoft 365 (work or school)
Outgoing smtp.office365.com on 587, or 25 through a connector. Port 465 is not supported. SMTP AUTH is off by default for organizations created after January 2020 and must be enabled per mailbox. Microsoft has announced that basic authentication for SMTP AUTH will be disabled by default for existing tenants at the end of December 2026, so plan for OAuth.
Exchange on your own server
The server names come from your IT team. Ask for the external IMAP and SMTP host names, or check your domain's MX records to see who receives your mail.
Test Outlook's servers from the command line
These commands check that the servers answer from your network. A reply starting with 220 (SMTP) or * OK (IMAP) means the port is reachable; the login itself still needs OAuth in your app.
SMTP on port 587 with STARTTLS (macOS, Linux, WSL):
IMAP on port 993:
Windows (PowerShell):
Why Outlook SMTP or IMAP refuses to connect
The usual causes with Outlook.com accounts.
IMAP or POP access is off
Microsoft disables POP and IMAP by default. Turn them on in Settings, Mail, Forwarding and IMAP.
App without modern authentication
Outlook.com requires OAuth2. Old apps that only send a username and password get refused. Update the app or use one that supports Microsoft sign-in.
Wrong outgoing server
smtp.office365.com is for Microsoft 365 work accounts. Personal accounts use smtp-mail.outlook.com.
Port 465 configured
Outlook.com documents port 587 with STARTTLS for sending. Use 587.
Sign-in blocked as suspicious
Microsoft can block a new IMAP connection. Open account.live.com/activity, find the attempt and confirm it was you, then retry.
Several apps on the same mailbox
Microsoft notes connection errors when the account is set up as IMAP in many clients. Remove the ones you no longer use.
Outlook and SMTP guides
Go further with Microsoft mail settings.
Office 365 SMTP Settings
Host, port and authentication for Microsoft 365 work accounts, and the errors to avoid.
IMAP vs POP3 Explained
Which protocol to choose to read your mail in another client.
How to Fix SMTP Errors
What the most common SMTP error codes mean and how to solve them.
Sending from your own domain with Microsoft?
Microsoft 365 mail reaches the inbox when SPF, DKIM and DMARC are set up for your domain. Check all three in one free test.