SMTP ports are network endpoints used for email submission or relay.

If you are choosing between `25`, `465`, `587`, and `2525`, start with this practical rule:

- `587` + STARTTLS for most app senders
- `465` for implicit TLS when provider requires it
- `2525` as fallback where supported
- `25` mainly for server-to-server relay

## SMTP ports quick table

| Port   | Typical role          | Encryption model  | App submission default |
| ------ | --------------------- | ----------------- | ---------------------- |
| `25`   | Relay between servers | Optional/varies   | No                     |
| `465`  | Submission            | Implicit TLS      | Sometimes              |
| `587`  | Submission            | STARTTLS          | Yes                    |
| `2525` | Alternate submission  | Provider-specific | Fallback               |

## Port-by-port guidance

### Port 587

Best first choice for authenticated application submission.

### Port 465

Use when provider expects TLS from first packet (implicit TLS).

### Port 25

Use for relay scenarios, not typical app submission. Often blocked in cloud egress policies.

### Port 2525

Useful alternate when `587` is blocked and provider supports it.

## TLS pairing rules

- `587` -> STARTTLS
- `465` -> implicit TLS
- `25` -> relay use, optional STARTTLS depending on peer policy

Mismatching TLS mode is a common cause of production send failures.

## How to choose the right SMTP port

1. Start with provider docs and choose recommended submission endpoint.
2. Confirm required TLS model (STARTTLS vs implicit TLS).
3. Validate auth behavior after transport setup.
4. Validate receive-side outcomes before release.

Related references:

- [SMTP port guide](/blog/smtp-port-guide/)
- [What SMTP port should I use?](/blog/what-smtp-port/)
- [Which SMTP port should I use?](/blog/which-smtp-port-should-i-use/)

## SMTP port troubleshooting checklist

### Connection fails

Check network egress policy, endpoint host, and port accessibility.

### AUTH fails only on one port

Verify TLS mode and AUTH order for that port.

### Works locally but fails in production

Production often enforces stricter firewall/policy controls than local dev environments.

## Production validation workflow

- Validate transport and auth in [Email Sandbox](/product/email-sandbox/).
- Add release-gate assertions with [Email integration testing](/product/email-integration-testing/).
- Capture message outcomes through [Email Webhooks](/guides/email-webhooks/).
- Run [Email deliverability testing](/testing/email-deliverability-test/) before major sender changes.
- Check delivered HTML, links, images, and fallback text with [Free Email Render](/tools/free-email-render/) before users rely on the new setup.



{{LANDING_SHORTCODE:POST_CTA_BANNER:%7B%22title%22%3A%22Preview%20messages%20after%20SMTP%20port%20changes%22%2C%22content%22%3A%22When%20a%20port%2C%20TLS%2C%20or%20relay%20change%20starts%20accepting%20mail%2C%20capture%20the%20delivered%20message%20in%20MailSlurp%20and%20render%20it%20with%20%5BFree%20Email%20Render%5D(%2Ftools%2Ffree-email-render%2F)%20or%20saved%20device%20previews%20before%20the%20change%20becomes%20a%20release%20dependency.%22%2C%22buttonHref%22%3A%22%2Fproduct%2Fdevice-previews%2F%22%2C%22buttonText%22%3A%22Explore%20device%20previews%22%2C%22buttonTheme%22%3A%22blue%22%2C%22image%22%3A%22%2Fassets%2Fhome%2Fdevice-render-devices.png%22%2C%22imageAlt%22%3A%22SMTP%20port%20configuration%20preview%20workflow%20across%20supported%20client%20and%20device%20contexts%22%2C%22imageWidth%22%3A%22800%22%2C%22imageHeight%22%3A%22415%22%2C%22imagePosition%22%3A%22%22%7D}}



## FAQ

### What is the default SMTP port?

For authenticated client submission, `587` is usually the default recommendation.

### Is 465 still valid?

Yes. It is still widely used for implicit TLS submission.

### Why is port 25 often blocked?

Many providers block outbound `25` to reduce abuse and spam relay risk.

## Next steps

- [SMTP authentication explained](/blog/smtp-authentication/)
- [How to test STARTTLS support](/blog/how-to-test-if-mailserver-supports-starttls/)
- [SMTP commands and responses](/blog/smtp-commands-and-responses/)
