Skip to content
ContentLora

    Tip: press / anywhere to search.

    Explainer

    How email works: SMTP, SPF, DKIM and DMARC

    Email travels between mail servers using the Simple Mail Transfer Protocol (SMTP), which finds the receiving server through a DNS lookup for the recipient's domain.[1][2] Because the original protocols let senders claim any address, three add-ons, SPF, DKIM and DMARC, let domains prove which mail is really theirs. Since February 2024, Gmail has required SPF or DKIM from all senders, and all three from bulk senders.[3][4][5][6][7]

    Editor reviewedUpdated Explainer13 claims · 100% primaryInternet and telecoms, Cybersecurity
    Reading level: 2 passages differ; the rest is the same for everyone.

    From your outbox to their server

    When you hit send, your mail provider looks up the recipient’s domain (the part after the @) in the internet’s address book, DNS, to find the server that accepts mail for it.[2] It then hands the message over using SMTP, a protocol whose job is to move mail reliably and efficiently between servers.[1]

    SMTP is specified in RFC 5321 (October 2008), which states its objective as transferring mail reliably and efficiently.[1] To route a message, the sending server performs a DNS lookup on the recipient’s domain and first tries to locate an MX (mail exchanger) record.[2] Servers are expected to keep listening on the SMTP port, which IANA assigned as port 25.[8] The message itself is formatted under the Internet Message Format standard, RFC 5322, which Google requires senders to Gmail to follow.[9]

    For how DNS lookups work in general, see how DNS works.

    Why email is easy to fake

    The original protocols place no restriction on the “MAIL FROM” address a sending server uses, so email can be forged.[3] Three later standards let domain owners show which mail really comes from them.[4][5][6] For the warning signs of forged mail, see how to spot phishing.

    SPF, DKIM and DMARC

    • SPF is a public list a domain publishes saying “only these servers send mail for us”.[4]
    • DKIM is a digital signature on each message. The receiver checks it against a key the domain publishes, which shows the message really came through that domain.[5]
    • DMARC tells receivers what to do when a message fails those checks: reject it, send it to junk, or do nothing. It also covers reporting back to the domain owner.[10][6]

    Sender Policy Framework (RFC 7208, April 2014) lets a domain publish DNS records listing the hosts permitted to use its name, which receivers check.[4] DomainKeys Identified Mail (RFC 6376, September 2011) lets a signing domain claim responsibility for a message through a cryptographic signature, validated with a public key retrieved from the signer’s domain.[5] DMARC (RFC 7489, March 2015) lets the originating organization publish policies for validation, disposition and reporting; the RFC is an informational independent submission rather than a standards-track specification.[6] A DMARC record can specify p=reject, p=quarantine or p=none.[10] Google describes alignment as the visible From domain matching the domain checked by SPF or DKIM.[11]

    Who requires them

    CISA’s Binding Operational Directive 18-01, issued on 16 October 2017, required US federal civilian agencies to offer STARTTLS and publish valid SPF and DMARC records within 90 days, and to move to a DMARC policy of “reject” within one year.[12] CISA notes that STARTTLS signals that a server can encrypt mail in transit but does not force encryption.[13]

    Since 1 February 2024, Google has required everyone sending to Gmail accounts to use SPF or DKIM, and senders of more than 5,000 messages a day to use SPF, DKIM and DMARC.[7]

    This page covers how mail moves between servers and how domains authenticate it. It does not cover how mail apps download messages from a mailbox, or end-to-end encryption of message content.

    Next in the crash course

    More in Internet & telecoms

    Developing in AI & Computing

    Questions readers ask

    What protocol sends email?

    SMTP, the Simple Mail Transfer Protocol, defined in RFC 5321. Its stated aim is to transfer mail reliably and efficiently, and servers listen for it on port 25.[1][8]

    What is the difference between SPF, DKIM and DMARC?

    SPF lists in DNS which servers may send mail for a domain. DKIM adds a cryptographic signature that receivers check with a public key published by the domain. DMARC lets the domain tell receivers what to do with mail that fails those checks and send back reports.[4][5][6]

    What does a DMARC policy of reject mean?

    It asks receiving servers to block messages that fail authentication. The other settings are quarantine, which sends them to junk, and none, which gives no instruction.[10]

    Do I need SPF, DKIM and DMARC to send to Gmail?

    Since 1 February 2024, Google has required all senders to Gmail accounts to set up SPF or DKIM, and senders of more than 5,000 messages a day to set up all three.[7]

    Is email encrypted in transit?

    Not necessarily. CISA notes that STARTTLS signals that a receiving server can encrypt mail in transit, but it does not force encryption to be used.[13]

    Sources

    · 13 claims from 3 publishers

    Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.

    1. [1]

      The Simple Mail Transfer Protocol (SMTP), specified in RFC 5321 (October 2008), exists to transfer mail reliably and efficiently between systems. confirmedas of 2026-11-21

    2. [2]

      Under RFC 5321, a sending mail server performs a DNS lookup on the recipient's domain and first tries to find an MX (mail exchanger) record that names the server accepting its mail. confirmedas of 2026-11-21

    3. [3]

      RFC 7208 notes that email can be forged because the original protocols place no restriction on the "MAIL FROM" address or server name a sending host uses. confirmedas of 2026-11-21

    4. [4]

      Sender Policy Framework (SPF), specified in RFC 7208 (April 2014), lets a domain publish DNS records listing which hosts may send mail using its name, so receiving servers can check them. confirmedas of 2026-11-21

    5. [5]

      DomainKeys Identified Mail (DKIM), specified in RFC 6376 (September 2011), lets a signing domain take responsibility for a message with a cryptographic signature that receivers verify using a public key fetched from that domain. confirmedas of 2026-11-21

    6. [6]

      DMARC, described in RFC 7489 (March 2015), lets a sending organization publish domain-level policies for how receivers should validate, handle and report on its mail; the RFC is an informational independent submission, not an IETF standards-track specification. confirmedas of 2026-11-21

    7. [7]

      Since 1 February 2024, Google has required everyone sending to Gmail accounts to set up SPF or DKIM, and senders of more than 5,000 messages a day to set up SPF, DKIM and DMARC. confirmedas of 2026-11-21

    8. [8]

      RFC 5321 says SMTP servers should keep listening on the SMTP port, which IANA assigned as port 25. confirmedas of 2026-11-21

    9. [9]

      Messages themselves follow the Internet Message Format standard, RFC 5322, which Google requires senders to Gmail to follow. confirmedas of 2026-11-21

    10. [10]

      A DMARC record can ask receivers to reject unauthenticated messages (p=reject), send them to junk (p=quarantine), or take no particular action (p=none). confirmedas of 2026-11-21

    11. [11]

      Google explains DMARC alignment as the domain in the visible From header matching the domain checked by SPF or DKIM. confirmedas of 2026-11-21

    12. [12]

      CISA's Binding Operational Directive 18-01, issued on 16 October 2017, required US federal civilian agencies to offer STARTTLS and publish valid SPF and DMARC records within 90 days, and to set a DMARC policy of "reject" within one year. confirmedas of 2026-11-21

    13. [13]

      CISA notes that STARTTLS signals that a receiving mail server can encrypt email in transit, but does not force encryption to be used. confirmedas of 2026-11-21

    Revision history (1)
    1. Page created.

    Created Nov 21, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Oct 5, 2027.

    Cite this page

    "How email works: SMTP, SPF, DKIM and DMARC." ContentLora, updated Nov 21, 2026. https://contentlora.com/explain/how-email-works

    Spotted an error? Suggest a correction or emailcorrections@contentlora.com.