How to Choose the Right SMTP Port (Port 25, 587, 465, or 2525)

SMTP plays an important role in moving emails around the Internet. To improve the deliverability of your WordPress site’s transactional emails, you can configure your WordPress site to send emails via SMTP. Additionally, if you use an email client like Apple Mail or Outlook, your email client uses SMTP to submit outgoing emails to the mail server. In order to connect your WordPress site or email client to the SMTP server, you need to enter a specific SMTP port. There are four common SMTP ports: 25 587 465 2525 Port 25 is commonly used for SMTP relay, but you should not use it for SMTP submission because most providers block it.

How to Choose the Right SMTP Port (Port 25, 587, 465, or 2525)

 SMTP Port 

SMTP, short for Simple Mail Transfer Protocol, is the standard protocol for email transmission on the web. It’s what mail servers use to send and receive emails on the Internet.

when you send an email, your email client needs a way to upload the email to the outgoing mail server. Then, the outgoing mail server needs a way to transfer your email to the recipient’s incoming mail server.

Mail servers are much like website servers in that, while there might be a user-friendly front-facing domain name, the actual communication happens via IP addresses, like 222.501.285.45 (for more on how this happens.

A “port” is another way to help computers (like two mail servers) communicate with one anothe

  • An IP address identifies a computer.
  • A port identifies a specific application/service running on that computer, like SMTP:

Here’s an analogy to make it a little more human-friendly:

An IP address is the physical street address of a business complex. A port is the number of a specific business in that business complex.

If you want to deliver something to that business, you can’t just address it to the business complex, you also need a way to make sure it gets to the right place inside the business complex.

IANA, the organization responsible for global IP address allocation and other tasks, is also responsible for registering port numbers for common Internet services, which includes SMTP.

What Port Does SMTP Use?

On the modern web, there’s not a single SMTP port. Instead, there are four common SMTP ports:

  • 25
  • 587
  • 465
  • 2525

Let’s go through them.

What is Port 25 Used For

Port 25 was established all the way back in 1982, which makes it the oldest SMTP port.

Port 25 is still known as the standard SMTP port and it’s used mostly for SMTP relay.  

However, if you’re setting up your WordPress site or email client with SMTP, you usually do not want to use port 25 because most residential ISPs and cloud hosting providers block port 25.https:

Why? Because port 25 is commonly abused to send spam from compromised computers.

Remember: there’s a difference between SMTP submission and relay. So while SMTP port 25 is great for SMTP relay, it is not a good option for SMTP submission.

What is Port 587 Used For

Port 587 is the default port for SMTP submission on the modern web. While you can use other ports for submission (more on those next), you should always start with port 587 as the default and only use a different port if circumstances dictate (like your host blocking port 587 for some reason).

Port 587 also supports TLS, which means that you can securely submit mail.

What is Port 465 Used For

Port 465 was originally registered for SMTPS (SMTP over SSL). After a brief stint in that function, port 465 was reassigned for a different use and deprecated.

Despite that fact, many ISPs and cloud hosting providers still support port 465 for SMTP submission.

Tired of a slow host for your WordPress site? We provide blazing fast servers and 24/7 world-class support from WordPress experts. 

What is Port 2525 Used For

Port 2525 is not an official SMTP port (as recognized by the IETF or IANA). However, it’s still popularly used as an alternative to port 587 for SMTP submission and most ISPs and cloud hosting providers do support port 2525 for SMTP.

If port 587 is blocked, port 2525 makes a good alternative.

Which SMTP Port Should You Use

We touched on this above, but let’s recap how to choose the right SMTP port because it’s important to make the right decision.

If you’re configuring your WordPress site or email client to send emails via SMTP (submission), you’ll almost always want to use port 587. Again, this is the default SMTP port for submission and it supports secure transmission via TLS.

If port 587 is blocked for some reason, port 2525 is a common alternative. Again, this is not an officially recognized SMTP port, but it is commonly used and supported by most providers.

While many providers still do support port 465 for SMTP, it’s no longer an accepted standard and you should always try to use ports 587 and 2525 before using port 465.

Finally, while port 25 is commonly used for SMTP relay, you should not use it when setting up an email client or WordPress website because most ISPs and cloud hosting providers block port 25.