✉ SMTP

Simple Mail Transfer Protocol · RFC 5321 · port 25 / 465 / 587
What is SMTP?

SMTP (Simple Mail Transfer Protocol) is the standard protocol for sending email across the internet. Defined in RFC 5321, it operates as a push protocol: a client connects to a server and delivers a message. SMTP handles only delivery — reading mail uses IMAP or POP3.

Every internet email travels through at least two SMTP hops: your mail client → your mail server (submission), then your mail server → the recipient's mail server (relay). Each hop adds a Received: trace header.

Key facts
1982
RFC 821 (original)
5321
Current RFC
25
MTA relay port
587
Submission port
465
SMTPS (implicit TLS)
ASCII
Original encoding
Mail delivery path
1
MUA → MSA — Mail User Agent (Outlook, Thunderbird) submits to Mail Submission Agent on port 587 with AUTH credentials.
2
MSA → MTA — Submission server hands off to the outbound Mail Transfer Agent (MTA), which looks up the recipient domain's MX record in DNS.
3
MTA → MTA — Sender's MTA connects to recipient's MTA on port 25 and delivers the message over an authenticated, TLS-encrypted session.
4
MTA → MDA — Recipient's MTA passes the message to the Mail Delivery Agent (MDA), which stores it in the mailbox for retrieval over IMAP/POP3.
Protocol layers
Application
SMTP (RFC 5321), MIME (RFC 2045), DKIM, SPF, DMARC
Security
STARTTLS (RFC 3207), SMTPS (port 465), SASL AUTH (RFC 4954)
Transport
TCP — connection-oriented, reliable, ordered delivery
Network
IPv4 / IPv6