SPF, DKIM, DMARC (Bonus: BIMI) — Setup from Scratch, Common Mistakes, and the Right Way
11 minutes reading time

SPF, DKIM, DMARC (Bonus: BIMI) — Setup from Scratch, Common Mistakes, and the Right Way

SPF/DKIM/DMARC setup, common mistakes and the 2026 standard DMARCbis (RFC 9989) — the AI era and bonus BIMI.

A single observation prompted this guide: For years we've reviewed the DNS records of hundreds of organizations, and the most common picture is this — SPF exists but has blown past the 10-lookup limit; DKIM is "set up" but forgotten on a single selector; and the DMARC record has been sitting at p=none for years while nobody reads the reports. This guide covers a setup even a complete beginner can follow, alongside the mistakes that make an experienced admin go check their own records.

 

2026 update — why this guide changed: In May 2026 DMARC finally became a formal internet standard (Standards Track) under the name DMARCbis: RFC 9989, 9990 and 9991 replaced the old RFC 7489 from 2015. The logic of setup is the same, but the tags, organizational-domain discovery and reporting changed. Below you'll find both the classic setup and what the new standard brings.

 


 

1. Three Records, One Purpose: "Did You Really Send This Mail?"

 

SPF, DKIM and DMARC aren't alternatives to each other — they're three links in one chain, and all live in DNS:

  • SPF (Sender Policy Framework) declares which servers may send mail on behalf of your domain.
  • DKIM (DomainKeys Identified Mail) cryptographically signs each message; if the content wasn't altered in transit, the signature holds.
  • DMARC (Domain-based Message Authentication, Reporting & Conformance) looks at the SPF/DKIM results, decides what to do (accept / quarantine / reject) and sends you reports.

 

The critical detail is alignment: for DMARC to pass, it isn't enough that SPF or DKIM merely "passes"; the authenticated domain must be aligned with the From: domain the recipient sees. That From: field is exactly what an attacker impersonates in the real world.

 

2. SPF — How to Set It Up

 

The steps are simple, but order matters:

  1. Take inventory. Who sends mail in your name? Microsoft 365/Google Workspace, marketing tools (Mailchimp, Brevo…), CRM, ERP, invoicing, apps on your servers… List them all.
  2. Write a single TXT record. It starts with v=spf1 and adds one mechanism per service (include:, ip4:, a, mx).
  3. End with -all. This means "reject anyone not on this list." Use ~all (softfail) only during transition; the target is -all.

 

Most common mistakes:

  • Exceeding the 10 DNS-lookup limit. Mechanisms like include, a, mx are capped at 10 DNS queries total. Exceed it and SPF returns permerror and fails silently. A handful of cloud services burns through this fast.
  • Multiple SPF records. A domain must have exactly one SPF TXT record; two breaks validation.
  • Exposing your whole infrastructure. A long SPF hands an attacker a map of every system you use.

 

The right way — managed SPF. Live example: kinetikbilisim.net uses a single managed include (include:...checkpoint-spf.com) in its SPF. That keeps the lookup count low, hides the infrastructure, and means you don't hand-edit SPF every time a new service is added. Managed SPF structurally removes the 10-lookup problem.

 

3. DKIM — How to Set It Up

 

  1. Enable DKIM in your mail platform (Microsoft 365, Google Workspace, your sending service).
  2. Add the selector records the platform gives you to DNS (usually selector._domainkey CNAME/TXT).
  3. Verify signing works: an outbound message's headers should show DKIM-Signature and dkim=pass.

 

Most common mistakes: never rotating the key for years; enabling it only on the main platform and leaving third-party senders (marketing tool, invoicing) unsigned — they fail DKIM, and DMARC is left relying on SPF alone.

 

The right way — managed DKIM. Delegate the _domainkey subdomain to a managed provider and key rotation plus signing of new services becomes automatic.

 

4. DMARC — How to Set It Up (And the Most Critical Mistake Is Here)

 

DMARC's golden rule: start by monitoring, tighten gradually.

  1. Monitoring mode: v=DMARC1; p=none; rua=mailto:[email protected]. It rejects no one, only gathers reports.
  2. Read reports for 2–4 weeks. Who sends in your name? Fix the legitimate services that fail SPF/DKIM.
  3. Tighten: first p=quarantine, then, once you're confident, p=reject.

 

