Which SMTP Port Should I Use? Understanding Ports 25, 465, & 587

Table of Contents

What Simple Mail Transfer Protocol (SMTP) port should be used? (short answer)

When configuring SMTP for sending emails, choosing the right SMTP port is crucial for ensuring both deliverability and security. The most common SMTP ports are port 25, port 465, and port 587, each serving different purposes under varying protocols.

For most applications, SMTP port 587 is the recommended choice. This secure SMTP port supports STARTTLS, an extension that elevates the connection to a secure level by encrypting the email content. This is essential for protecting sensitive information from being intercepted during transmission. SMTP port 587 is widely accepted by email servers and is considered the standard SMTP port for secure email submission.

It’s important to note that SMTP port 25, historically used for SMTP relay and submission, is now largely deprecated for sending outgoing emails. This is due to its association with spam and frequent blocking by internet service providers (ISPs) to prevent abuse. While still in use for server-to-server communication, it is not recommended for client submission.

Although SMTP port 465 was initially intended for SMTPS (SMTP over Secure Sockets Layer (SSL)) and has since been deprecated, some service providers still support it for legacy use. However, it is less common due to its official deprecation and the shift towards the use of STARTTLS with SMTP port 587.

An alternative port, port 2525, may also be used if the standard ports are blocked. While not officially recognized or as widely supported as SMTP port 587, it can serve as a useful backup in environments where other ports are not available.

Choosing the right SMTP port is crucial.

Choosing the right SMTP port is not just a technical detail; it’s about complying with your email service providers‘ policies and maximizing your email deliverability. Thus, SMTP port 587 emerges as the secure, reliable choice for sending emails in today’s digital landscape.

Different Ports In Mail Servers for Different Purposes

In the world of email communication, the Simple Mail Transfer Protocol (SMTP) is fundamental. However, not all SMTP ports are created equal, and each serves a specific function within the networking protocols that govern internet communication. Understanding the differences among the common SMTP ports can help users optimize their email setup for both performance and security.

  • Port 25 is known as the oldest SMTP port and was originally used for email relay—transferring emails from one server to another. This default port has largely been superseded due to its vulnerability to spam and phishing attacks, leading many internet service providers to block it to prevent abuse.
  • Port 465 was designated for SMTPS, which stands for SMTP over Secure Sockets Layer (SSL), providing a secure connection right from the start of the communication. However, this port was deprecated by the Internet Engineering Task Force (IETF) in favor of a more adaptable method, though it remains in use by some email service providers for backward compatibility.
  • Port 587, often referred to as the submission port, has become the standard SMTP port for sending emails. Unlike Port 25, it is not just used for email relay but for submitting emails from a client (like Apple Mail or Outlook) to a mail server. This port requires the use of Transport Layer Security (TLS), upgrading the connection to be encrypted, which safeguards email messages during transmission.
  • Port 2525 is an alternative port often used when traditional SMTP ports are blocked or restricted. While not officially recognized by the Internet Assigned Numbers Authority (IANA), it functions similarly to Port 587 and offers a viable option for those unable to use standard ports.
Choosing the right port may impact your email deliverability.

Each of these ports has its purpose and choosing the right one depends on the specific needs and restrictions of the user’s network and email client. Whether it’s achieving better email deliverability, complying with email servers‘ security standards, or navigating ISP restrictions, selecting the appropriate SMTP port is a critical decision in email transmission.

SMTP Port 25

SMTP Port 25 has played a foundational role in the history of email communication, but its use has evolved significantly over the years due to changes in security practices and standards.

What is Port 25 Used For?

Historically, Port 25 was the default SMTP port used for the transmission of email across the Internet. It facilitated the SMTP relay, allowing email servers to send and receive messages among themselves with minimal security checks. This was essential in the early days of the Internet, when trust was implicit and security threats were less prevalent.

The primary role of Port 25 is to enable email servers to communicate with one another, forwarding emails from one domain’s server to another. It supports the basic SMTP functions without any encryption, making it suitable for server-to-server email transfer, but not ideal for submitting emails from a client to a server.

A deprecated port you should no longer use

Despite its foundational role, Port 25 is widely considered a deprecated port for sending emails directly from email clients. The major shift away from Port 25 came as a response to its exploitation for sending unsolicited bulk email—spam. Its lack of encryption makes it vulnerable to interception and misuse, posing significant security risks.

