An SMTP server address is the hostname your app or mail client connects to when it sends email, for example smtp.gmail.com. You always need four things with it: the address, a port (587 or 465), a username and a password. The tables below list them for the common providers.
SMTP server addresses for common providers
| Provider | SMTP server address | Port and encryption | Username |
|---|---|---|---|
| Gmail | smtp.gmail.com |
465 (SSL) or 587 (TLS) | Full Gmail address |
| Google Workspace relay | smtp-relay.gmail.com |
25, 465 or 587 | IP allowlist or Workspace login |
| Microsoft 365 | smtp.office365.com |
587 STARTTLS | Full mailbox address |
| Outlook.com, Hotmail | smtp-mail.outlook.com |
587 STARTTLS | Full address, OAuth sign-in |
| Yahoo Mail | smtp.mail.yahoo.com |
465 or 587 | Full Yahoo address, app password |
| Zoho Mail (personal) | smtp.zoho.com |
465 (SSL) or 587 (TLS) | Full Zoho address |
| Zoho Mail (paid domain) | smtppro.zoho.com |
465 (SSL) or 587 (TLS) | Full domain address |
| Mailcandor | smtp.mailcandor.com |
465 (TLS) or 587 (STARTTLS) | mailcandor, password is an API key |
Sources: Google, Microsoft 365, Outlook.com, Yahoo, Zoho. Each provider has its own page with more detail: Gmail, Microsoft 365 and Outlook, Yahoo and Zoho.
What each SMTP setting means
Server address (host, smart host, outgoing server). The DNS name of the server that accepts your outgoing mail. Always use the hostname, not an IP address: providers change IPs, and TLS certificates are issued for the name.
Port. The TCP port on that server. Use 587 for STARTTLS or 465 for implicit TLS. Port 25 is for server-to-server delivery and is blocked on most networks. The SMTP ports guide covers each one.
Encryption (SSL, TLS, STARTTLS). Clients label this inconsistently. “SSL” or “SSL/TLS” usually means implicit TLS on 465. “TLS” or “STARTTLS” usually means upgrade on 587. If you pick the wrong pairing, the connection hangs or fails with a handshake error.
Username. For mailbox providers, your full email address. For sending services, whatever the service documents. Some use a fixed word plus an API key as the password.
Password. Increasingly not your normal account password. Gmail and Yahoo want an app password for SMTP, and Outlook.com requires OAuth sign-in. More on that below.
How to find your SMTP server address
If your provider is not in the table, try these in order:
- Look in an existing mail client. If Outlook, Apple Mail or Thunderbird already sends from the account, open the account settings and read the outgoing server. In Thunderbird it is under Account Settings, Outgoing Server (SMTP).
- Search your host’s help center for “SMTP settings” or “mail client settings.” Web hosts that bundle email often use
mail.yourdomain.comor a shared hostname likeserver123.host.com. - Check your domain’s MX record to learn who hosts your mailbox. Run
dig MX yourdomain.comor use an MX lookup tool. If it points toaspmx.l.google.comyou are on Google Workspace; if it ends inmail.protection.outlook.comyou are on Microsoft 365. That tells you which provider’s SMTP page to read.
The MX record itself is not your SMTP submission server. MX says where your domain receives mail. The SMTP address you put in an app is where you submit outgoing mail, and it is usually a different host.
SMTP username and password: what changed
Providers have moved away from plain account passwords over SMTP:
- Gmail asks you to use an app password, a 16-character code you create after turning on 2-Step Verification. Your normal password will be refused.
- Yahoo also requires an app password for third-party apps.
- Outlook.com requires OAuth2, so simple scripts and many devices cannot log in at all.
- Microsoft 365 plans to disable Basic auth for SMTP AUTH by default for existing tenants at the end of December 2026, with a final removal date to be announced in the second half of 2027.
If a device or script cannot do OAuth or app passwords, you need a relay that accepts a plain username and password over TLS, or one that authenticates by IP address.
“SMTP server requires authentication”
This message, common on printers and older apps, means the server will not take mail from an anonymous client. Fix it by:
- Ticking the “SMTP authentication” or “Server requires authentication” box.
- Entering the full username and the correct password type (often an app password).
- Making sure encryption is on, because most providers refuse to authenticate over an unencrypted connection.
If you still get errors after that, the reply code in the error tells you why. Our SMTP error codes guide explains each one.
Testing the address before you save it
Many apps and devices fail with a vague “cannot send” message. Before blaming the password, check that the address and port are reachable from the machine that will send:
nc -vz smtp.gmail.com 587
“Succeeded” or “open” means the server is reachable and any remaining error is about TLS or login. A timeout means a firewall or your host is blocking that port.
Personal mailbox vs a sending service
A personal Gmail or Outlook address works for a contact form on a small site or a printer in one office. It is a poor fit for app email: daily caps are low (Gmail allows 500 messages a day on a personal account), the mail comes from one person’s mailbox, and there is no record of what bounced.
For app email, use a transactional provider’s SMTP relay. With Mailcandor that is smtp.mailcandor.com on 465 or 587, username mailcandor and an API key as the password. You verify your own domain once with SPF and DKIM, and bounces and complaints are reported per message by webhook. See the SMTP relay page for details.