Email security

Email Security Protocols Explained: SPF, DKIM, DMARC, TLS and More

No single protocol secures email. SPF, DKIM, DMARC, TLS and their companions each fix a different weakness — here is how they fit together.

Cysoro Security TeamPublished · 8 min read
SPF DKIM DMARCSender verifiedSignature validPolicy: reject TLS encrypted EMAIL SECURITY Email security protocols Who sent it, was it changed, should it deliver?
Quick answer

Email security protocols are the standards that authenticate senders, encrypt messages in transit and enforce policy: SPF lists the servers allowed to send for a domain, DKIM cryptographically signs messages so tampering is detected, DMARC ties those checks to the visible From address and tells receivers what to do with failures, and TLS with MTA-STS encrypts the connection between mail servers.

Key takeaways

  • SPF, DKIM and DMARC only work as a set — DMARC is the one that protects the From address people actually see.
  • TLS encrypts mail in transit but does not prove who sent it, so it cannot replace authentication.
  • Publish SPF and DKIM, move DMARC from p=none to p=reject, then add MTA-STS and TLS reporting.

Email was designed in a more trusting era: the original mail protocol lets anyone write almost any sender address on a message. The protocols in this guide are the fixes added since — each one closes a different hole, and none of them works alone.

What are email security protocols?

Email security protocols are standards that authenticate senders, encrypt messages while they travel, and tell receiving servers what to do with mail that fails those checks. Together they answer three questions: who sent this, was it changed, and should it be delivered.

The most important group is the authentication trio: SPF, DKIM and DMARC. Around them sit transport protections — TLS, STARTTLS, MTA-STS and TLS-RPT — and message-level protections such as S/MIME, plus ARC for mail that passes through intermediaries.

The stakes are high. The FBI received 191,561 phishing and spoofing complaints in 2025, and business email compromise caused about $3.05 billion in reported US losses that year, according to the 2025 IC3 Annual Report. Most of those attacks exploited exactly the gaps these protocols close.

How does an email travel, and where can it be attacked?

An email travels from the sender's mail server to the recipient's mail server using SMTP, the Simple Mail Transfer Protocol, with DNS MX records pointing the way. At each hop, a different weakness can be exploited.

An attacker can spoof the sender address, because SMTP by itself does not check who a sender is. They can read or alter a message in transit if the connection is unencrypted. And they can register a look-alike domain that passes every technical check for that domain, even though it is not yours.

That is why the protocols are layered. Authentication proves the sending domain, encryption protects the journey, and policy tells receivers how strictly to enforce both. Our guide to what DMARC is explains the enforcement step in detail.

One email, four checkpoints 1SPF checkis this serverallowed to send? 2DKIM checkis the signaturevalid and intact? 3DMARC checkdoes it match thevisible From? 4TLS in transitwas the journeyencrypted? SPF and DKIM authenticate the infrastructure. DMARC protects the address people see. TLS protects the journey.
The four checkpoints every authenticated email passes. Illustration by Cysoro.

What is SPF?

SPF, Sender Policy Framework, is a DNS record that lists the mail servers allowed to send email using your domain in the envelope sender address. A receiving server looks up your SPF record and checks the sending server against it.

If the server is on the list, SPF passes. If it is not, SPF fails — a strong sign the message is spoofed. SPF is defined in RFC 7208 and is the oldest of the authentication trio.

SPF has two well-known limits. It checks the envelope sender, not the From address people see, so a message can pass SPF for one domain while displaying another. And it breaks when mail is forwarded, because the forwarder's server is not on your list. That is why SPF alone is never enough.

Keep your SPF record under the 10 DNS lookup limit, include every legitimate sender — your mail provider, CRM, helpdesk and marketing tool — and end with a strict qualifier once you are confident, such as -all. You can check your record with our free SPF checker.

What is DKIM?

DKIM, DomainKeys Identified Mail, adds a cryptographic signature to outgoing messages. The sending server signs selected headers and the body with a private key, and publishes the public key in DNS. The receiver verifies the signature to confirm the message was signed by that domain and not altered in transit.

Think of DKIM as a tamper-evident wax seal. If anyone changes the message after signing — even a mailing list adding a footer — the signature no longer matches and DKIM fails. That is a feature for security, and a practical headache for forwarded mail, which is where ARC comes in.

Each DKIM signature names a signing domain in its d= tag and a selector in s= that points to the public key record. Rotate your DKIM keys periodically, use 2048-bit keys where your provider supports them, and sign with a selector per sending service so you can revoke one without touching the others. Learn more in our guide to what DKIM is.

