465/TCPSMTPS (Submission über TLS)
Email · Well-known port · OSI layer 7
Send mail from an email client to your own server directly over TLS (implicit TLS).
IANA: officially registered as submissions
You decide which services we may enable for analytics, personalization, and external content.
We use cookies and similar technologies on our website to personalize content, embed external media, and better understand how individual areas are used.
Necessary cookies
These entries support essential functions such as security, stability, and form processing.
Optional sections
Your data may be processed with your consent or on the basis of legitimate interests. In the cookie settings, you can reject or explicitly allow each optional category.
Some services process personal data in third countries. By consenting, you also agree to this transfer. You can find more information in our Privacy Policy.
You can reopen and change your selection at any time. · 1.0.2
Port 465 (TCP) is used to send mail with authentication and implicit TLS, often called SMTPS. The tool shows you the details and generates firewall commands for the port.
Built by Justin Schuessler
Try the commands on your own VPS, with root access and your own firewall.
Add multiple ports one at a time, up to 12.
Email · Well-known port · OSI layer 7
Send mail from an email client to your own server directly over TLS (implicit TLS).
IANA: officially registered as submissions
Firewall commands
Open port
sudo ufw allow 465/tcpFor Ubuntu and Debian. ufw creates the rule for both IPv4 and IPv6. If ufw is disabled, allow SSH first (sudo ufw allow 22/tcp), then enable it with sudo ufw enable, or you'll lock yourself out.
On a ZAP-Hosting VPS with an active network firewall, you also need to allow the port in the Customer Panel.
Port 465 explained
On port 465, email clients and applications submit emails to their mail server, just as they do on port 587. The difference is that the connection is encrypted with TLS from the start, with no unencrypted initial connection or STARTTLS. The client then authenticates with a username and password. Many email providers label this setting SSL/TLS in email clients.
Port 465 was briefly registered for SMTP over SSL in the 1990s, but the registration was withdrawn because STARTTLS on port 587 was intended to be the standard approach. In practice, many mail providers continued to use port 465. RFC 8314 from 2018 therefore officially registered the port again for mail submission with implicit TLS. IANA has listed the service as “submissions” since then.
Implicit TLS has one advantage: an attacker cannot simply prevent encryption, as is possible with a STARTTLS downgrade. Use a valid certificate and disable outdated TLS versions. Only accept mail from authenticated users here too, and limit failed login attempts, for example with Fail2ban. You only need to open port 465 for incoming traffic on your own mail server.
More ports
These ports are often part of the same setup. Click one to see its explanation and firewall commands.
View all well-known ports and the complete IANA list
Port list source: IANA Service Name and Transport Protocol Port Number Registry, as of October 22, 2026. iana.org
Discover more
Calculate the network address, broadcast address, subnet mask, and usable host range from a CIDR address, and convert between CIDR and IP ranges (IPv4 and IPv6).
Built by Jakub Martyniak
Interactively learn the 7 layers of the OSI model: click layers, assign terms such as switch, ARP, or port 443, and explore animated encapsulation, a quiz, and a cheat sheet for the IHK exam.
Built by Justin Schuessler
Interactively learn the 4 layers of the TCP/IP model (DoD model) according to RFC 1122, with OSI model mapping, animated encapsulation, a port quiz, and a cheat sheet.
Built by Justin Schuessler
Check whether specific ports are open on an IP or hostname—select a protocol or game instead of scanning all ports at once.
Built by Sebastian Rademacher
FAQ
Quick answers about port 465.
If both work, port 465 with implicit TLS is recommended by RFC 8314. Port 587 with STARTTLS is just as common and secure, provided STARTTLS is required. If in doubt, use the port specified by your mail provider.
No. Port 465 was considered outdated for a while, but RFC 8314 officially registered it again in 2018 for mail submission over TLS. It is now a standard, recommended port.
In most mail clients, the SSL/TLS setting means implicit TLS, which uses port 465. STARTTLS uses port 587. If you choose the wrong combination, the connection will usually fail with a timeout or certificate error.
With ufw, sudo ufw allow 465/tcp is enough. With firewalld, run sudo firewall-cmd --permanent --add-port=465/tcp followed by sudo firewall-cmd --reload. Only open the port for incoming traffic on the server running your mail server.
Any more questions?
Contact SupportWith a ZAP-Hosting VPS, you have root access, can set up services and firewall rules yourself, and can immediately see which ports are open.
No setup. No risk. Online in seconds.
Looking for more tools? View all network tools