STARTTLS vs. Implicit TLS: Which Email Port Should You Use?

Choose TLS settings for SMTP submission and IMAP. Check hostnames, ports, and connection modes without confusing mailbox access and mail relay.

FBFenwei BianAuthorNov 24, 2026
  • email
  • tls
  • smtp
  • guide

Use the hostname, port, and TLS mode published by your mailbox provider. For SMTP submission, port 465 is commonly paired with implicit TLS and port 587 with required STARTTLS. For reading mail over IMAP, port 993 is the standard implicit-TLS option. Port 25 normally serves mail relay between servers. RFC 8314 defines secure mail access and submission. RFC 6409 separates submission from relay.

Match the mode to the connection’s job

With implicit TLS, the client starts the TLS handshake as soon as it connects, before speaking SMTP or IMAP. With STARTTLS, the client starts with the protocol greeting and then requests an upgrade to TLS. On a port designated for required STARTTLS, the client should proceed with credentials and submission only after TLS succeeds. The client also needs to verify the server identity. RFC 3207 defines SMTP STARTTLS.

TaskTypical portTypical connection mode
Submit new messages to your mail provider465Implicit TLS
Submit when the provider specifies STARTTLS587STARTTLS required
Retrieve or sync mail using IMAP993Implicit TLS
Exchange mail between servers25SMTP relay, with TLS policy set by the servers

Some apps label implicit TLS as SSL or SSL/TLS even when the connection uses TLS. Treat that label as a settings question. Port and TLS mode must match the service configuration. For submission, also select the provider’s documented authentication method instead of assuming the password field is sufficient for every account.

Diagnose an incoming or outgoing settings mismatch

Imagine a mailbox app can read mail but cannot send. Start with the outgoing service only. Compare the SMTP hostname, port and mode to the provider’s table. If the provider specifies port 465 with implicit TLS and the app instead tries STARTTLS there, correct the connection mode before changing passwords or DNS records. If the expected port is 587 and TLS upgrade fails, keep the TLS requirement enabled and verify the host and network against the provider’s instructions.

Once the mode is correct, check that the certificate matches the service hostname. The mailbox address person@example.com does not require the provider’s SMTP certificate to name example.com if the app connects to the provider’s approved host. If both the handshake and identity work but sign-in fails, investigate the provider’s account and authentication settings, then send to an address you control. Avoid editing MX records to fix a mismatch in one device’s submission settings.

Know where the protected connection ends

TLS protects the connection you configure. A client’s encrypted submission session ends at its provider. Later transmission between mail servers uses separate channels and possibly separate TLS policies, and the message may also be stored. A mail app’s SSL indicator therefore gives no end-to-end guarantee about who can read the message. RFC 8314 describes the scope of mail access and submission security.

Sources and further reading

About the author(s)

Software Developer & Writer • Namefi
FBAuthor

Fenwei Bian is a software developer in her thirties who spends her working hours in pull requests and her weekends with her hands in soil or sawdust. Years of open source on GitHub taught her that names are interfaces: a good one is clear, honest about what it does, and kind to whoever has to use it next.

She gardens because it rewards patience and punishes wishful thinking, and she does woodwork because a joint either fits or it doesn't. Both habits show up in how she writes about naming — measure twice, check the source, and don't sand over a rough spot and hope no one notices.

For Namefi she writes about how domain markets actually move, the practical trade-offs of tokenizing and flipping names, and picking a domain you'll still be glad you own in twenty years.

Related guides

Discuss this post

View the discussion on Namefi Discuss