What is DMARC?

DMARC, Domain-based Message Authentication, Reporting and Conformance, is the policy layer that ties SPF and DKIM to the address people actually see. It passes only when SPF or DKIM passes for a domain that aligns with the From address, and it tells receivers what to do when authentication fails.

The three policies are p=none (report only, deliver normally), p=quarantine (send failures to spam) and p=reject (block failures outright). DMARC also asks receivers to send you aggregate reports, so you can see who is sending as your domain — including attackers.

DMARC is a process, not a single record. Start at p=none, read the reports, fix legitimate senders that fail alignment, then move to quarantine and finally reject. Jumping straight to reject is the most common DMARC mistake: it blocks your own legitimate mail. DMARC was originally specified in RFC 7489.

SPF vs DKIM vs DMARC: what does each one do?

SPF authorizes servers, DKIM proves integrity, and DMARC enforces alignment with the visible sender. No single one protects your domain, and each fails in a different way when used alone.

ProtocolWhat it checksWhat it provesMain weakness
SPFSending server IP vs DNS listServer is authorizedIgnores the visible From address; breaks on forwarding
DKIMCryptographic signature vs public keyMessage is signed and unalteredSigning domain may differ from From; breaks when mail is modified
DMARCSPF or DKIM alignment with FromVisible sender is authenticatedNeeds SPF or DKIM underneath; cannot stop look-alike domains
TLSEncrypted connectionTransit is privateSays nothing about sender identity
MTA-STSTLS enforcement policyTLS cannot be downgradedNeeds a valid HTTPS policy file

If you remember one line, make it this: DMARC is the only one of the three that protects the From address. That is why enforcement at p=reject is the goal, not the starting point.

How do TLS, STARTTLS and MTA-STS protect email in transit?

TLS, Transport Layer Security, encrypts the connection between mail servers so messages cannot be read or altered while they travel. STARTTLS is the SMTP command that upgrades a plain connection to an encrypted one, and opportunistic TLS means servers try encryption but fall back to plain text if it fails.

That fallback is the weakness. An attacker on the network path can strip the STARTTLS offer and force a downgrade to plain text, reading everything. MTA-STS closes that hole: it publishes a policy, fetched over HTTPS, telling senders to require TLS for your domain and to refuse delivery rather than send unencrypted.

TLS-RPT, TLS Reporting, is the companion that asks receivers to report TLS failures back to you, so you can spot misconfiguration or downgrade attempts. Together, MTA-STS and TLS-RPT are the transport equivalent of DMARC reporting: policy plus visibility.

Use TLS 1.2 as a minimum and TLS 1.3 where possible, and disable older versions. Note that TLS protects the journey only — once a message is stored on a server, it is only as safe as that server. End-to-end encryption is a separate layer, covered below.

What about S/MIME, PGP, ARC and BIMI?

S/MIME and PGP encrypt and sign individual messages end to end, so only the intended recipient can read them and the recipient can verify the sender's certificate or key. They protect message content, not the domain, and they need key or certificate management that most small teams find heavy.

ARC, Authenticated Received Chain, solves the forwarding problem. When a mailing list or security gateway changes a message and breaks DKIM, it adds a signed chain recording the authentication results it saw, so the next receiver can still trust the original verdict.

BIMI, Brand Indicators for Message Identification, is the visible reward for doing all of this: once DMARC is enforced, a BIMI record lets your verified logo appear beside your messages in supporting inboxes. It requires a properly formatted SVG logo and, in many inboxes, a verified mark certificate.

For most small businesses, the priority order is clear: SPF, DKIM and DMARC first, then MTA-STS, then ARC if you run lists, and S/MIME only for genuinely sensitive one-to-one mail.

Defense in depth for email 1. Authenticate the sender — SPF + DKIM + DMARC at p=reject 2. Encrypt the journey — TLS, STARTTLS, MTA-STS + TLS-RPT 3. Preserve trust through forwarders — ARC 4. Encrypt the message itself — S/MIME or PGP for sensitive mail Each layer catches what the one above misses. No layer replaces the others.
Four layers of email protection, in the order to build them. Illustration by Cysoro.

How do I set up email security protocols?

