STARTTLS
termKept in this browser · My desk
The command that turns a connection begun in clear text into a TLS one: the client asks, the server agrees, and the TLS handshake runs on the same connection.
SMTP has had it as a verb since RFC 3207 (2002, replacing RFC 2487); RFC 2595 (1999) gave IMAP STARTTLS and POP3 the STLS command, and the equivalent in LDAP (Lightweight Directory Access Protocol) is the StartTLS extended operation of RFC 4511. Because the upgrade follows a clear-text greeting, a TLS client has to speak the protocol first: openssl s_client sends the protocol's own messages when given -starttls and a keyword such as smtp, imap, pop3, ftp or ldap. Between a mail client and its provider, RFC 8314 (2018) recommends Implicit TLS on a port of its own (465, 993 and 995) instead.
Also known as: stls, start tls, starttls smtp, ldap starttls
Sources
- RFC 3207, SMTP Service Extension for Secure SMTP over TLS, February 2002 (read 2026-10-27): the STARTTLS verb and EHLO keyword; obsoletes RFC 2487
- RFC 2595, Using TLS with IMAP, POP3 and ACAP, June 1999 (read 2026-10-27): STARTTLS for IMAP and the STLS command for POP3
- RFC 4511, LDAP: The Protocol, section 4.14 (read 2026-10-27): the StartTLS extended operation
- RFC 8314, Cleartext Considered Obsolete, January 2018, section 3 (read 2026-10-27): Implicit TLS recommended for POP, IMAP and SMTP Submission, on ports 995, 993 and 465
- OpenSSL 3.5 manual, openssl-s_client(1) (read 2026-10-27): -starttls with the keywords smtp, pop3, imap, ftp, xmpp, xmpp-server, irc, postgres, mysql, lmtp, nntp, sieve and ldap