# SMTP Ports 25, 465 and 587: Which Should You Use?

https://ferkesh.net/knowledgebase/article/smtp-submission-ports

![Diagram linking Mail client, 587 or 465, Submission server and Relay to recipient.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-02.svg#smtp-submission-ports)

For an email client, use the outgoing server hostname, port and encryption your provider gives you. Port **587 uses STARTTLS** for submission when supported, and **465 starts TLS immediately**. Port **25 is normally for mail transfer between servers**.

| Port | Typical use | Encryption setting |
| --- | --- | --- |
| 25 | Server-to-server SMTP relay | Server policy applies. Most mail clients should use their provider’s submission endpoint. |
| 465 | Authenticated mail submission | Choose SSL/TLS or implicit TLS. TLS starts as soon as the connection opens. |
| 587 | Authenticated mail submission | Choose STARTTLS and require encryption before authentication. |

## Understand the encryption setting

With implicit TLS the app starts the connection encrypted. With STARTTLS the SMTP session upgrades to TLS before credentials or content are sent, when the client is configured to require it. A client set to implicit TLS on an endpoint expecting STARTTLS may fail immediately. Do not bypass certificate checks or fall back to unencrypted authentication when that happens.

## Verify the outgoing account separately

Open the client’s outgoing server settings. Check the complete hostname, port, TLS mode, authentication method and username. Some services use an app password or OAuth rather than an ordinary account password. Use the provider’s documented method. Send one message to an external test account you control and check whether the failure occurs before authentication or after the server accepts the message.

If receiving works and sending fails, do not rewrite the incoming settings. Save the exact SMTP error and time and compare them with the provider’s status or submission log. A connection failure, invalid certificate and mailbox authentication denial are distinct problems.

If the server explicitly rejects the login, follow the [SMTP 535 troubleshooting guide](https://ferkesh.net/knowledgebase/article/diagnose-smtp-535-authentication) before changing ports.

If you are choosing a home for the site that sends those messages, [compare Ferkesh shared hosting plans](https://ferkesh.net/?fh_page=web-hosting&fh_ref=kb%3Asmtp-submission-ports#hosting-comparison) while ordering is closed.

## Related guides

- [Business Email Setup and Troubleshooting Guide](https://ferkesh.net/knowledgebase/article/business-email-setup-guide)
- [IMAP vs POP3: Choose the Right Incoming Mail Setting](https://ferkesh.net/knowledgebase/article/choose-imap-or-pop3)
- [How to Check SPF, DKIM and DMARC in an Email Header](https://ferkesh.net/knowledgebase/article/email-authentication-headers)
- [Email Hosting and Deliverability category](https://ferkesh.net/knowledgebase/category/email-hosting-and-deliverability)

## Official references

- [RFC 6409 on SMTP submission](https://www.rfc-editor.org/rfc/rfc6409)
- [RFC 8314 on secure mail submission and access](https://www.rfc-editor.org/rfc/rfc8314)

Ferkesh Hosting. Last reviewed November 26, 2026.
