Ports and protocols reference

SMTP ports 25, 465, 587 and 2525, implicit TLS and STARTTLS, with when to use each.

Content reviewed on 2026-11-03

PortUseEncryptionNotes
25Server-to-server delivery (MX)Opportunistic STARTTLSOften blocked for outbound traffic on residential and cloud networks. Not for client submission.
587Message submission from clients and applicationsSTARTTLS (required by most providers)The standard submission port. Requires authentication.
465Message submission over implicit TLSTLS from the first byteStandardised again by RFC 8314. Equivalent to 587 for most purposes.
2525Alternative submission portSTARTTLS, provider dependentNot an IANA standard; offered by some providers where 587 is blocked.

STARTTLS versus implicit TLS

With STARTTLS the connection starts in plain text and the client asks to upgrade to TLS; with implicit TLS the handshake happens before any SMTP command. Both protect the session once established, but STARTTLS can be stripped by an attacker on the path unless the client enforces it or MTA-STS applies.

For client configuration they are interchangeable as long as the client knows which one the port expects: STARTTLS on 587, implicit TLS on 465. Mixing them produces errors such as "STARTTLS required" or TLS handshake failures.

Submission versus relay

Submission (587/465) is how authenticated users and applications hand messages to their outgoing server. Relay between servers happens on port 25 and is unauthenticated: receivers accept mail for their own domains only.

If a client is configured to use port 25 towards a provider, the usual outcome is "relay access denied" because the provider treats it as an untrusted server, not as a user.

How to check whether a port is open

From the sending machine, connect to the host and port with a TCP tool and look for the 220 greeting. A timeout usually means the port is filtered on the way out; "connection refused" means nothing listens there. Mailiqo Labs does not test ports from your browser: browsers cannot open raw TCP connections.

Related tools and resources

Mailiqo

Sending email from your website or app?

Mailiqo delivers your transactional email over API or SMTP, with encrypted connections, your own domain and built-in recipient validation.

See the SMTP service