Port 465: SMTPS (submission over TLS)

Port 465 (TCP) is used by SMTPS (submission over TLS). Mail submission with implicit TLS. Re-standardized by RFC 8314 and preferred over 587 by some providers.

465Port
TCPProtocol
submissionsIANA service name
EmailCategory

Port range

465 is a well-known (system) port (range 0–1023). On Linux and macOS, binding to it traditionally needs root or the CAP_NET_BIND_SERVICE capability.

Security

Only open port 465 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 465 in a firewall

ufw         sudo ufw allow 465/tcp
iptables    sudo iptables -A INPUT -p tcp --dport 465 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=465/tcp
Windows     New-NetFirewallRule -DisplayName "SMTPS (submission over TLS) 465" -Direction Inbound -Protocol TCP -LocalPort 465 -Action Allow

Check if port 465 is open

nc -vz example.com 465
Test-NetConnection example.com -Port 465   # PowerShell
sudo ss -tulpn | grep ':465 '   # what is listening locally (Linux)

Other email ports

Frequently asked questions

What is port 465 used for?
SMTPS (submission over TLS). Mail submission with implicit TLS. Re-standardized by RFC 8314 and preferred over 587 by some providers.
Is port 465 TCP or UDP?
TCP.