Skip to the content
Start free

SPF, DKIM and DMARC explained: why your emails go to spam

SPF, DKIM and DMARC are three DNS records that prove email from your domain is genuine. SPF lists the servers allowed to send it, DKIM adds a signature, and DMARC tells receivers what to do when a message fails both. If your quotes and invoices keep landing in junk, missing or broken records are a common cause, and all three are free to set up.

What does each record do? #

Record Question it answers Where it lives Standard
SPF Was this sent from a server you allow? TXT record on your domain, starting v=spf1 RFC 7208 (2014)
DKIM Did a domain sign this, and is it unchanged? TXT record at selector._domainkey RFC 6376 (2011)
DMARC Does a passing domain match the From address, and what if not? TXT record at _dmarc RFC 9989 (May 2026)

All three live in your DNS, next to your MX records, which say where mail for your domain is delivered.

Why do you need all three? #

Each one alone has a gap. SPF checks the hidden MAIL FROM address, not the From address people see, and it fails when mail is forwarded. DKIM proves a domain signed the message, but a spoofer can simply not sign. DMARC closes both gaps. A message passes DMARC when SPF or DKIM passes for a domain that lines up with the visible From address. This is called alignment.

How do they work together? #

  1. Your mail leaves through a service you have listed in SPF and set up to sign with DKIM.
  2. The receiver checks SPF against the sending server’s IP address.
  3. It checks the DKIM signature against your public key.
  4. It checks alignment: does the SPF or DKIM domain match the From domain?
  5. If not, it reads your DMARC policy: none, quarantine or reject.
  6. It sends a daily report to the address in your DMARC record.

What do Gmail, Yahoo and Outlook require? #

Rule Gmail Yahoo Outlook
All senders SPF or DKIM SPF or DKIM Not stated
Bulk senders Over 5,000 a day: SPF and DKIM SPF and DKIM Over 5,000 a day: SPF and DKIM must pass
DMARC p=none allowed, aligned At least p=none, must pass At least p=none, aligned
Spam rate Below 0.3% Below 0.3% Not stated
Unsubscribe One-click, plus a visible link One-click, honoured within 2 days Easy, visible opt-out (recommended)
In force 1 February 2024 From February 2024 5 May 2025 (Junk)

Sources: Google’s sender guidelines, Yahoo’s sender best practices and Microsoft’s April 2025 post. Google aims for spam rates below 0.10%. Google’s FAQ says it began ramping up enforcement in November 2025, with temporary and permanent rejections.

These records are read by mail servers, not by search crawlers such as Googlebot. The link is your domain. The name that ranks your landing pages is the name on your email. A visit from organic search often ends in an email: a quote, a booking, an order confirmation. If it lands in spam, the visit is wasted and your conversion rate looks worse than it is.

Why does this matter for AI answers? #

An AI assistant that recommends you often ends with “email them”. An AI agent booking for someone waits for an emailed confirmation. Mail that fails never reaches the person or the assistant reading their inbox. Fakes written with generative AI are harder to spot by their wording, and spoofed mail that gets through can carry hidden instructions, a form of prompt injection. DMARC at reject keeps strangers from sending as your name.

A worked example: the three records #

A law firm at example.com sends everyday email through Google Workspace and its newsletter through Mailchimp. Its three TXT records, in the formats Google’s help pages show, look like this:

Record Host Value
SPF example.com v=spf1 include:_spf.google.com include:servers.mcsv.net ~all
DKIM google._domainkey v=DKIM1; k=rsa; p= followed by the key Google generates
DMARC _dmarc.example.com v=DMARC1; p=none; rua=mailto:postmaster@example.com, mailto:dmarc@example.com; pct=100; adkim=s; aspf=s

google is Google’s default DKIM selector, and Google says to choose a 2048-bit key if your DNS provider supports it. Each other service that sends as you, such as the newsletter service, needs DKIM switched on in its own settings too, signing with your domain.

Google’s DMARC example still includes pct=100. RFC 9989 removed the pct tag, and receivers that follow it ignore unknown tags, so the record still works. Written the RFC 9989 way, the same record is:

v=DMARC1; p=none; rua=mailto:dmarc@example.com; adkim=s; aspf=s

adkim=s and aspf=s ask for strict alignment, where names must match exactly. Relaxed alignment, the default, accepts subdomains of the same domain, and RFC 9989 says nearly all domain owners find it enough.

What does the DMARC policy do? #

Policy What receivers do with failing mail, in Google’s words
p=none Take no action and deliver it; failures appear in the daily reports
p=quarantine Mark it as spam and send it to the spam folder
p=reject Reject it; the sender usually gets a bounce

To test a stricter policy, RFC 9989 adds t=y, which asks receivers to apply the policy one level lower. Google’s help instead suggests raising pct step by step.

