# Port 25 (SMTP)

> Port 25 carries SMTP, used to relay email between mail servers. Its IANA registration, transports and port range.

Source: https://networkutility.org/ports/port-25/  
Section: Ports  
Updated: 2026-12-05

Port 25 is registered with IANA under the service name `smtp`, on TCP and UDP. It is one of the well-known (system) ports, 0 to 1023.

## IANA registration

This is the assignment for port 25 exactly as the registry lists it, one row per service name and transport.

| Service name | Transport | Description | Reference |
| --- | --- | --- | --- |
| `smtp` | TCP | Simple Mail Transfer | RFC-ietf-emailcore-rfc5321bis-43 |
| `smtp` | UDP | Simple Mail Transfer | RFC-ietf-emailcore-rfc5321bis-43 |

Source: [IANA Service Name and Transport Protocol Port Number Registry](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml), as downloaded on December 5, 2026. The registry changes over time; the linked page is the authority.

A registration records who a port number is assigned to. It does not prove that whatever is listening on the port is that service, and it does not mean the service uses every transport listed: older entries were routinely registered for both TCP and UDP.

## In practice

*This section is written by Network Utility. It is not part of the IANA registry.*

Port 25 carries SMTP, used to relay email between mail servers.

Mail servers deliver messages to each other over TCP port 25. Encryption is opportunistic: servers upgrade the connection with STARTTLS when both sides support it.

Mail clients should not send through port 25. Message submission uses port 587, or port 465 with TLS from the first byte. Many home internet providers and cloud platforms block outbound port 25 to limit spam, which is a common reason a self-hosted mail server cannot deliver.

Related ports: [465 (SMTP submission over TLS)](/ports/port-465/), [587 (SMTP submission)](/ports/port-587/), [110 (POP3)](/ports/port-110/), [143 (IMAP)](/ports/port-143/).

## Port range

Port 25 falls in the **well-known (system) port** range, 0 to 1023. RFC 6335 calls these System Ports. IANA assigns them only through the IETF Review or IESG Approval procedures, the strictest rules of the three ranges. On Unix-like systems a program has traditionally needed root privileges to listen on a port below 1024.

The other ranges are registered (user) ports (1024 to 49151) and dynamic (private) ports (49152 to 65535). The ranges and the assignment rules are defined in [RFC 6335](https://www.rfc-editor.org/rfc/rfc6335).

Look up another port in the [port table](/port-lookup/).
