If your team is asking which SMTP port should I use, choose based on submission mode and provider requirements.

Decision framework

  1. Start with 587 for authenticated submission with STARTTLS.
  2. Use 465 only if provider requires implicit TLS.
  3. Use 2525 as fallback if 587 is blocked and provider supports alternate submission.
  4. Reserve 25 mostly for server-to-server relay scenarios.

Port decision matrix

PortUse whenAvoid when
587Standard app submission with authProvider does not support STARTTLS
465Provider requires implicit TLSYou are configured for STARTTLS only
2525Alternate submission route neededProvider does not support this port
25Relay between MTAsApp-level submission in restricted networks

Common failure patterns by port

587 misconfigured as implicit TLS

If you treat 587 as implicit TLS instead of STARTTLS, handshakes can fail.

465 used with STARTTLS assumptions

465 generally expects TLS from connection start.

25 blocked in cloud environments

Many cloud providers restrict or throttle outbound 25 traffic for abuse prevention.

Security checks to run with port selection

  • verify auth mechanism support
  • verify TLS mode and certificate behavior
  • verify sender-domain alignment (SPF, DKIM, DMARC)

References:

Validate real outcomes before release

A working SMTP handshake is not enough. Validate inbox outcomes and message quality.

Use:

FAQ

Port 587 with STARTTLS for authenticated submission.

Should I still support port 465?

Support it if your provider or customer environments require implicit TLS.

Why are there multiple SMTP ports?

Different ports support different transport modes and operational contexts (submission vs relay).

Next steps