Glossary · Infrastructure
What is STARTTLS?
STARTTLS is an SMTP command that upgrades a plain-text connection to an encrypted TLS connection, used on ports 587 and 25.
STARTTLS vs implicit TLS
- STARTTLS (port 587): the connection starts in plain text and the client sends
STARTTLSto switch to TLS before authenticating. - Implicit TLS (port 465): TLS starts immediately, before any SMTP command.
Both are secure when the client requires TLS. In most libraries, port 587 means secure: false (STARTTLS) and port 465 means secure: true.
Opportunistic vs enforced
Between servers, STARTTLS is usually opportunistic: if the receiver doesn't support it, mail goes unencrypted. MTA-STS and DANE let domains require TLS. Stack Emails lets you choose opportunistic or enforced TLS per domain.