Most internet service providers and modern email servers now block or restrict traffic on Port 25 to prevent abuse. Email service providers and organizations encourage the use of more secure SMTP ports such as Port 587 or Port 465, which require the use of TLS encryption. This shift not only enhances security but also ensures that outgoing emails are more likely to reach their intended recipients without being rejected by spam filters.

For these reasons, Port 25 should no longer be used for submitting emails from an email client to an email server. Its use is now mostly confined to internal network email transport or between trusted mail servers where security is not a concern.

SMTP Port 465

SMTP Port 465 is often surrounded by some confusion due to its history and the changes in protocol standards over the years.

What is Port 465 Used For?

Port 465 was originally designated for SMTPS, which stands for Simple Mail Transfer Protocol Secure. This setup was intended to create a secure connection from the moment an email is sent from a mail client using SMTP over Secure Sockets Layer (SSL). Unlike the upgrade approach used with STARTTLS, SMTPS encapsulates the regular SMTP session within an SSL layer from the start of the connection.

The primary use of Port 465 allows for a direct, encrypted communication channel between the email client and the mail server, ensuring that all data transferred remains confidential and tamper-proof. This was seen as a beneficial approach at a time when secure email transmission was becoming more critical.

However, despite its initial adoption, Port 465 was eventually deprecated by the Internet Engineering Task Force (IETF) in favor of a more flexible approach offered by STARTTLS on Port 587. This decision was made because STARTTLS allows the server and client to communicate both standard and encrypted messages over a single port, enhancing compatibility and simplicity.

While Port 465 is no longer recommended as a standard by the IETF, it continues to be supported by many email service providers for backward compatibility. It is particularly used in environments where immediate SSL/TLS encryption from the start of the connection is required or preferred.

For users whose email setups require or support SMTPS, Port 465 remains a viable option. However, it is essential to ensure that both the email client and the server support this port and that its use does not conflict with newer security protocols and configurations.

SMTP Port 587

SMTP Port 587 is pivotal in modern email communication, designed specifically for email submission in a way that ensures secure and reliable delivery.

What is Port 587 Used For?

Port 587 is intended for email submission, not just for transferring messages between servers but primarily from clients to servers. This port is the recommended choice for sending out emails when you are using a mail client like Microsoft Outlook or Apple Mail. Unlike Port 25, which is used for SMTP relay, Port 587 is designed to be used for message submission directly to an email server which will then relay it onwards.

This port is critical because it supports the STARTTLS command, which means it can upgrade an initially plaintext SMTP connection to a secure connection using TLS encryption. This capability makes it the preferred choice for safeguarding outgoing email against eavesdropping and tampering.

The original default SMTP port for sending emails

Historically, Port 587 has been established as the default mail submission port. Recognized by the Internet Assigned Numbers Authority (IANA) and endorsed by the Internet Engineering Task Force (IETF), this port adheres to the guidelines for modern email transmission practices that prioritize security.

It was implemented to provide a reliable method of email submission while avoiding the issues commonly associated with Port 25—notably, its exploitation by spammers and its consequent frequent blocking by internet service providers.

TCP Port 587: Exploring Technical Details

TCP Port 587 operates under the Transport Control Protocol, which ensures that every bit of data sent is received by the connecting server in the correct order and without any loss. This is essential for maintaining the integrity of encrypted messages, as the encryption process can be sensitive to data loss or manipulation.

In technical settings, configuring your SMTP server to use TCP Port 587 involves specifying this port in your email client‘s or application’s SMTP settings. It typically requires authentication, meaning that users must provide credentials to send emails, which helps protect against unauthorized use of the email service.

Furthermore, when using Port 587, it is common practice to configure the SMTP server settings to require a secure connection from the start, or to upgrade to a secure connection using STARTTLS before any email data is sent. This setup reinforces the security framework necessary to protect user data in transit.

SMTP Port 2525

SMTP Port 2525 is not as widely recognized as the other SMTP ports, but it serves a crucial role for users facing specific network restrictions

What is Port 2525 Used For?

Port 2525 is primarily used as an alternative for the standard SMTP ports, especially in environments where ports like 587, 465, and 25 are blocked by network administrators or internet service providers. This port is typically offered by email service providers as an additional option for SMTP to ensure that clients can send emails even when traditional ports are unavailable.

