Skip to main content
Definition Website Computer and Technology

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

  1. Definition (noun)

    Entry #156 · Updated

    The 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, and DATA paired 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 EHLO greeting, allowing servers and clients to negotiate capabilities such as sender authentication (AUTH), message size limits (SIZE), and 8BITMIME encoding 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 explicit STARTTLS encryption 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 STARTTLS downgrade attacks.

    Example

    When a user sends an email from alice@example.org to bob@recipient.net, her mail client authenticates on port 587 with STARTTLS, issues MAIL FROM:<alice@example.org> and RCPT TO:<bob@recipient.net>, and uploads the message body after receiving a 354 response from the Mail Submission Agent. The outbound server then queries the MX record for recipient.net, connects to its mail server on port 25, and completes delivery upon receiving a 250 OK reply.