Port 465 is SMTPS – SMTP with implicit TLS (TLS established immediately on connect, before any SMTP commands). It was originally registered for a different purpose, then used for SMTPS, then deprecated in favor of port 587 (STARTTLS), then re-assigned to SMTP with implicit TLS by RFC 8314 (2018). Most modern email clients support both 465 and 587.
Port Number
465
Protocol
TCP
Service
SMTP over TLS (implicit)
Range
IANA Registered (1024–49151)
Test implicit TLS – should see certificate immediately (no STARTTLS needed)
openssl s_client -connect smtp.example.com:465Send test email via SMTPS port 465
swaks --to [email protected] --server smtp.example.com --port 465 --tls --auth-user useropenssl s_client -connect smtp.example.com:465
EHLO client.example.com
AUTH PLAIN <credentials>
MAIL FROM:<[email protected]>Port 465 was originally registered for smtps in 1997, revoked in 1998 when STARTTLS (port 587) was preferred, then reassigned by RFC 8314 in 2018 which formally recommended implicit TLS for email submission. The 20-year deprecation caused widespread confusion in documentation.
Port 465 vs 587 – which should I configure?
RFC 8314 (2018) recommends port 465 (implicit TLS) for new configurations because it eliminates STARTTLS stripping attacks. Port 587 remains valid and widely used. Configure both on your server for maximum client compatibility. If you must pick one: 465 for security, 587 for legacy compatibility.