The short answer
SPF, DKIM and DMARC are three DNS records that let a receiving mail server confirm an email came from your domain. SPF lists the servers allowed to send it. DKIM adds a signature to every message. DMARC checks that one of the two matches your From address and says what to do when neither does.
Each of the three is a short line of text published under your domain name, and each answers a different question about a message. Below is one real record of each, in the form Google and Microsoft tell their customers to publish, read a piece at a time.
| Record | What it proves | What it does not prove |
|---|---|---|
| SPF | The server that delivered the message is on your list | That the From address the reader sees is yours |
| DKIM | A named domain signed the message, and the signed parts were not changed on the way | That the signing domain is the one in the From address |
| DMARC | SPF or DKIM passed for the same domain as the From address | That the message is wanted, safe or honest |
Check your records
Check which of the three your domain has
Type your domain and read your own records beside the explanations below. Nothing is saved.
SPF lists the servers allowed to send your mail
An SPF record is a TXT record on the domain itself. For a business whose only sender is Google Workspace, Google's setup page gives this one: v=spf1 include:_spf.google.com ~all
- v=spf1 marks the line as an SPF record. A domain may have only one. The standard, RFC 7208, says a check that finds two returns an error.
- include:_spf.google.com means "also accept the servers on Google's list." Microsoft 365 uses include:spf.protection.outlook.com. Every other tool that sends as you, such as a newsletter service, adds its own include to the same record.
- ~all covers every server not listed. The tilde is a soft fail, which the standard calls a weak statement that the server is "probably not authorized." A minus sign, -all, is a flat statement that it is not. Google recommends ~all. Microsoft recommends -all for Microsoft 365 domains that also use DKIM and DMARC.
The catch is which address SPF checks. It is the hidden return address used between mail servers (the standard calls it MAIL FROM), not the From line your customer reads. A forger can pass SPF on a domain of their own and still show your name in From. SPF also fails when a message is forwarded, because the forwarding server is not on your list.
DKIM signs every message with a key your provider holds
Your mail provider keeps a private key and adds a signature to each outgoing message. The matching public key sits in DNS so that anyone can check the signature. On a Google Workspace domain with the default settings, the record lives at google._domainkey.yourbusiness.com and looks like this, with the key shortened: v=DKIM1; k=rsa; p=MIIBIjANBgkqh...
- google is the selector, the name of this one key. Selectors exist so a domain can hold several keys at once, one for each service that sends its mail. Google's default selector is google, and an admin can change it. Microsoft 365 always uses selector1 and selector2.
- v=DKIM1 marks the line as a DKIM key, and k=rsa names the type of key.
- p= is the public key itself. The standard, RFC 6376, says an empty p= means the key has been revoked.
Every signed message carries a DKIM-Signature header. Inside it, d= names the domain that signed and s= names the selector, which tells the receiving server exactly where to fetch the key. A valid signature shows that domain took responsibility for the message and that the body and the signed headers arrived unchanged. It is a signature, not encryption: the message is still readable in transit.
Two limits matter. RFC 6376 does not require the signing domain to match the From address, so a newsletter tool can sign with its own domain and pass. And DKIM is not always on: Microsoft's documentation says no DKIM signing occurs for a custom domain until an admin sets it up.
DMARC ties both checks to the address your customer sees
DMARC closes the gap the other two leave open. Its record is a TXT record at _dmarc.yourbusiness.com. Google's example of a first one is: v=DMARC1; p=none; rua=mailto:dmarc@yourbusiness.com
- v=DMARC1 must come first.
- p= is the policy: what you ask receivers to do with mail that fails. The choices are none, quarantine and reject, and which DMARC policy to use depends on how sure you are of your own senders.
- rua= is the address where receiving servers send summary reports of who is sending as your domain.
A message passes DMARC when SPF or DKIM passes and the domain that passed lines up with the domain in the From address. By default, the same main domain is enough, so mail.yourbusiness.com lines up with yourbusiness.com. This matching, called alignment, is the part that stops a stranger's domain from vouching for your name.
Why you want all three, not one
DMARC only needs one of the two checks to pass, but each fails in a different place. Forwarding breaks SPF. Microsoft's guidance is that a DKIM signature survives forwarding as long as the message is not altered. With both in place, one usually still passes. RFC 9989 goes further: a domain that publishes p=reject must not rely on SPF alone.
Passing all three proves where a message came from and nothing else. A spammer can publish perfect records on a domain they own. If your records pass and mail still misses the inbox, the cause is elsewhere, and why business emails go to spam covers reputation and the sender rules at Gmail, Yahoo and Outlook.
See which of the three your domain has
Our Email Checker reads these records for any domain. You can also check SPF, DKIM and DMARC by hand with one command for each.
For SPF it follows every include and counts the lookups against the limit of 10. For DMARC it reads the policy and whether a reporting address exists. DKIM is harder, because a key only answers when asked for by its exact selector and nobody can list a domain's selectors. The checker asks for the names your provider documents (google for Google Workspace, selector1 and selector2 for Microsoft 365), then 18 common ones used by hosting panels and marketing platforms: default, dkim, mail, smtp, s1, s2, k1, k2, k3, mandrill, sendgrid, pm, hs1, hs2, mailjet, sib, zendesk1 and everlytickey1.
A key under a custom selector name will not be found, and the report says "we could not find" a key instead of claiming there is none. Only for Microsoft 365, Proton Mail and Fastmail, where the provider fixes the selector names, does it report DKIM as not set up. It reads DNS only. It sends no message and opens no mailbox, so it cannot tell you whether a real email from your newsletter tool passes. It checks your main domain, not a subdomain's own records. The summary is free, and the full report with the records asks for your email address.
The records are edited wherever your DNS is kept. If you are not sure which company that is, start by finding who runs your email and who manages your domain's DNS.
Check your own domain
The free Email Checker reads your domain's public records and shows your email provider and whether SPF, DKIM and DMARC are in place.
Get help from Venbit
The Venbit Team
Web design & SEO, Mill Creek, WA
Venbit is a web design, SEO, and digital marketing studio in Mill Creek, Washington. Since 2011 we've designed, built, and ranked small-business websites for clients across the Puget Sound and around the country, so the numbers and advice here come from real projects, not a content mill.
Sources
- RFC 7208: Sender Policy Framework (one record per domain, qualifiers, the MAIL FROM identity)
- RFC 6376: DomainKeys Identified Mail (selectors, key record tags, the DKIM-Signature header)
- RFC 9989: DMARC, May 2026 (obsoletes RFC 7489; policy tags, alignment, section 7.4 on p=reject and SPF)
- RFC 7489: the original DMARC document, March 2015
- Google Workspace Admin Help: Set up SPF (the Google-only record, ~all recommended)
- Google Workspace Admin Help: Set up DKIM (default selector google)
- Google Workspace Admin Help: Recommended DMARC rollout (example records)
- Microsoft Learn: Set up SPF for your Microsoft 365 domain (-all recommended)
- Microsoft Learn: How to use DKIM for email in your custom domain (selector1 and selector2, no signing until set up)
- Microsoft Learn: Set up DMARC to validate email in Microsoft 365 (alignment, forwarding)