What is the safe order? #

  1. SPF first. List every service that sends as you, in one record.
  2. DKIM next. Switch it on in each service. Google says both can take up to 48 hours to start working.
  3. Wait. Google advises waiting 48 hours after SPF and DKIM before adding DMARC.
  4. DMARC at p=none with a rua address. The NCSC says reports arrive within 24 hours, and to watch them for at least 2 weeks.
  5. Fix every failing sender the reports show.
  6. Tighten. RFC 9989 suggests at least a month at none, then as long at quarantine, before reject. The NCSC’s goal is reject on all your domains.

Common mistakes #

  • Two SPF records. RFC 7208 allows one; two give “permerror”.
  • More than 10 look-ups in SPF. Also “permerror”.
  • A service signing with its own domain. DKIM passes but does not line up, so DMARC fails.
  • A test site sending as you. A staging site that emails from your domain without SPF or DKIM fails, and fills your reports with noise.
  • DMARC with no rua. No reports, so p=none teaches you nothing.
  • p=reject where staff post to mailing lists. RFC 9989 says such domains “SHOULD NOT” publish it.
  • Spare domains left open. The NCSC’s parked domains advice: v=spf1 -all, v=DMARC1;p=reject;, an empty DKIM key and a null MX.

How to check it #

  1. Run your domain through the Email Security Checker. It checks SPF, DKIM, DMARC, MX, MTA-STS and BIMI live from the DNS in one go.
  2. See every record yourself with the DNS Lookup tool. Our DNS records entry explains each type.
  3. Read your SPF record in plain words with the SPF Record Explainer. There must be exactly one, with 10 look-ups or fewer.
  4. Decode each DKIM key with the DKIM Record Decoder: key type, strength, test flags and revoked keys.
  5. Build your DMARC record with the DMARC Record Generator, which adds a step-by-step rollout plan.
  6. After any change, check it has spread with the DNS Propagation Checker, which asks 11 public resolvers.
  7. In Gmail, open a message you sent, choose “Show original”, as Gmail Help describes, and paste the header into the Email Header Analyser. You want SPF, DKIM and DMARC all to pass.
  8. Find every service that sends as you. The tech stack checker shows the shop and other platforms behind your website; each one that emails customers needs SPF or DKIM for your domain.
  9. Gmail asks for valid forward and reverse DNS on sending servers. The Website IP Lookup shows an address’s reverse name; our reverse DNS bot check entry explains the matching, which Verify an AI Bot also uses.
  10. Check the one-click unsubscribe address answers with the HTTP header checker. RFC 8058 says it must be an HTTPS address, so check its certificate with the SSL checker.
  11. Check the links inside your emails with the redirect checker, which follows every redirect hop, and the landing page with the broken link checker, which finds broken links. The tracking checker shows every tracker that page loads.
  12. Watch for fake domains with the Lookalike Domain Checker. DMARC protects your exact domain, not names that only look like it, or your name on another top-level domain.

Single checks on each tool page: free, no account (2 a day). The full audit: a free account (sign in with an emailed code), 1 a day.

What URSY.com counts #

URSY.com counts visits to your website, not email. When someone clicks a link in your email, our cookie-free counter records a page view if their browser runs it. The counter never stores query strings, only the path, so UTM tags are not kept in URSY.com. See methodology.

Questions #

Which record should I set up first? #

SPF, then DKIM, then DMARC at p=none, as Google advises. Wait 48 hours before adding DMARC.

Do small senders need all three? #

Gmail and Yahoo ask every sender for SPF or DKIM. The full set is required above 5,000 messages a day to Gmail or Outlook, but it protects any domain from spoofing.

My SPF passes, so why does DMARC fail? #

Your service may send with its own bounce domain. SPF then passes for that domain, not yours. Ask the service to sign DKIM with your domain.

Is p=none enough? #

It meets the bulk sender rules, but the NCSC says it does not affect delivery. To stop spoofing you need quarantine or reject.

Do these records help my Google rankings? #

They are email records, read by mail servers, not crawlers. They help the emails that follow a visit arrive.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: SPF, DKIM and DMARC explained: why your emails go to spam. URSY. Updated 26 November 2026. https://ursy.com/wiki/spf-dkim-dmarc-explained/ · Section links

Tools for this

  • LiveVerify an AI Botis it really GPTBot? IP, published lists and user agentRun the check →
  • Livellms.txt Checker + Generatorcheck your llms.txt, or write llms.txt, llms-full.txt and llms.jsonRun the check →
  • LiveAI Training Opt-Out Checker + Generatorwhat each AI may do with your site, and the exact lines to change itRun the check →
  • LiveAI Consistency Checkerpage, schema, llms.txt and feeds state the same facts?Run the check →
  • LiveGoogle Snippet Previewtitle and description length in pixels (in browser)Run the check →
  • LiveImage SEO Checkeralt text, AVIF/WebP, sizes and licence markupRun the check →
  • ProAI competitor gapPrompts where rivals appear and you don'tIn URSY Pro →
  • ProAI fact accuracy monitorAI quoting your prices and facts wrong, with alertsIn URSY Pro →
  • ProBrand facts (Truth Spine)Your official facts, each with proof, for AI to readIn URSY Pro →

All 871 wiki entries, A to Z →