Set them up in this order, and do not skip the monitoring step between each move. Rushing to enforcement is how legitimate mail gets blocked.

  1. Inventory every sender. List your mail provider, CRM, marketing tool, helpdesk, invoicing system and any app that sends mail as your domain.
  2. Publish SPF. Add a TXT record listing all authorized senders, and keep it under 10 DNS lookups.
  3. Enable DKIM. Turn it on in each sending service and publish the public keys it gives you in DNS.
  4. Publish DMARC at p=none with a reporting address. Collect aggregate reports for two to four weeks.
  5. Fix failures. Add missing senders to SPF, enable DKIM where it is off, and fix alignment problems.
  6. Move to p=quarantine, then p=reject. Leave a few weeks between steps and watch the reports.
  7. Add MTA-STS and TLS-RPT. Publish the policy over HTTPS and set a reporting address.

Check your progress with our free DMARC checker.

For a deeper look at one message, paste its headers into the email header analyzer, which shows whether SPF, DKIM and DMARC passed. Google's own setup guide explains the same sequence — SPF and DKIM first, then DMARC — in Google Workspace Help.

What are the common mistakes with email security protocols?

The most common mistakes are easy to make and easy to avoid once you know them. The first is publishing DMARC at p=reject on day one, before you know all your legitimate senders, and blocking your own invoices and password resets.

The second is an SPF record with too many lookups, usually from including several providers that each include others. SPF fails permanently after 10 lookups, so flatten the record or use a dedicated sending subdomain for bulk mail.

The third is forgetting a sender: the marketing tool, the website contact form, the printer that scans to email. Every one of them needs SPF or DKIM, or DMARC will fail it.

The fourth is assuming the protocols stop phishing. They stop exact-domain spoofing. They do not stop look-alike domains, hacked accounts or messages sent from a legitimate service the attacker signed up for. Those need domain monitoring, phishing-resistant MFA and the verification habits in our spear phishing guide.

The bottom line

Email security is a set of protocols, not a single switch. SPF authorizes your servers, DKIM signs your messages, DMARC enforces both against the address people see, and TLS with MTA-STS keeps the journey private.

Start today: publish SPF and DKIM, put DMARC at p=none with reporting, and work toward p=reject. You can check where your domain stands in seconds with the free email security score tool.

Frequently asked questions

What are the main email security protocols?

The main ones are SPF, DKIM and DMARC for sender authentication, TLS and STARTTLS for encryption in transit, MTA-STS and TLS-RPT for enforcing that encryption, ARC for forwarded mail, and S/MIME or PGP for encrypting and signing individual messages.

What is the difference between SPF, DKIM and DMARC?

SPF checks whether the sending server is allowed to send for a domain. DKIM checks whether the message was signed by the domain and unchanged. DMARC checks whether the SPF or DKIM result matches the domain in the visible From address, and tells receivers to accept, quarantine or reject failures.

Is DMARC enough on its own?

No. DMARC needs SPF or DKIM to work, because it only adds alignment and policy on top of their results. A DMARC record with no SPF or DKIM record behind it cannot authenticate anything.

Does TLS stop phishing emails?

No. TLS encrypts the connection between mail servers so messages cannot be read or changed in transit, but it says nothing about who sent the message. A phishing email can travel over a fully encrypted TLS connection.

What is MTA-STS and do I need it?

MTA-STS is a policy, published in DNS and fetched over HTTPS, that tells sending servers to require TLS when delivering mail to your domain and to refuse delivery rather than fall back to plain text. It protects against downgrade attacks and is a useful step after DMARC enforcement.

What is ARC in email security?

ARC, Authenticated Received Chain, preserves authentication results when a legitimate intermediary such as a mailing list changes a message and breaks its DKIM signature. The intermediary signs a record of what it saw, so the next receiver can still trust the original result.

Do email security protocols protect against look-alike domains?

No. SPF, DKIM and DMARC protect your exact domain, but an attacker can register a similar-looking domain and pass all three checks for that domain. You also need look-alike domain monitoring and staff training.

How do I check my email security protocols?

Use a free checker to look up your domain's SPF, DKIM and DMARC records, then read your DMARC aggregate reports. Start at p=none to collect data, fix legitimate senders that fail, and move to p=quarantine and then p=reject.

Sources

  1. IETF — RFC 7208: Sender Policy Framework (SPF)
  2. IETF — RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
  3. IETF — RFC 7489: Domain-based Message Authentication, Reporting, and Conformance (DMARC)
  4. Google Workspace Help — Set up DMARC
  5. Microsoft Learn — SPF, DKIM, DMARC and Exchange Online
  6. CISA — Microsoft Exchange Online Secure Configuration Baseline
  7. FBI Internet Crime Complaint Center — 2025 IC3 Annual Report
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against IETF RFCs 7208, 6376 and 7489, Google Workspace Help and Microsoft Learn setup guides, CISA's Exchange Online baseline and the FBI IC3 2025 report.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free