What Is The Best SMTP Port To Use?

MailServers use TCP ports to transmit emails. Picking the right port between 25 vs 2555, 465 vs 587 in SMTP is easy with this guide.

imap smtp access

MailSlurp offers multiple SMTP port options, but which one should you use to send email messages? We take a historic look at the most common SMTP ports. Today's methodology for outgoing mail usage is based on the most recent data available to MailSlurp users.

What is an SMTP port?

SMTP stands for Simple Mail Transfer Protocol; it's the process by which emails are sent across the Internet. An SMTP port combines a computer port and an email server. Many different SMTP ports can send and receive emails.

The historical perspective of SMTP ports

In 1982, the University of Southern California submitted a proposal to the Internet Engineering Task Force (IETF). Request For Comments (RFC) 821 was published, establishing port 25 as the default transmission channel for internet email. Thirty years later, we still use this as the primary means of transmitting email between two mail servers.

In 1998, RFC 2476 proposed splitting the formal message submission and message relay concept. The RFC defined that message submission should occur over port 587 to ensure new policy and security requirements don't interfere with the traditional relay traffic over message relay port 25.

Where did port 465 come from?

The purpose of this was to allow SMTP to operate using Secure Sockets Layer (SSL) instead of its predecessor, Transport Layer Security Protocol (TLM). A new protocol command, "STARTTLS", allows SMTP servers to communicate over existing ports by advertising whether the destination server supports TLS encryption. If so, the sending server can upgrade the connection using the "STALESPEACE" SMTP command. The command was introduced in RFC 2487 and enabled secure SMTP connections.

Which SMTP port should you use?

We are going to discuss the various types of ports and the ones that fit you best, and you can choose the best port for you; the ports include;

Port 25

In most cases, modern SMTP email clients shouldn't use this port. Residential ISPs and Cloud Hosting Providers traditionally block it to curb spam. Unless you're managing a mail server, you should have no traffic traversing this port on your computer or server.

Port 465

IANA has reassigned a new service to this port, and it should no longer be used. However, there may be legacy systems that can only use this connection method. Typically, you will use this port only if your application demands it.

Port 2525

This port is not endorsed by the IETF nor IANA. Instead, MailSlurp provides it as an alternate port, mirrors port 587. 2525 is a non-traditional high port number; it is typically allowed on consumer ISPs and Cloud Hosting providers.

Port 587

MailSlurp users should consider using port 587 as their default SMTP port. This is the one that will provide the best results when sending an email to a proper mail server. Port 587, coupled with encryption, ensures that email is submitted securely and following the guidelines set out by the IETF.


POP (Post Office Protocol, with the latest version being POP3) and IMAP (Internet Message Access Protocol) are two of the first protocols developed on the consumer Internet. They allowed email clients - like Outlook, Thunderbird and others - to retrieve mail from a mail server.

The ports used for them are TCP 110 and 995 for POP and TCP 143 and 993 for IMAP. They're good at reflecting the state of an email to the server (whether it was read, flagged, or marked as junk).

In this article, we have spoken about various SMTP numbers and mail ports that are very vital, so it's good to do a proper survey and learn more about the ports.

Access MailSlurp account with IMAP/SMTP

You can connect your MailSlurp disposable email accounts or permanent inboxes using the SMTP and IMAP settings shown on the MailSlurp dasbhoard.

Related content

Fake SMTP servers for safe testing that prevent any outbound emails from reaching real users

Test emails safely with no risk of spamming users with real emails

Java email library for SMTP and creating email addresses

MailSlurp Java SDK for sending and receive email and attachments on the JVM.

SMTP email application libraries

How to send email in CSharp, PHP, Ruby, Java, Python, and NodeJS using the SMTP protocol and MailSlurp mailservers.

1111 SMTP Connections failing

1111 SMTP Connections failing

How to Send an Email in Python

Send emails using SMTP mailer in Python. Detailed tutorial for sending mail in Python.

How to send emails in Javascript (NodeJS)

JS SMTP email sending guide using HTML and NodeJS.

PHPMailer tutorial (Sending email with PHP)

PHPMailer tutorial (Sending email with PHP)

How to send an email using Powershell (Windows and cross-platform)

Use Send-MailMessage in Windows Powershell to send emails using an SMTP server or MailSlurp's free email API.

How to send email in R

RLang tutorial for sending emails over SMTP.

SMTP Commands and Response Codes List

A full list of commands and response status codes for SMTP mail servers when sending emails.

Test SMTP servers with Telnet

How to use Telnet to test the SMTP servers?

What Is Amazon Simple Storage Service (SES) - And How Can I Use It?

Amazon SES is an email service among virtual servers, AI apps, and libraries. Ideally, you can integrate your email system with your program hosted on Amazon.

Grab all details about an SMTP Port

What are common SMTP mail server ports and how do you find them?

Which SMTP Port Should I Use?

Picking the right port for SMTP mailservers

Avoiding email spam filters

How to send emails that don't trigger a spam warning.

BCC and CC in SMTP emails

What is cc and bcc in email? What is the difference between cc and bcc?

BCC For Email: What It Means And When To Use It

What is BCC email field (blind carbon copy) and how does it differ to CC?

What Is The Best SMTP Port To Use?

MailServers use TCP ports to transmit emails. Picking the right port between 25 vs 2555, 465 vs 587 in SMTP is easy with this guide.

How to configure Mail desktop clients with MailSlurp

How to setup MailSlurp with Outlook, Gmail, Thunderbird, Mail app and more.

Send email with CSharp using SMTP Client and MailSlurp

Create a custom SMTP client and access MailSlurp inboxes from CSharp/DotNET.

DMARC – All Facts that you should know

DMARC – All Facts that you should know

Email size limits

Email size limits

The Fundamentals Of Email Subdomains

How to manage email subdomain custom mailboxes using SMTP/IMAP mailserver settings.

How to send emails in VBA

Send email in Visual basic

A guide to PHP Mailer

A guide to PHP Mailer

SMTP IMAP Settings

How to access MailSlurp email accounts using IMAP and SMTP servers

SMTP Relay for outbound smtp servers

How to use SMTP relay to address spam and security issues that affect outbound mail servers.

SMTP vs HTTP MailSlurp inboxes

The difference between HTTP and SMTP inboxes and domains in MailSlurp.

What are SMTP ports

What are SMTP ports

CSharp send SMTP email

How to use CSharp SMTP client to send email with MailSlurp mail server

Send SMTP email with Java

How to use Java SMTP client to send email with MailSlurp mail server on the JDK

Send emails in NodeJS using SMTP

How to use Javascript SMTP client (or Nodemailer) to send email with MailSlurp mail server

Send SMTP emails with PHP

Use PHPMailer to send emails with SMTP and MailSlurp

Send SMTP email with Python (using SMTPLib)

How to send emails with Python's built-in SMTP client and MailSlurp mail servers.

Ruby send SMTP email

How to use Ruby SMTP client to send email with the MailSlurp mail servers

Ready to dive in?Start building email applications today.