This is port is used to send and receive emails between Mail Transfer Agents (MTA)
It is mainly designed for email sending between SMTP Servers and not for stablishing a connection and sending email messages from a Mail User Agent (MUA) to an MTA
It is not recommended that the MTUs use the 25 Port to send emails. Although, this port supports encryption via STARTTLS
465
MUA β MTA
This port allows the email sending from a MUA to an SMTP Server using SSL/TLS to cipher the connection
It automatically encrypts the communication between both parties, It is not optional. This makes it less flexible than STARTTLS
It is not currently the standard, although most SMTP Servers maintain it for compatibility
587
MUA β MTA
It is used to send emails from MUAs to SMTP Serversalways requiring authentication
It is currently the standard and it allows to start a connection without encryption and then negotiate it
Note that, as mentioned above, is more flexible than Port 465, as it supports both encrypted and unencrypted connections
SMTP Commands
Command
Description
AUTH PLAIN
Service Extension to authenticate the client
HELO/EHLO
Client self introduction to the server
MAIL FROM
Email Sender
RCPT TO
Email Recipient
DATA
The client initiates the data transfer
RSET
The client aborts the initiated transmission but keeps the connection
VRFY
Check if a mailbox is available for message transfer