Port reference › Email

Port 465 · SMTPS

TLS-encrypted mail submission

TCP Email Exposure risk: Low

What is port 465 used for?

Mail submission wrapped in TLS from the start. Common in Gmail and other SMTP settings.

Well-known port (0-1023): opening it on Linux needs root (or CAP_NET_BIND_SERVICE).

Security notes

Use app passwords instead of your account password.

Allow port 465 through the firewall

This port is generally fine to expose publicly.

sudo ufw allow 465/tcp
sudo ufw status

Check whether port 465 is open

sudo ss -tlpn | grep ':465 '

Ports used together

Other email ports

110 POP3 995 POP3S 143 IMAP 993 IMAPS