Port 465 (SMTPS): What It Is & Security Guide

May 16, 2026
Updated May 16, 2026 Port Security Guides port 465 smtps port 465 security what is port 465 open port 465 secure email smtp over ssl email security

What is Port 465 (SMTPS)?

In the vast and intricate world of network communication, ports serve as crucial endpoints, directing traffic to specific services. Among these, Port 465 holds a significant, albeit somewhat complex, history and role, primarily associated with secure email submission. Known as SMTPS (SMTP over SSL/TLS), this port is dedicated to encrypting the communication between an email client and an SMTP server from the very beginning of the connection.

Originally registered by the Internet Assigned Numbers Authority (IANA) for SMTP over SSL (SMTPS), port 465 was later deprecated in favor of port 587, which uses STARTTLS to upgrade an insecure connection to a secure one. However, due to widespread existing implementations and continued demand for 'implicit SSL' (where the connection is encrypted immediately upon establishment), port 465 has seen a resurgence and is now commonly used by many email service providers and applications for secure email submission, particularly for outbound mail. This makes it a critical component for ensuring the confidentiality and integrity of email traffic.

For security professionals, system administrators, and anyone managing network infrastructure, understanding port 465 is vital. While the protocol itself is designed for security, an improperly configured or unpatched underlying SMTP server can still introduce significant vulnerabilities. This guide will delve into the technical details, potential security risks, common attack vectors, and essential hardening strategies to ensure your use of port 465 remains secure.

Want to check your site right now?

Port Scanner →  ·  Website Vulnerability Scanner

Port 465 Technical Details

To fully grasp the implications of port 465, it's essential to understand its technical specifications and how it operates within the broader email ecosystem.

AttributeDetail
Port Number465
ProtocolTCP (Transmission Control Protocol)
ServiceSMTPS (SMTP over SSL/TLS)
Risk LevelLow (inherently secure protocol, but depends on server configuration)
Common UsageSecure email submission from client to server (outbound mail)

How SMTPS Works:

Unlike traditional SMTP on port 25 or the more modern STARTTLS on port 587, SMTPS on port 465 establishes an encrypted connection immediately upon initiation. When an email client attempts to connect to an SMTP server on port 465, the very first step is an SSL/TLS handshake. This handshake negotiates the encryption parameters, exchanges certificates, and establishes a secure, encrypted tunnel. Only after this secure tunnel is established do the standard SMTP commands (like HELO, MAIL FROM, RCPT TO, DATA) traverse the network, ensuring that all subsequent communication – including sensitive login credentials and email content – is protected from eavesdropping and tampering.

This 'implicit SSL' approach is what differentiates port 465. With STARTTLS (on port 587), the connection initially starts unencrypted, and then the client explicitly requests an upgrade to TLS using the STARTTLS command. While both methods achieve encryption, port 465's immediate encryption offers a slightly simpler client configuration and can be preferred in environments where all email submission *must* be encrypted from the outset, without relying on a protocol upgrade command.

The use of TCP ensures reliable, ordered, and error-checked delivery of email data, which is crucial for the integrity of messages. While the protocol itself is robust, the security of SMTPS ultimately hinges on the strength of the TLS configuration (e.g., strong ciphers, valid certificates) and the underlying security posture of the SMTP server software.

Security Risks of Open Port 465

While SMTPS on port 465 is designed to provide a secure channel for email submission, the presence of an open port always introduces a potential attack surface. The 'Low' risk level for the protocol itself doesn't mean there are no risks; rather, it implies that the risks are often tied to the underlying server implementation and configuration, rather than inherent flaws in the SMTPS protocol. Attackers constantly scan for open ports, and an exposed port 465 can become a target if not properly secured.

Common Attacks on Port 465

Understanding the specific attack vectors targeting port 465 helps in formulating effective defense strategies. While SMTPS provides a secure tunnel, the underlying SMTP service remains a target for various malicious activities.

How to Check if Port 465 is Open

Regularly checking the status of your ports is a fundamental security practice. An open port 465 might be intentional, but it's crucial to verify its status and ensure it's only accessible to authorized entities. Here are several methods to check if port 465 is open on a target system:

Using Nmap (Network Mapper)

Nmap is a powerful, open-source tool for network discovery and security auditing. It's the go-to utility for port scanning.

nmap -p 465 target.com

Replace target.com with the IP address or hostname of the server you want to check. This command will tell you if port 465 is open, closed, or filtered.

For more detailed information, including service version detection, you can use:

nmap -sV -p 465 target.com

This command attempts to determine the service running on port 465, which can be useful for identifying the specific SMTP server software.

Using Netcat (nc)

Netcat is a simple yet versatile networking utility that can be used to check port connectivity.

nc -zv target.com 465

The -z flag tells Netcat to simply scan for listening daemons without sending any data, and -v provides verbose output.

Using Telnet

Telnet can be used for a basic connectivity check, though it won't show you if the service is actively responding with SMTPS. It will just confirm if a connection can be established.

telnet target.com 465

If the connection is successful, you'll see a blank screen or a message indicating a connection. If it fails, you'll get a connection refused or timeout error.

Using Online Port Scanners

Several online tools allow you to check port status from an external perspective, which is crucial for understanding how your server appears to the internet. These tools are convenient and don't require local software installation.

