Simple Mail Transfer Protocol
Subject: Computer and Technology noun /ˈsɪm.pəl meɪl ˈtræns.fɜːr ˈproʊ.tə.kɑːl/ 1 definition
- computer-networking
- internet-protocols
- email-systems
- application-layer
-
Definition (noun)
Entry #156 · UpdatedThe Simple Mail Transfer Protocol (SMTP) is the foundational application-layer internet protocol used to submit, relay, and deliver electronic mail messages between clients and servers over TCP. Using an interactive command-and-reply session—such as
EHLO,MAIL FROM,RCPT TO, andDATApaired with three-digit status codes—a sending host transfers envelope routing metadata and message content across intermediate relays to the recipient domain's Mail Exchanger (MX) server. SMTP strictly governs outgoing message transmission and server-to-server delivery, leaving end-user mailbox retrieval and synchronization to separate access protocols such as IMAP or POP3.Common Forms
Extended SMTP (ESMTP): Advertised via the
EHLOgreeting, allowing servers and clients to negotiate capabilities such as sender authentication (AUTH), message size limits (SIZE), and8BITMIMEencoding beyond the minimal core command set.Server-to-Server Relay SMTP (Port 25): Handles inter-domain message routing between Mail Transfer Agents (MTAs) discovered through DNS MX records, typically upgrading plaintext connections opportunistically via
STARTTLS.Authenticated Message Submission (Port 587): Accepts outbound email from a user's Mail User Agent (MUA) using mandatory authentication (
AUTH) and explicitSTARTTLSencryption before handing messages to the relay pipeline.Implicit-TLS SMTP (SMTPS, Port 465): Wraps the entire SMTP session inside a TLS tunnel as soon as the TCP connection opens, eliminating plaintext greeting exchanges and preventing
STARTTLSdowngrade attacks.
Example
When a user sends an email from
alice@example.orgtobob@recipient.net, her mail client authenticates on port587withSTARTTLS, issuesMAIL FROM:<alice@example.org>andRCPT TO:<bob@recipient.net>, and uploads the message body after receiving a354response from the Mail Submission Agent. The outbound server then queries theMXrecord forrecipient.net, connects to its mail server on port25, and completes delivery upon receiving a250 OKreply.