Struggling to find out the right SMTP port to use? Been there, done that!
If you’re using an email client like Apple Mail or Outlook to send emails, that email client probably also uses SMTP to upload your outgoing emails to your mail server (though those clients typically use other protocols like IMAP or POP3 to download incoming emails to the app).
But if you try to set up SMTP with your email client or WordPress website, you’ll probably encounter the question of which SMTP port to use.
To help you choose the right SMTP port for your needs, we’re going to dig into everything SMTP port-related in this post.
Prefer to watch the video version?
What is an 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.
For example, 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, check out our introduction to the Domain Name System, or DNS).
A “port” is another way to help computers (like two mail servers) communicate with one another:
- 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.
Why Does Your SMTP Port Matter?
If you want to connect to an SMTP server (like the Gmail SMTP Server), you need to enter both its IP address and its port number.
However, there are multiple common SMTP ports (more on this next) and not all of them work in all situations.
For example, port 25, the standard SMTP port for moving messages between mail servers, is often blocked by ISPs and cloud providers (including Google Cloud Platform, which is what Kinsta uses).
As such, if you try to connect to an SMTP server via port 25, you’ll often encounter issues because so many services block port 25.
Different Ports for Different Purposes
Beyond the implications above, different SMTP ports also have different purposes.
There are two broad stages in SMTP transmission:
- Submission – submitting an email message to an outgoing mail server. For example, when you send an email in Apple Mail, that message needs to be submitted to the outgoing mail server.
- Relay – the process of relaying the message between two servers. So after an email is “submitted” to the outgoing mail server, the outgoing mail server “relays” that message to the recipient’s mail server.
If you’re setting up your email client or WordPress site, you’re mostly concerned with the “submission” part of the process.
While “relay” is definitely an important part of SMTP, most people don’t need to configure their own email server.
What Port Does SMTP Use?
On the modern web, there’s not a single SMTP port. Instead, there are four common SMTP ports:
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.
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. Check out our plans
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.
Which SMTP Ports Can You Use at Kinsta?
At Kinsta, you can use ports:
You cannot use port 25 because Kinsta uses Google Cloud Platform infrastructure and Google Cloud Platform blocks port 25.
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:
Port 25 is commonly used for SMTP relay, but you should not use it for SMTP submission because most providers block it.
If you want to configure your WordPress site or email client to use SMTP, you should start with port 587 as your first choice, as it’s the standard port for SMTP submission.
And if port 587 doesn’t work, you can try port 2525. While it’s not an officially recognized SMTP port, it’s widely supported and it supports TLS for secure transmission.
Save time, costs and maximize site performance with:
- Instant help from WordPress hosting experts, 24/7.
- Cloudflare Enterprise integration.
- Global audience reach with 35 data centers worldwide.
- Optimization with our built-in Application Performance Monitoring.