What are the SMTP Ports? (25, 465, 587)

About

A smtp port is a port of the SMTP server where an smtp client would connect to try to:

an email.

Summary

Service Name Port Protocol Authentication Required Type of delivery Submission
smtp 25 or 2525 Plain with STARTTLS No Local
smtps 587 or 2587 Plain with STARTTLS Yes Remote / local Yes
smtps 465 TLS (SSL) Yes Remote / local Yes

Submission Port

submission 1) is a means for client (Mua) to connect to a SMTP server and send messages.

ie

  • The submission ports (463, 587) are expected to be able to transmit email from clients.
  • while the other port (ie 25) is expected to receive email from a smtp server (mta)

Note that the process that accepts message submissions is called a Message Submission Agent (MSA)

Port

25

The port 25 is a port:

  • with plain connection (ie without TLS)
  • without authentication.

The localhost port 25 is used by Postfix or a similar mail server running on the local machine.

  • For remote clients, it denies relay and accepts only to receive email for the domain that it manages.
  • For local clients, it accepts to send email.

The port 25 is mostly blocked by your Internet Service Provider (ISP) 2) if you are at home. One solution is to connect to the port 587 which is a service where you need to authenticate.

Advanced tip:: In the DNS 3), in a WKS record if the protocol is tcp (6), and the 26th bit is set, an SMTP server should be listening on TCP port 25

465

The port 465

As your users are authenticated, you should not score their email or any traffic activities otherwise you could block your own users.

587

The port 587 has the same properties than the port section25, except that it accepts only authenticated connections.

2525

The port 2525 is a backup port for the port 25 in case the other ports are blocked by a network provider or a firewall.

2587

The port 2587 is a backup port for the port 587 in case the other ports are blocked by a network provider or a firewall.

Configuration

Postfix

To open port 587, with postfix, the submission line should be uncommented and parameters should be overwritten.

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
submission inet n      -       n       -       -       smtpd
  -o smtpd_tls_security_level=encrypt
  -o syslog_name=postfix/submission
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_reject_unlisted_recipient=no
  -o smtpd_client_restrictions=$mua_client_restrictions
  -o smtpd_helo_restrictions=$mua_helo_restrictions
  -o smtpd_sender_restrictions=$mua_sender_restrictions
  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING

Specification

If you want to known more about the subject, there is also a whole specification. See RFC6409 - Message Submission for Mail





Discover More
Email - Mille and one way to send an email (professional and user)

This article shows you Mille and one way to send an email (ie known as transport in SMTP. submission port Before continuing, you need to know the basics of email and how it works with SMTP. If you...
How does the email system work? SMTP, POP, IMAP explained

This page gives you the foundations of the email system. At the end, you should be able to understand why when you configure your email client, you need to set up: The SMTP configuration And the...
How to send an email at the command line with SMTP? Email transaction explained

This page is a how-to that describes how you can transport an email to a SMTP server at the command line using the SMTP protocol for further delivery It will show you the inner mechanisms of SMTP. Below...
Map Of Internet 1973
Network - Server

A network server is a service that listens on a socket for inbound connections. This server receives packets and returns packets A Web/HTTP Server listens for TCP connection on the HTTP/HTTPS port...
Postfix - Architecture (Processes)

postfix may starts several process, generally: one to receive and relay mail (port 25) one to submit mail (port 587) Postfix services are implemented by daemon processes. These run in the background,...
Smtp Submission Port Auth Successfull
Postfix - Authentication configuration (SASL) for a connection to the SMTP server (587)

This page shows you yow to configure Postfix to enable remote connections to the Postfix SMTP server on the port 587 (submission port) with authentication. Postfix used SASL as authentication library...
Postfix - SMTP Banner

A SMTP banner is the protocol banner of SMTP (ie the response that a client will get when it connects to a SMTP server) With Telnet, we connect to the local smtp server submission port We receive...
Gmail Tls Security
Postfix - TLS (SSL) configuration

Transport Layer Security (TLS, formerly called SSL) with Postfix It provides: certificate-based authentication and encrypted sessions. An encrypted session protects the information that is transmitted:...
What is a Mail eXchange or Email mail delivery agent (MDA | LDA)?

A mail delivery agent (MDA) or Mail eXchange is a SMTP server that is responsible for the local delivery (reception) of e-mail messages to a mailbox It's also known as: message delivery agent (MDA)...
Ports
What is a Port in computing?

This article is about the network port, what it is, how we use it and more



Share this page:
Follow us:
Task Runner