Most explanations of email authentication list the three acronyms, define each one, and leave you to work out why you need all of them. The short version is this: each one checks a different thing, and only DMARC checks the thing your reader actually sees.
That last part is the whole reason DMARC exists, and it is why a domain with perfect SPF and DKIM can still be spoofed.
Two "from" addresses, and why that matters
Every email carries two sender addresses.
- The envelope sender (also called the Return-Path or
MAIL FROM) is used by servers. It is where bounces go. Your reader never sees it. - The header From is the address shown in the inbox, next to the subject line. It is the one people trust.
They are often different. When you send a newsletter through a sending platform, the envelope sender is frequently something like bounces+12345@mail.sendingplatform.example, while the header From says news@yourdomain.com. Keep these two addresses in mind; everything below hinges on which one a check looks at.
SPF checks the server, against the envelope sender
SPF (Sender Policy Framework, RFC 7208) answers one question: is this server allowed to send mail for the envelope sender's domain?
You publish a TXT record on your domain listing the servers that may send for it:
v=spf1 include:_spf.google.com include:sendgrid.net ~all
When a message arrives, the receiving server takes the domain from the envelope sender, fetches that record, and checks whether the connecting IP address is on the list.
What SPF does not do:
- It does not look at the header From. A spammer can put your address in the From line and use their own domain in the envelope. SPF will pass, for their domain.
- It does not survive forwarding. When a university or a mailing list forwards your message, the forwarder's server is now connecting, and it is not on your list.
SPF also has a hard limit of 10 DNS lookups, which breaks more real-world records than any other mistake. There is a separate guide on the 10-lookup limit because it deserves one.
You can see your current record, and the lookup count, in the SPF checker.
DKIM checks the message, against the signing domain
DKIM (DomainKeys Identified Mail, RFC 6376) answers a different question: was this message signed by a domain, and has it been changed since?
The sending server signs selected headers and the body with a private key, and adds a DKIM-Signature header. Two tags in that header matter most:
d=is the signing domain.s=is the selector, which tells the receiver where to find the public key:selector._domainkey.domain.
The receiver fetches the public key from DNS and verifies the signature. If someone altered the subject or the body in transit, verification fails.
DKIM's strengths are the reverse of SPF's weaknesses. It survives plain forwarding, because the signature travels inside the message. But on its own it has the same blind spot: the d= domain does not have to match the From address. A sending platform can sign with its own domain, and DKIM still passes.
Use 2048-bit RSA keys. RFC 8301 set 1024 bits as the minimum receivers should accept, and anything shorter is ignored. The DKIM checker decodes the key and reports its real length.
DMARC checks that the domains line up with the From address
DMARC (RFC 7489) is the piece that ties the other two to what the reader sees. It asks: did SPF or DKIM pass for a domain that matches the header From? That matching is called alignment.
A message passes DMARC when at least one of these is true:
| Check | Passes when | And aligns when |
|---|---|---|
| SPF | the sending IP is listed for the envelope sender's domain | the envelope sender's domain matches the From domain |
| DKIM | a signature verifies | that signature's d= domain matches the From domain |
By default, alignment is relaxed: mail.yourdomain.com counts as matching yourdomain.com, because they share an organizational domain. Strict alignment (aspf=s, adkim=s) requires an exact match and is rarely worth the trouble.
DMARC also tells receivers what to do when a message fails, through the p= tag:
p=none: deliver it anyway, but send me reports.p=quarantine: put it in spam.p=reject: refuse it.
And it asks receivers to send you daily aggregate reports (rua=), which list every server that sent mail claiming to be you. Those reports are how you find the forgotten CRM, the billing system and the old marketing tool before you tighten the policy. The DMARC rollout guide walks through that process.
A worked example
Here is a newsletter sent through a platform, with the platform's defaults:
- Header From:
news@northwind.example - Envelope sender:
bounce@mail.platform.example - DKIM signature:
d=platform.example
SPF passes (the platform's server is allowed to send for platform.example). DKIM passes (the platform's signature is valid). DMARC fails, because neither of those domains is northwind.example.
The fix is the step every sending platform documents and many teams skip: set up a custom sending domain. Typically you add a CNAME or two so the platform can sign with d=northwind.example, and optionally use a bounce subdomain like bounce.northwind.example. Now DKIM aligns, DMARC passes, and you can enforce a policy without losing your own newsletter.
Why you need all three
- SPF alone protects the envelope, which nobody looks at, and breaks on forwarding.
- DKIM alone survives forwarding but says nothing about the From line.
- DMARC alone is not possible: it needs at least one of the other two to pass with alignment.
In practice, DKIM does most of the work for DMARC because it survives forwarding, and SPF is the backup. Set up both, align at least DKIM, then use DMARC to enforce it.
Checking your own domain
- Run the deliverability checker on the domain in your From address. It checks SPF, DKIM, DMARC and MX together.
- Send yourself a message from each service that mails as your domain, open the original, and paste the headers into the header analyzer. It reads the
Authentication-Resultsline and tells you which checks aligned with your From address. - Fix whatever does not align before you change the DMARC policy.
Authentication will not put a bad email in the inbox. What it does is make sure a good one is recognised as yours, and that nobody else can borrow your name.