You can easily Scan port 465 with our free Secably Port Scanner tool. Simply enter your IP address or domain, specify port 465, and the tool will provide an instant status report, helping you quickly identify if the port is open and reachable from outside your network.

Checking Local Firewall Status (Linux)

On a Linux server, you can check if your local firewall is configured to allow traffic on port 465:

  • For UFW (Uncomplicated Firewall):
    sudo ufw status verbose
    Look for rules allowing TCP traffic on port 465.
  • For Iptables:
    sudo iptables -L -n | grep 465
    This will show any iptables rules specifically mentioning port 465.

By using these methods, you can effectively monitor and manage the exposure of port 465 on your network, ensuring that only necessary and secure connections are permitted.

Free Security Tools

Scan your website, check open ports, find subdomains — no signup required.

See all tools →

How to Secure Port 465

Securing port 465 involves a multi-layered approach, combining network-level controls with application-level best practices. Given that the 'Low' risk level is contingent on proper configuration, robust hardening is paramount to prevent potential exploits and maintain email security.

When Should Port 465 Be Open?

Despite the security considerations, there are legitimate and common scenarios where port 465 needs to be open. The key is to understand these use cases and ensure that when it is open, it is done securely and with appropriate restrictions.

  • Email Clients for Outgoing Mail: Many modern email clients (e.g., Outlook, Thunderbird, Apple Mail) and mobile email applications are configured to use port 465 for submitting outgoing mail to an SMTP server. This ensures that the entire communication session, including authentication credentials and email content, is encrypted from the start.
  • Web Applications Sending Transactional Emails: Websites and web applications often need to send automated emails (e.g., password resets, order confirmations, notifications). These applications typically connect to an SMTP server on port 465 to ensure secure delivery of these critical messages.
  • Internal Mail Servers and Services: In some corporate environments, internal applications or even other mail servers might be configured to submit mail to a central SMTP gateway using port 465 for encrypted communication within the network.
  • Legacy Systems Requiring Implicit SSL: While port 587 with STARTTLS is the officially recommended submission port, some older systems or specific configurations might still explicitly require or default to port 465 for implicit SSL.

Crucial Consideration: When port 465 is open, it should almost always be protected by a firewall that restricts access to only specific, trusted IP addresses or networks. For instance, if your web application is hosted on a specific server, only that server's IP address should be allowed to connect to port 465 on your SMTP server. Public-facing SMTP servers that accept connections from a wide range of clients (e.g., for an ISP or a large organization) must rely heavily on strong authentication, rate limiting, and robust anti-spam measures, in addition to keeping the server software fully patched.

Is port 465 dangerous?

Port 465 itself is not inherently dangerous. It's designed for SMTPS, which means SMTP communication encrypted with SSL/TLS from the outset. The danger arises when the underlying SMTP server software is unpatched, misconfigured, or uses weak authentication. An open port 465 without proper security measures can expose your system to brute-force attacks, spam relaying, or exploitation of server vulnerabilities.

Should I close port 465?

You should close port 465 if you are not running an SMTPS server or if your email services are configured to use port 587 (submission with STARTTLS) exclusively. If you do run an SMTPS server on port 465, you should not close it, but rather restrict access to it via a firewall, allowing connections only from trusted IP addresses or networks that need to send email through your server. Unnecessary open ports are always a security risk.

How do I block port 465?

Blocking port 465 is typically done using firewall rules. Here are examples for common Linux firewall utilities:

Using UFW (Uncomplicated Firewall) on Ubuntu/Debian:

sudo ufw deny 465/tcp\nsudo ufw enable

If you need to allow it only from specific IPs (e.g., 192.168.1.100):

sudo ufw allow from 192.168.1.100 to any port 465 proto tcp

Using Iptables on CentOS/RHEL/Other Linux:

sudo iptables -A INPUT -p tcp --dport 465 -j DROP\nsudo service iptables save  # For persistent rules (may vary by distro)

To allow from a specific IP:

sudo iptables -A INPUT -p tcp -s 192.168.1.100 --dport 465 -j ACCEPT\nsudo iptables -A INPUT -p tcp --dport 465 -j DROP

Using FirewallD on CentOS/RHEL 7/8:

If port 465 is already open and you want to remove the rule:

sudo firewall-cmd --permanent --zone=public --remove-port=465/tcp\nsudo firewall-cmd --reload

If you want to explicitly block it (though removing an 'allow' rule is usually sufficient):

sudo firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" port port="465" protocol="tcp" drop'\nsudo firewall-cmd --reload

Always test your firewall rules after making changes to ensure you haven't inadvertently blocked legitimate traffic or left the port open.

What runs on port 465 by default?

By default, port 465 is associated with SMTPS (SMTP over SSL/TLS). This means it's used by email servers and clients for secure email submission, where the connection is immediately encrypted using SSL/TLS upon establishment. Common mail server software like Postfix, Exim, Sendmail, Microsoft Exchange, and various cloud-based email services (e.g., Gmail, Outlook.com) can be configured to listen on port 465 for secure outbound email traffic.

Scan for these vulnerabilities

Secably automatically detects the issues discussed in this article.

Start Free Scan