What is the default SMTP port and how to change it?

What is the default SMTP port and how to change it?

Today we will know how to change the SMTP port and what is the default SMTP port. Simple Mail Transfer Technology, or simply SMTP, is a widely used email transmission protocol. These protocols are used worldwide by Internet mail servers to send and receive email.

For example, your email client needs to upload an email to an outgoing mail server. Your email will then be forwarded through the outgoing mail server to the recipient’s incoming mail server.

SMTP ports are very important in the Simple Mail Transfer Protocol (SMTP) submission process. For this reason, choosing the correct port is crucial when setting up an email server. Incorrect settings may cause errors in sending and receiving emails.

In 1982 the Internet Engineering Task Force (IETF) received a proposal from the University of Southern California.

The publication of Request for Comments (RFC) 821 identified port 25 as the standard transmission route for Internet email.

Even now, 40 years later, we still primarily use port 25 to transfer emails between two mail servers.

Several others have superseded the first SMTP RFC. However, the basics of SMTP connections remain the same or somewhat comparable.

What purpose do SMTP ports serve?

SMTP ports are communication endpoints that handle the transfer of data from one server to another. In contrast, SMTP is a mail submission protocol that enables users to send emails over the Internet.

An email account needs to be configured before you can start using an SMTP server.

To properly route your emails, specify an IP address and a port number Before emails are sent to their intended recipient, they go through three stages:

Sending emails to an outgoing mail server is known as email submission.

Then, it would be best to choose which port to use as this happens via SMTP.

They are ultimately relaying communication between two mail servers via SMTP. Users usually do not need to set a port for this as it uses a default.

Receiving email means that the messages reach the receiving server.

Internet Message Access Protocol (IMAP)/Post Office Protocol 3 is responsible for this approach (POP3).

Why are there multiple ports for SMTP?

Sending emails from one client to another involves several processes. First, you must submit an email from your client to the mail server. After that, it must be relayed from one server to another before the recipient’s email can be received by the client.

Each step in this process involves different ports. If you set up your mail servers to receive mail from external systems (such as Gmail, Yahoo, etc.) you must enable mail delivery on normal port 25.

Mail servers only know how to transfer or relay mail to this port

The narrative is slightly different for mail submissions, though. A mail client will often connect to a different port when it wants to submit a message for the relay.

The email-receiving process does not use SMTP. The protocols used to receive an email, IMAP or POP, also depend on the specific port.

But why have multiple ports if email submission and transmission both happen via SMTP? This is due to various historical reasons:

Numerous Internet Service Providers began limiting port 25 for sending mail to other systems to stop users from creating spam and distributing it over their networks.

This prevents large amounts of malicious mail from being sent over consumer-level/residential connections because servers typically only allow mail on port 25.

A mail server must confirm when a connection is established whether the client wants to send a message to the server for transmission or whether the server wants to relay the message to another SMTP server.

Mail server administrators can implement different restrictions and authentication requirements for each type of interaction using a distinct port.

Different types of SMTP ports

To help you choose the ideal port for your SMTP server, we’ll discuss the functions of SMTP ports and go over four of them.

Port 25

SMTP port 25 was initially designated by the Internet Engineering Task Force (IETF) as the default transmission channel for email. The primary application of SMTP port 25 is still SMTP relaying.

We do not recommend using this as a mail submission channel, although the Internet Assigned Numbers Authority (IANA) still identifies it as the default SMTP port.

Viruses and spam spread through port 25. Additionally, messages sent over port 25 are not encrypted; They are sent in plain text.

This raises many security risks as threat actors can intercept encrypted data.

Many web hosts and ISPs (Internet Service Providers) have decided to ban all port 25 traffic as a result. This is done to reduce the number of spam emails sent through it.

Despite this, port 25 is a useful channel for testing connectivity and troubleshooting email settings.

When setting up the contact form for your website, for example, if the server doesn’t respond over port 25, it means the problem is not with the SMTP server.

Modern SMTP email applications (such as Thunderbird, Mail, Microsoft Outlook, and others) should not often use this port.

Residential ISPs and cloud hosting companies usually block it to reduce spam sent from infected machines or servers.

It helps if no traffic passes through this port on your PC or server unless you specifically run a mail server.

Avoid using port 25 when using SMTP for WordPress websites or email client setups as most home ISPs and cloud hosting companies restrict it.

If you are not running a mail server, no traffic should go over this port on your server.

Port 465

As a replacement for port 25, IANA created SMTP port 465. Enables secure email transmission (SMTPS) using a common mail transfer protocol over SSL.

It was never recognized by the IETF as an official SMTP port.

Mail transmission on port 465 is protected by underlying TLS, which encrypts the initial connection using a TLS or SSL certificate.

SMTP port 465 is no longer recommended and is not recognized as a standard for submitting mail. We recommend using this protocol only when your hosting provider demands it.

Port 587

As a replacement for channel 465, SMTP port 587 was launched. It is recognized by both the IANA and the IETF as the current primary port for email submissions.

Since STARTTLS is supported on SMTP port 587, SSL and TLS encryption are supported as well. It enables secure message submission and adds extra security against viruses and spam.

A protocol called STARTTLS commands is sent between an email client and a server. It encrypts data transferred over a TLS connection.

Additionally, SMTP authentication provided by STARTTLS requires an SMTP client login with the mail server to access the system.

Port 2525

The modern protocol is used to connect to the SMTP server on port 2525. Since it offers TLS encryption for email transmission, it is considered a secure solution.

It is now a widely used port supported by a large number of ESPs, ISPs as well as cloud hosting services.

Port 2525 is sometimes used to set up virtual private servers (VPS). If you experience connectivity issues while submitting an SMTP message, port 2525 primarily serves as a backup.

If your connection is refused or blocked when you use port 587, try using port 2525 instead of port 587.

Port 2525 is not a standard channel. Therefore IANA and IETF do not actively monitor it because they do not recognize it as an acceptable SMTP mechanism.

However, some hosting companies do not support this.

Which port should you use for SMTP?

As we have already discussed, choosing the right SMTP port is very important. Port 587 is almost always the ideal option for configuring your WordPress website or email client to send email via SMTP (submission). It enables a standard SMTP port for submission and a secure TLS connection.

Port 587 is almost always the ideal option for configuring your WordPress website or email client to send email via SMTP (submission). It enables standard SMTP ports and a secure TLS connection for submission.

Port 2525 is a common alternative if port 587 is prohibited. Although this SMTP port number is not officially recognized, most web hosts support it and use it wisely.

Although SMTP port 465 is still supported by many providers, it is no longer considered a standard. Use ports 587 and 2525 instead. Last but not least, although port 25 is often used for SMTP relay, you should avoid using it when installing an email client or WordPress website because most ISPs and cloud hosting providers block it.

Conclusion

Simple Mail Transfer Protocol, or SMTP for short, is the method used to send an email over the Internet. Computer ports are the means through which individual computers join a network and conduct electronic operations. An SMTP port is a port created for sending an email over a network and to its receiver.

Of course, numerous SMTP ports can be used, just as there are numerous computer ports.

Start with port 587, the default port for SMTP submissions, whether you want to use SMTP on your WordPress website or your email client.

If port 587 doesn’t work, you can try port 2525. It is often used and supports TLS for secure communication although it is not an allowed SMTP port.

We hope this guide has helped you select the correct SMTP port.

Scroll to Top