The most critical mistake — and the most common: sending the reports (rua/ruf) to a person's mailbox or a generic admin address. Two harms at once: (1) each report is a compressed XML no human reads, so it rots in the inbox; (2) the rua address is public in DNS — you hand your corporate contact and identity to attackers. Have systems read the XML, not humans. DMARC's value isn't in the report but in its processing. Route reports to a dedicated DMARC management service like Cloudflare or Check Point.

 

What Changed with DMARCbis (RFC 9989)?

 

The old RFC 7489 was an informational document; DMARCbis is now formal Standards Track. Search behavior shows why this shift is topical now: in Google Trends worldwide data for January 2024–August 2026, rising queries include "dmarc rfc" up 750%, "dkim vs dmarc" up 300%, and "dmarc authentication" and "dmarc service" up 250%. The changes you actually need to know:

  • The Public Suffix List (PSL) is gone; the "DNS Tree Walk" arrived. Which domain is the organizational domain is now determined not by a static list called the PSL but by the "Tree Walk" algorithm that queries step by step up the DNS tree. In some edge cases the result can differ from old implementations; the safest path is to publish an explicit DMARC record for every sending domain you use.
  • New tags: np (policy for non-existent subdomains — np=reject shuts down forged-subdomain impersonation), psd (flags a domain as a public suffix) and t (a testing flag, t=y).
  • Removed tags: pct (percentage), rf and ri. Gradual rollout no longer means "apply to 10% of messages"; instead there's a distinction between monitoring (t=y) and enforcement. In practice, whatever pct=0 used to do, t=y now does.
  • Reporting split in two: aggregate reports are defined in RFC 9990, failure reports in RFC 9991.
  • Important nuance — not everyone should publish p=reject. RFC 9989 does not recommend p=reject for domains whose general users send everyday mail: indirect flows like mailing lists, forwarders and role addresses break. If you do publish p=reject, don't rely on SPF alone — always apply a valid DKIM signature, because SPF breaks on forwarding while DKIM survives. We cover how to preserve identity across forwarding in our ARC article.

 

5. Why Now: Authentication Became Mandatory, and the AI Era

 

Authentication is no longer "nice to have" — it's the price of admission. Since 2024, Gmail and Yahoo require SPF and DKIM from bulk senders; Microsoft is on the same path. An unauthenticated sender now gets: 550 5.7.9 ... sender is unauthenticated. Without SPF/DKIM/DMARC, your mail doesn't go to spam — it goes straight to rejection.

 

The second, bigger pressure is artificial intelligence — and this time with concrete numbers. In Google Trends worldwide data for January 2024–August 2026, rising queries are led by "ai impersonation" up 2,000%, followed by "ai voice impersonation" up 800%, "brand impersonation" up 450% and "business email compromise (BEC)" up 190%. Searches for Gmail and Yahoo's 550 5.7.9 ... sender is unauthenticated error sit at "Breakout" (off-the-scale) level. In other words, both the attack and the authentication mandate that answers it are climbing at once.

 

Here we should be honest: SPF/DKIM/DMARC stop the exact impersonation of your domain (exact-domain spoofing) — this is mandatory and non-negotiable. But the AI-era attack often uses not your domain but a look-alike one, a compromised real account (ATO), or your supplier's mailbox. These "pass" authentication because they aren't technically forged. That layer needs behavioral, AI-driven analysis — which is exactly where Check Point Email Security operates. Authentication lays the ground; behavioral AI builds on top.

 

6. DNSSEC — Protecting the Records Themselves

 

SPF, DKIM and DMARC all live in DNS. So what happens if an attacker alters DNS answers in transit or poisons a resolver's cache (cache poisoning)? Then even the most careful SPF/DKIM/DMARC is built on top of a forged reply. DNSSEC (DNS Security Extensions) cryptographically signs DNS answers; the resolver verifies that the record really came from the domain owner and wasn't changed in transit.

 

Because DMARCbis's new DNS Tree Walk algorithm finds the domain boundary through a series of DNS queries, the integrity of those queries now matters even more. DNSSEC doesn't replace authentication; it makes its foundation — DNS itself — trustworthy. Note: your DMARC, SPF and DKIM records can be signed with DNSSEC just like any other record; if you're building the authentication chain, signing the DNS layer beneath it is the natural complement.

 

