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.
- 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.
| Task | Typical port | Typical connection mode |
|---|---|---|
| Submit new messages to your mail provider | 465 | Implicit TLS |
| Submit when the provider specifies STARTTLS | 587 | STARTTLS required |
| Retrieve or sync mail using IMAP | 993 | Implicit TLS |
| Exchange mail between servers | 25 | SMTP 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.
