SMTP Ports, Encryption and Connection Choices
Choose the right SMTP port and encryption mode, separate submission from relay, and troubleshoot authentication and TLS without weakening security.
Selecting an SMTP port is not just a matter of trying numbers until a connection works. The correct choice depends on whether a mail client is submitting a message or one mail server is relaying it, as well as the encryption and authentication methods required by the receiving system.
Distinguish message submission from server relay
Message submission occurs when an application, website, business system, or mail client hands outgoing email to an SMTP service. Submission connections normally require authentication and encrypted transport. If you are configuring a customer relationship system, monitoring tool, ecommerce application, or desktop mail client, you are probably configuring submission.
Relay is server-to-server delivery. After accepting a submitted message, an SMTP server looks up the recipient domain and attempts delivery to that domain's mail server. This traffic traditionally uses port 25. Receiving servers generally do not require sender authentication on port 25, but they apply reputation, policy, and anti-abuse checks before accepting a message.
Do not configure an application to use unauthenticated port 25 merely because it is called the SMTP port. For systems operated within a controlled environment, define relay permissions, network restrictions, rate limits, and recipient rules as part of your internal SMTP controls.
Understand the common SMTP ports
The most common connection choices are:
- Port 25: Primarily used for SMTP relay between mail servers. Hosting companies and network operators may restrict outbound port 25 to reduce abuse. It is rarely the best choice for an application or individual user submitting mail.
- Port 587: The standard starting point for authenticated message submission. It commonly begins as a plain SMTP connection and is upgraded to encrypted transport with STARTTLS before credentials are sent.
- Port 465: Commonly used for submission with implicit TLS. The TLS session is established immediately, before the SMTP conversation begins. Use it when the provider explicitly documents implicit TLS on this port.
- Port 2525: A provider-specific alternative submission port. It is not the universal standards-based default, but some services offer it when 587 or 465 cannot be reached. Confirm support rather than assuming it is available.