7. Bonus: BIMI — Your Logo in the Inbox

 

BIMI (Brand Indicators for Message Identification) shows your brand's logo as the sender avatar in the inbox — but only if your authentication is solid. Requirements: DMARC at least at p=quarantine, a properly formatted SVG logo, and for providers like Gmail a Verified Mark Certificate (VMC). BIMI isn't a security control; it's the visible reward of authentication done right — and a strong business case for moving DMARC to reject.

 

8. One Step Further: Domains That Send No Mail at All

 

This guide is for domains that send mail. But what about your organization's dozens of silent domains — parked names, old brands? They're lures for attackers too. A domain that neither sends nor receives must be sealed with the trio of null MX (RFC 7505) + SPF -all + DMARC p=reject. We covered this little-known but critical topic in a separate article: Null MX (RFC 7505): A Domain That Accepts No Mail.

 


What the measurement says: in Mailskop's October 2026 email authentication report card, 6 in 10 of 26,135 domains had no DMARC policy that stops fake email; 26.8% of domains under one year old enforce DMARC, versus 43.0% of those over 20. Publishing v=spf1 -all and p=reject on new or non-sending domains on day one is the cheapest fix for that picture.

 

Frequently Asked Questions

 

Which comes first — SPF, DKIM or DMARC?
First SPF and DKIM (the layers that prove identity), then DMARC (the layer that decides based on that proof) in p=none monitoring mode. Once the reports are clear, you tighten DMARC.

 

What is DMARCbis?
It's the new standard version of DMARC published in May 2026: RFC 9989 (core), RFC 9990 (aggregate reporting) and RFC 9991 (failure reporting). It replaces the old RFC 7489, uses a DNS Tree Walk instead of the Public Suffix List, adds the np/psd/t tags and removes pct.

 

Can I start straight at p=reject?
You shouldn't. Jumping to reject without monitoring (p=none) will reject mail from your legitimate-but-misconfigured senders too. Also, for domains that send general user mail, RFC 9989 does not recommend p=reject; at minimum a valid DKIM signature is required.

 

Is DNSSEC required?
Not mandatory, but strongly recommended. Because SPF/DKIM/DMARC all live in DNS, DNSSEC secures the foundation of the authentication chain by preventing those records from being altered in transit.

 

Do SPF/DKIM/DMARC stop every attack?
No. They stop exact impersonation of your domain. Look-alike domains, compromised accounts and AI-driven social engineering need a behavioral security layer.

 

How do I test that my records are correct?
Open a message with "show original" and check the spf=pass, dkim=pass, dmarc=pass lines; or run your domain through mailskop.com for a SPF/DKIM/DMARC/BIMI/MTA-STS report card in seconds. To pull the report from your own script or AI assistant, Mailskop has a keyless API and an MCP connector: https://mailskop.com/en/check/example.com?format=json returns it as JSON, ?format=md as Markdown. Free; no sign-up, no key.

 


 

What to Do Next

 

If you have five minutes: look at your domain's SPF record (lookup count? is it -all?) and your _dmarc record (is it at p=none? where does rua go?). The fastest path is to type your domain into mailskop.com and see your report card. If any of the answers bother you:

  1. Free posture audit: your SPF/DKIM/DMARC/BIMI report card, with lookup analysis, rua/ruf exposure, DMARCbis conformance and look-alike domain risk.
  2. Managed rollout: setup of SPF Management, DKIM Management and DMARC Management for your organization, with a gradual p=none-to-reject roadmap that's DMARCbis-compliant.

 

Schedule an intro meeting

 


 

Related Reading

 

 


 

About this article: It is the foundational piece of our Mail Technologies Series, read alongside Null MX (RFC 7505), MTA-STS & TLS-RPT and ARC. Kinetik Bilişim is the Türkiye partner of Check Point Software Technologies at the Advanced Partner 2026 level, holding Email, Endpoint & Browser, Mobile, and SASE Solution Specialization accreditations. The author, Kemal Özleyen, is a cybersecurity engineer certified as a Check Point Workspace Security Expert. The kinetikbilisim.net examples in this article are public DNS records.