Similar to Port 587, Port 2525 supports SMTP with extensions for initiating TLS encryption, allowing for secure email submission. This port can be configured to use STARTTLS, which upgrades an initially plain connection to a secure connection, encrypting data before transmission. This makes Port 2525 a versatile and secure choice for sending emails.

An Alternative SMTP Port

While Port 2525 is not officially designated by the Internet Assigned Numbers Authority (IANA) as an SMTP port, it is widely recognized and used as a practical workaround in many modern email systems. Its functionality mirrors that of Port 587, providing a fallback for users who need to circumvent port restrictions that might impede their email communications.

Choosing Port 2525 can be particularly beneficial in restricted networking environments, such as corporate networks or certain countries where internet usage is heavily monitored and controlled. For businesses and individuals who require reliable email delivery, configuring their systems to use an alternative SMTP port like 2525 can help maintain continuous, uninterrupted email service.

Why Does Your SMTP Port Matter On Your Mail Server?

Email delivery is crucial to reach out your audience. So your SMTP port.

Selecting the correct SMTP port is not merely a technicality—it is a crucial decision that impacts the security, reliability, and effectiveness of your email communication strategies.

Why your choice of SMTP port matters

The choice of an SMTP port can significantly influence how your emails are handled and delivered across networks. Using the right port ensures that your emails comply with the standards set by internet service providers and email servers, which can dramatically reduce the risk of your emails being marked as spam. This choice affects everything from the security of the transmitted data to the speed and reliability with which your emails are delivered.

SMTP Ports

SMTP Port 25Port 25 is widely considered a deprecated port for sending emails directly from email clients.
SMTP Port 465Port 465 was originally designated for SMTPS. While Port 465 is no longer recommended as a standard by the IETF, it continues to be supported by many email service providers for backward compatibility
SMTP Port 587This port is critical because it supports the STARTTLS command, which means it can upgrade an initially plaintext SMTP connection to a secure connection using TLS encryption.
SMTP Port 2525SMTP Port 2525 is not as widely recognized as the other SMTP ports, but it serves a crucial role for users facing specific network restrictions
List of common SMTP ports

Different Ports for Different Purposes

Each SMTP port serves a unique purpose and is suited to different scenarios. For example, Port 25 is traditionally used for SMTP relaying and is ideal for server-to-server communication, whereas Port 587 is designed for client to server submissions with enhanced security through TLS encryption. Understanding these roles allows organizations to tailor their email infrastructure to meet specific operational and security needs effectively.

How Email Deliverability Is Affected by SMTP Port Selection

The selection of an SMTP port directly impacts email deliverability. Ports like 587 and 2525 are preferred for outbound email because they are specifically designed to handle secure client submissions and are less likely to be blocked by ISPs. Using these ports can help ensure that your emails reach their intended recipients without being intercepted or lost along the way, thereby maintaining high deliverability rates and preserving your sender reputation.

Comparing Security Features Across SMTP Ports

Security is paramount in choosing an SMTP port. Port 587 supports STARTTLS, which upgrades an existing insecure connection to a secure one, while Port 465 offers a secure connection from the start using SSL/TLS. Comparing these ports, Port 587 provides flexibility by allowing non-encrypted connections to upgrade, whereas Port 465 ensures that all connections are encrypted from the beginning. Knowing these features helps in making an informed decision that aligns with your organization’s security policies and compliance requirements.

The Future of SMTP Ports: What’s Changing?

The future of SMTP ports.

As digital communication continues to evolve, so do the protocols and standards that govern the security and efficiency of email transmission. The future of SMTP ports is influenced by emerging technologies, increased security concerns, and changing regulations, all of which play a role in shaping how emails will be sent and received going forward.

Embracing Enhanced Security Protocols

SMTP ports and Security

Security remains a paramount concern in digital communications. Increasing threats of cyber attacks and data breaches have prompted a continuous improvement in security protocols surrounding SMTP ports. Future changes are likely to emphasize enhanced encryption methods and stricter authentication processes to ensure that email transmissions are secure from end-to-end. The adoption of newer versions of Transport Layer Security (TLS) and potentially the integration of additional security layers, like DMARC (Domain-based Message Authentication, Reporting, and Conformance), can be expected to become standard practices.

