Port 465 (SMTPS)

TCP

SMTP over SSL — SMTPS listens on port 465 by default.

What is Port 465?

Port 465 is used for SMTPS (SMTP over SSL), providing encrypted email submission from mail clients to servers. Port 465 wraps the entire SMTP session in an SSL/TLS connection from the start (implicit TLS).

Historically, port 465 was briefly assigned for SMTPS, then reassigned, and later re-standardized in RFC 8314 (2018) as the preferred port for email submission with implicit TLS. This contrasts with port 587 which uses STARTTLS to upgrade a plain connection to encrypted.

Port 465 is recommended for email client configuration as it provides encryption from the first byte, preventing protocol downgrade attacks. Most major email providers (Gmail, Outlook, Yahoo) support port 465 for outgoing mail.

Port 465 Security

SMTPS on port 465 should be secured with appropriate access controls and monitoring. Ensure the service is only accessible from trusted networks by configuring firewall rules to restrict access. If the protocol supports encryption, enable TLS/SSL to protect data in transit.

Regularly update SMTPS to the latest version to patch known vulnerabilities. Monitor port 465 for unauthorized access attempts and implement rate limiting where possible. Follow the principle of least privilege when configuring access permissions.

How to Check Port 465

To check if port 465 is open on a remote host, use nmap: 'nmap -p 465 hostname'. For a quick TCP connection test, use: 'telnet hostname 465' or 'nc -zv hostname 465'. On Windows PowerShell, use: 'Test-NetConnection -ComputerName hostname -Port 465'.

To check if port 465 is listening on your local machine, use: 'netstat -tlnp | grep 465' on Linux, or 'ss -tlnp | grep 465'. On Windows, use: 'netstat -an | findstr 465'. For a comprehensive scan, use: 'nmap -sV -p 465 hostname' to detect the service version running on the port.

Related Ports

Frequently Asked Questions

What is port 465 used for?

Port 465 is the default port for SMTP over SSL (SMTPS). It is used for smtps communication using the TCP protocol.

Is port 465 TCP or UDP?

Port 465 uses TCP. TCP is used because smtps requires reliable, ordered data delivery.

Should port 465 be open?

Port 465 should only be open if you are actively running SMTPS. Close unused ports to reduce your attack surface. If needed, restrict access to trusted IP addresses using firewall rules.

How do I check if port 465 is open?

Use 'nmap -p 465 hostname' to scan remotely, or 'netstat -tlnp | grep 465' to check locally on Linux. On Windows, use 'Test-NetConnection -Port 465 hostname' in PowerShell.

How do I secure port 465?

Secure port 465 by restricting access with firewall rules, using encryption (TLS/SSL) where supported, keeping SMTPS updated, using strong authentication, and monitoring for unauthorized access attempts.

🔍 Check Your IP Address

While you're here, find out your public IP address, location, and ISP details instantly.

Check My IP →