SMTP Ports 25, 465 and 587: Which Should You Use?
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 before changing ports.
If you are choosing a home for the site that sends those messages, compare Ferkesh shared hosting plans while ordering is closed.
Related guides
- Business Email Setup and Troubleshooting Guide
- IMAP vs POP3: Choose the Right Incoming Mail Setting
- How to Check SPF, DKIM and DMARC in an Email Header
- Email Hosting and Deliverability category
Official references
Ferkesh Hosting. Last reviewed .
Zpětná vazba byla odeslána!