Shifts in Port Utilization

While Port 25 has seen a decline in use for client-to-server email submissions due to its security vulnerabilities, it remains in use for server-to-server communications. However, as better options become available and more widely adopted, there might be a complete phasing out of this port in favor of more secure alternatives like Port 587 or even entirely new ports that might be defined by the Internet Assigned Numbers Authority (IANA). Moreover, with increasing restrictions by ISPs on traditional ports, alternative ports like Port 2525 might see higher adoption rates.

Regulatory and Compliance Changes

Regulatory bodies worldwide are tightening data protection laws and compliance requirements, which can influence how SMTP ports are used. For instance, regions with stringent data protection laws might require emails to be transmitted through ports that support higher security protocols to ensure data privacy and compliance with local regulations.

Technological Innovations

Finally, technological advancements may introduce new or modified SMTP ports that cater to specific needs or enhance performance. Innovations in network technology and protocol engineering could lead to more efficient and robust email transmission methods, potentially reshaping the current landscape of SMTP ports.

Frequently Asked Questions

Which SMTP Ports Can You Use at Amazon SES?

At Amazon SES (Simple Email Service), you can use several SMTP ports depending on your security requirements and network restrictions. The supported SMTP ports for Amazon SES are: Port 25, Port 465, Port 587.

Which SMTP Ports Can You Use at Mailgun?

At Mailgun, you have the flexibility to choose from several SMTP ports to accommodate different security and delivery requirements. The SMTP ports supported by Mailgun are: Port 587, Port 465, Port 25.

Which SMTP Ports Can You Use at Sendgrid?

SendGrid supports several SMTP ports to cater to different security preferences and email sending needs. The SMTP ports you can use at SendGrid are: Port 587, Port 465, Port 2525.

Which SMTP Ports Can You Use at Elasticemail?

At Elastic Email, you can use multiple SMTP ports to accommodate various security needs and ensure compatibility with different network setups. The SMTP ports available at Elastic Email are: Port 587, Port 465, Port 2525.

Which SMTP Ports Can You Use at Sendloop?

At Sendloop, you have the option to use several SMTP ports based on your specific needs for email delivery and security. The SMTP ports available at Sendloop are: Port 25, Port 587, Port 2525.

Which SMTP Ports Can You Use at PowerMTA?

At PowerMTA, you can configure a variety of SMTP ports depending on your operational requirements and security policies. The commonly used SMTP ports in PowerMTA are: Port 25, Port 587, Port 2525.

Is port 25 safe?

Port 25 is not considered safe for sending emails directly from email clients to mail servers due to its susceptibility to spam and security vulnerabilities.

What is the difference between port 587 and 465?

Port 587 is recommended for sending emails securely and is commonly used as the default mail submission port. It supports STARTTLS, which is a protocol command used to upgrade an existing insecure connection to a secure connection using TLS encryption. Port 465 was originally designed for SMTPS (SMTP over SSL), which provides a secure connection from the beginning of the email transmission. Unlike Port 587 that upgrades to a secure connection using STARTTLS, Port 465 starts with an SSL/TLS encrypted connection immediately upon connecting.

Is port 587 SSL or TLS?

Port 587 supports the use of STARTTLS, which enables it to upgrade an initially unencrypted SMTP connection to a secure one using TLS (Transport Layer Security). While the connection on Port 587 can start as unencrypted, the STARTTLS command initiates the switch to a TLS-encrypted connection before any sensitive data like email content or authentication details are transmitted. It’s important to note that while STARTTLS can use either SSL (Secure Sockets Layer) or TLS protocols, TLS is the more modern and secure version, and it is generally recommended and more commonly used than SSL for securing email transmissions.

Does SMTP port 25 support SSL?

SMTP port 25 does not inherently support SSL or TLS encryption. It was originally designed for unencrypted SMTP communications, primarily for sending emails from server to server (SMTP relay). While it is possible to initiate a STARTTLS command on port 25 to upgrade the connection to a secure one, this is not its default configuration, and the initial connection starts without encryption.

Recommended Articles

Build your in-house enterprise level email marketing and audience management platform today!

Get a quote

Fill in the form below or contact us via sales@octeth.com