Smtp

SMTP server address: how to find yours

Short answer

Your SMTP server address is the hostname of your email provider's outgoing mail server, such as smtp.gmail.com for Gmail or smtp.office365.com for Microsoft 365. You pair it with a port (587 or 465), your full email address as the username, and a password or app password. If you send from an app, use your email service's SMTP relay address and API key instead of a personal mailbox.

Last checked 16 November 2026

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:

  1. 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).
  2. Search your host’s help center for “SMTP settings” or “mail client settings.” Web hosts that bundle email often use mail.yourdomain.com or a shared hostname like server123.host.com.
  3. Check your domain’s MX record to learn who hosts your mailbox. Run dig MX yourdomain.com or use an MX lookup tool. If it points to aspmx.l.google.com you are on Google Workspace; if it ends in mail.protection.outlook.com you 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:

  1. Ticking the “SMTP authentication” or “Server requires authentication” box.
  2. Entering the full username and the correct password type (often an app password).
  3. 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.

Questions

What is my SMTP server?

It is your email provider's outgoing mail server. For Gmail it is smtp.gmail.com, for Microsoft 365 smtp.office365.com, for Outlook.com smtp-mail.outlook.com, for Yahoo smtp.mail.yahoo.com. For a custom domain, check your host's help pages or the mail client settings it published.

What is the SMTP username and password?

For a mailbox provider it is usually your full email address and either your account password or an app password. For a sending service it is whatever that service documents, often a fixed username plus an API key.

Is the SMTP server the same as my MX record?

No. MX records say where mail for your domain is received. The SMTP server you configure in an app is where you submit outgoing mail. They are often different hosts.

What does 'SMTP server requires authentication' mean?

The server will not accept mail until you log in. Turn on SMTP authentication in your client or device and enter the username and password the provider gives you.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.