# SMTP Ports 25, 465 and 587 Explained

https://ferkesh.net/uk/baza-znan/stattia/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)

Mail apps ordinarily use an authenticated submission service to send mail. Traditional server-to-server SMTP normally uses port 25. Many providers offer client submission on 587 with STARTTLS or 465 with implicit TLS. The correct combination of hostname, port and encryption is the combination published by your mail provider.

## 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.

## 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.
