SMTP Server Settings for Every Email Provider
Outgoing SMTP server, port and encryption for Gmail, Outlook, Microsoft 365, Yahoo, iCloud and more — plus how to pick 587 or 465 and why your password is refused.
An SMTP server is the outgoing half of an email account: the address your mail app, phone, printer or website hands messages to so they can be sent. Every provider runs its own, and each one expects a specific server name, port and encryption setting. Get any of the three wrong and messages sit in the outbox while incoming mail keeps working perfectly.
The table below lists the SMTP settings for every major provider, each checked against that provider's own documentation. Underneath it you'll find the two things that cause most sending failures: pairing the wrong encryption with a port, and using a password the provider no longer accepts.
Using a work or custom-domain address? Enter it in the Email Settings Finder. It reads the domain's mail records and tells you whether it runs on Google Workspace, Microsoft 365 or another host.
SMTP settings by provider
| Provider | SMTP server | Port and encryption | Also accepts | Sign in with |
|---|---|---|---|---|
| Gmail | smtp.gmail.com | 587, STARTTLS | 465, SSL/TLS | Sign in with Google; app password as a fallback |
| Outlook.com, Hotmail, Live | smtp-mail.outlook.com | 587, STARTTLS | — | Microsoft sign-in (OAuth2 required) |
| Microsoft 365 (work or school) | smtp.office365.com | 587, STARTTLS | 25 (465 not supported) | Licensed mailbox with SMTP AUTH turned on |
| Yahoo Mail | smtp.mail.yahoo.com | 465, SSL/TLS | 587, STARTTLS | App password |
| iCloud Mail | smtp.mail.me.com | 587, STARTTLS | — | App-specific password; full iCloud address as username |
| AOL Mail | smtp.aol.com | 465, SSL/TLS | — | App password |
| Zoho Mail | smtp.zoho.com | 465, SSL/TLS | 587, STARTTLS | Account password, or an app-specific password with 2FA |
| GMX | mail.gmx.com | 587, STARTTLS | 465, SSL/TLS | Account password; app-specific password with 2FA |
| mail.com | smtp.mail.com | 587, STARTTLS | 465, SSL/TLS | Premium accounts only |
| Fastmail | smtp.fastmail.com | 465, SSL/TLS | 587, STARTTLS | App password (regular password not accepted) |
| Yandex Mail | smtp.yandex.com | 465, SSL/TLS | 587, STARTTLS | App password |
| Hushmail | smtp.hushmail.com | 465, SSL/TLS | 587 | Full Hushmail address and password |
| Mailfence | smtp.mailfence.com | 465, SSL/TLS | — | Paid plan; account or service password |
| Proton Mail | Proton Mail Bridge (127.0.0.1) | Shown in Bridge | — | Bridge credentials; paid plan |
| Tuta | Not available | — | — | Tuta’s own apps and webmail only |
In every case the SMTP username is the full email address unless the provider's guide says otherwise, and authentication must be switched on for the outgoing server. Many mail apps store the outgoing password separately from the incoming one, so updating only one leaves sending broken.
587, 465 or 25: which port to use
Three ports come up in SMTP settings. Only two of them are meant for mail apps.
| Port | How encryption starts | What it's for |
|---|---|---|
| 587 | Plain connection that upgrades with STARTTLS | Message submission from mail apps and devices. The standard requires the app to sign in before it can send (RFC 6409). |
| 465 | Encrypted from the first byte (implicit TLS, often labelled SSL/TLS) | Message submission. The current standard prefers it over STARTTLS (RFC 8314). |
| 25 | Depends on the server | Relaying mail between servers (RFC 6409). Only use it where a provider documents it, such as Microsoft 365 or Google Workspace relay. |
The most common mistake: mismatched port and encryption
The port and the encryption setting are a pair. Choose them together:
- Port 587 → STARTTLS (sometimes labelled "TLS").
- Port 465 → SSL/TLS (sometimes labelled "SSL").
Mixing them doesn't work. On port 465 the server expects encryption from the very first byte, while STARTTLS begins unencrypted and upgrades afterwards (RFC 8314). Port 465 with STARTTLS, or port 587 with SSL/TLS, typically ends in a timeout or a handshake error even though the server name is right. If you change one setting, change the other with it.
So which should you pick?
Use the provider's first-listed port from the table above. If it times out on your network, switch to the provider's other documented port and its matching encryption. Two exceptions: Microsoft 365 doesn't accept port 465 at all, and Outlook.com documents only 587.
Whichever port you use, the connection must support modern TLS. The email standard requires servers to support TLS 1.2 or later (RFC 8314). GMX accepts only TLS 1.2 and 1.3, and Microsoft 365 requires TLS 1.2 or 1.3, so older printers and apps that can't do TLS 1.2 won't connect.
Why the SMTP password is refused
Most providers no longer accept your normal account password in a third-party app. What they expect instead:
- Sign-in window (OAuth). Outlook.com requires it. Gmail recommends "Sign in with Google" and treats app passwords as a fallback only for eligible accounts with 2-Step Verification. Choose the app's built-in Google or Microsoft account type rather than "Other / IMAP".
- App password. Yahoo, AOL, iCloud (an "app-specific password"), Fastmail and Yandex expect a generated password made in your account's security settings. Use one per app so you can revoke it on its own.
- A switch on the server. Microsoft 365 needs SMTP AUTH enabled for that mailbox by an administrator. GMX and mail.com need POP3/IMAP access turned on in their settings first, and mail.com offers it only on Premium.
Work and custom-domain email
A company address like you@yourcompany.com uses the SMTP server of whoever hosts the domain, not one tied to the domain name:
- Google Workspace:
smtp.gmail.com, signing in with the full Workspace address. For printers, scanners and apps, Google also documentssmtp-relay.gmail.com(ports 25, 465 or 587, authenticated by IP address). - Microsoft 365:
smtp.office365.comon 587. See the Microsoft 365 SMTP guide for turning on SMTP AUTH and for relay options. - Paid Zoho Mail organisation accounts on their own domain:
smtppro.zoho.comrather thansmtp.zoho.com. - Anything else: run the address through the Email Settings Finder, or ask whoever manages the domain.
Providers that work differently
- Proton Mail has no public SMTP server. Desktop apps send through Proton Mail Bridge, a paid-plan app that runs on your own computer, which is why its server is
127.0.0.1. Use the port and credentials Bridge shows you. - Tuta offers no SMTP, IMAP or POP access at all.
- GMX addresses ending in gmx.net use
mail.gmx.netrather thanmail.gmx.com. - iCloud uses a different username for each direction: just the name part for incoming IMAP, but the full address for outgoing SMTP.
- Zoho accounts hosted in Europe, India or Australia may need a regional server name, shown inside Zoho Mail's settings.
Published sending limits
Only some providers publish a number. These are the ones stated in official documentation:
| Service | Published limit |
|---|---|
Microsoft 365 (smtp.office365.com) | 10,000 recipients per day; 30 messages per minute |
Google Workspace via smtp.gmail.com | 2,000 messages per day |
Other providers apply limits without publishing a figure in the pages we checked, so we don't quote one. For newsletters or bulk sending, use a service built for it rather than a personal mailbox.
If mail still won't send
| What you see | Most likely cause | What to do |
|---|---|---|
| Incoming works, outgoing doesn't | Outgoing authentication is off, or has an old password | Turn on "My outgoing server requires authentication" and re-enter the password in the SMTP section. |
| Immediate timeout or handshake error | Port and encryption don't match | 587 with STARTTLS, or 465 with SSL/TLS. |
| Times out on one port only | Something on the network is blocking that port | Switch to the provider's other documented port and its matching encryption. |
| Password rejected, though it works in the browser | The provider expects OAuth or an app password | Use the app's Google or Microsoft sign-in, or generate an app password. |
| TLS error on an older printer or app | No TLS 1.2 support | Update the firmware, or use the provider's relay option. |
Microsoft 365: 5.7.60 | No Send As permission for the From address | Grant Send As, or send from the signed-in mailbox. |
| Sending from an alias fails | The alias isn't verified in the account | Add and verify it in the provider's webmail first. |
Each provider guide linked in the first table has a fuller checklist for that service. Got a bounce with an error number? Look it up in SMTP error codes explained.
How this guide was checked · October 2026
Verified against 18 official sources
Every step, setting and limit in this guide was checked against the provider’s own documentation on datatracker.ietf.org, support.google.com, knowledge.workspace.google.com and 14 more. Anything we couldn’t confirm was left out.
- 01 IETF RFC 6409: Message Submission for Mail datatracker.ietf.org
- 02 IETF RFC 8314: Use of TLS for Email Submission and Access datatracker.ietf.org
- 03 Google: Read Gmail with POP (SMTP settings) support.google.com
- 04 Google Workspace: Send email from a printer, scanner or app knowledge.workspace.google.com
- 05 Microsoft: POP, IMAP and SMTP settings for Outlook.com support.microsoft.com
- 06 Microsoft Learn: Send email from a device or application using Microsoft 365 learn.microsoft.com
- 07 Yahoo: IMAP server settings for Yahoo Mail help.yahoo.com
- 08 Apple: iCloud Mail server settings for other email client apps support.apple.com
- 09 AOL: Use POP or IMAP in a third-party app help.aol.com
- 10 Zoho: IMAP and SMTP configuration zoho.com
- 11 GMX: Problems setting up GMX in an email program support.gmx.com
- 12 GMX (gmx.net): IMAP-Serverdaten hilfe.gmx.net
- 13 mail.com: POP, IMAP and SMTP are Premium features support.mail.com
- 14 Fastmail: Server names and ports fastmail.help
- 15 Yandex: Other mail clients yandex.com
- 16 Hushmail: POP, IMAP and SMTP hostnames and ports help.hushmail.com
- 17 Mailfence: Connect with Thunderbird using IMAP, POP and SMTP kb.mailfence.com
- 18 Proton: IMAP, SMTP and POP3 setup proton.me
Questions
Frequently asked questions
What is an SMTP server?
The outgoing mail server for an email account. Your mail app hands messages to it to be sent; incoming mail arrives separately through IMAP or POP3.
Should I use port 587 or 465?
Either, as long as you pair it with the right encryption: 587 with STARTTLS, or 465 with SSL/TLS. Use the port your provider lists first. Microsoft 365 is the exception — it doesn't accept 465.
Can I use port 25 for SMTP?
Not in a normal mail app. Port 25 is for relaying mail between servers. Use it only where a provider documents it, such as Microsoft 365 or Google Workspace relay for printers and apps.
What is the SMTP server for Gmail?
smtp.gmail.com on port 587 with STARTTLS, or port 465 with SSL/TLS. Use the app's “Sign in with Google” option where it's offered.
What is the SMTP server for Outlook and Hotmail?
smtp-mail.outlook.com on port 587 with STARTTLS, using Microsoft's sign-in (OAuth2). Microsoft 365 work and school accounts use smtp.office365.com instead.
Why does my SMTP password keep getting rejected?
Most providers no longer accept the normal account password in other apps. Use the app's built-in Google or Microsoft sign-in, or generate an app password in your account's security settings. Microsoft 365 also needs SMTP AUTH turned on for the mailbox.
Related guides
Keep reading
Server Settings SMTP
SMTP Ports Explained: 587 vs 465 vs 25
Which email port to use: 587 with STARTTLS or 465 with SSL/TLS for sending, 25 only for server relay, and 993 or 995 for incoming mail. How to match encryption, test a port and fix errors.
7 min read
Microsoft 365 SMTP
Microsoft 365 SMTP Settings
The SMTP server, port and encryption for Microsoft 365 work mailboxes, how to turn on SMTP AUTH, and what to do when a printer or app still won't send.
5 min read
Gmail SMTP
Gmail SMTP Settings
The current Gmail SMTP server, port, encryption and authentication requirements, plus focused fixes for failed authenticated outgoing mail submission.
4 min read
Outlook.com SMTP
Outlook.com SMTP Settings
The current Outlook.com SMTP server, port, encryption and authentication requirements, plus focused fixes for failed authenticated outgoing mail submission.
4 min read
Yahoo Mail SMTP
Yahoo Mail SMTP Settings
The current Yahoo Mail SMTP server, port, encryption and authentication requirements, plus focused fixes for failed authenticated outgoing mail submission.
4 min read
Optimum Email Settings
Optimum Email Settings: IMAP, POP & SMTP (Suddenlink Too)
Optimum’s IMAP, POP and SMTP settings for Outlook, iPhone, Gmail and other apps — with the separate Suddenlink servers.
2 min read