Skip to content
statance
MenuClose
← All ports

Port 465: SMTPS (mail submission over TLS)

Low risk

Port 465 is SMTP submission with implicit TLS: the connection is encrypted from the first byte. Mail clients use it to send outgoing mail through their own server. It is normally meant to be reachable from the internet.

Port
465
Protocol
TCP
Service
SMTPS (mail submission over TLS)
Expose to internet?
Yes, usually
Also used by
Postfix, Exim, Microsoft 365, Gmail

Is port 465 safe to open?

Submission ports are meant to be reachable by your users and are encrypted. The main risk is credential stuffing: a compromised account can be used to send spam through your server and damage its reputation.

How to secure SMTPS (mail submission over TLS)

  • Require authentication for all submission and never relay unauthenticated mail.
  • Rate-limit messages per account so a stolen password cannot send thousands of emails.
  • Block repeated authentication failures with fail2ban.

Check if port 465 is open

Linux: what is listening on this port

sudo ss -tlpn | grep ':465 '

Windows (PowerShell): what is listening

Get-NetTCPConnection -LocalPort 465 -State Listen | Select-Object LocalAddress, OwningProcess, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}

From another machine: is it reachable

nc -zv HOST 465 # or nmap -p 465 HOST # Windows Test-NetConnection HOST -Port 465

Test the SMTPS (mail submission over TLS) service itself

openssl s_client -connect HOST:465 -crlf

Open port 465 in the firewall

ufw (Ubuntu, Debian)

sudo ufw allow 465/tcp

firewalld (RHEL, Rocky, Alma, Fedora)

sudo firewall-cmd --permanent --add-port=465/tcp sudo firewall-cmd --reload

Windows Firewall (PowerShell, as Administrator)

New-NetFirewallRule -DisplayName "Allow 465/TCP" -Direction Inbound -Protocol TCP -LocalPort 465 -Action Allow

Monitor port 465

Add a TCP port monitor for 465 and Statance connects to it from up to six regions, alerting you by email, Slack, Discord or PagerDuty when SMTPS (mail submission over TLS) stops answering. TCP port monitoring.

Related ports

Port 587SMTP submissionLow risk
Port 25SMTPMedium risk
Port 993IMAPSLow risk

FAQ

Should I use port 465 or 587?

Either works. RFC 8314 recommends implicit TLS on 465 for submission. Port 587 with STARTTLS is equally common. Both require authentication.

What is port 465 used for?

Port 465 is SMTP submission with implicit TLS: the connection is encrypted from the first byte. Mail clients use it to send outgoing mail through their own server. It is also used by Postfix, Exim, Microsoft 365, Gmail.

Is it safe to open port 465?

Usually, yes. Submission ports are meant to be reachable by your users and are encrypted. The main risk is credential stuffing: a compromised account can be used to send spam through your server and damage its reputation.

Is port 465 TCP or UDP?

SMTPS (mail submission over TLS) uses TCP on port 465.

How do I check if port 465 is open?

On the server, run sudo ss -tulpn | grep ':465 ' (Linux) or Get-NetTCPConnection -LocalPort 465 (Windows) to see what is listening. From another machine, run nc -zv HOST 465 or Test-NetConnection HOST -Port 465.

All ports →

Know the moment a port stops answering.

TCP, HTTP, DNS and SSL checks from six regions, plus server metrics from a one-line agent.