Skip to content

All ports

Port 25: SMTP

Port 25 is used by SMTP over TCP. Port 25 is the port mail servers use to hand messages to each other. It appears in the study tables for 200-301, 220-1201, N10-009, SY0-701.

What runs on port 25

Simple Mail Transfer Protocol (SMTP) uses TCP at the application layer. Server-to-server mail delivery and client submission in many legacy setups. It starts unencrypted and can be upgraded with TLS.

Port 25 is the port mail servers use to hand messages to each other. It starts in cleartext and can be upgraded with STARTTLS, but that upgrade is opportunistic, so an attacker in the path can sometimes strip it.

Secure alternative and common mix-ups

The study tables do not list a separate secure replacement for SMTP. Where it has to cross a network you do not control, restrict who can reach it and carry it inside a VPN.

Mail clients should not submit outgoing mail on port 25. Client submission belongs on port 587 with sign-in, and many providers block outbound port 25 from home and cloud networks to limit spam.

Check port 25 on your own network

To test a remote host from Windows, run Test-NetConnection with the host name and -Port 25. From Linux or macOS, run nc -vz host 25. To see what is listening on the machine itself, use ss -tulpn on Linux or netstat -ano on Windows and look for :25.

A refused connection usually means no service is listening, and a probe that hangs usually means a firewall dropped it. Check the service, then the host firewall, then the network firewall, in that order.

Exam objectives that include it

These are the objectives whose tables list port 25. The same row appears in the cheat sheet for each exam.

Learn 25 together with these. They are its pair, its secure counterpart or a service that sits under the same objective.

Questions

The port number does not decide that. SMTP on port 25 is only as safe as its configuration, how far it is exposed and how current the software is.

Keep going with the ports quiz and the cheat sheets.

Start studying free

Free plan, no card.