Skip to content
Pro lab

Email Authentication Lab

Everyone knows they should get to DMARC p=reject. Most teams stall at p=none, afraid of blocking their own invoices and payslips. Here you run the whole rollout for a fictional retailer: 6 domains, a CRM, an ESP, a helpdesk, a payroll vendor nobody listed, and an acquisition that closed this morning.

Work 23 tickets across six rounds, from SPF lookups to DKIM rotation, reading the aggregate reports, and ramping DMARC. Your teammate tells you straight when a call would bounce legitimate mail. You finish with the DNS records and a rollout plan you can adapt.

0s

This is the guided version: a yellow flash shows where to click and a bar says what to do. Switch to Free play any time.

GuidedPress Start the engagement to open the first ticket.

Engagement brief

Take Brightwater Goods from p=none to p=reject without losing a single legitimate email

Priya Raman · Senior messaging engineer

Hi, I am Priya. I have run mail for Brightwater for six years and I have been asking for this project for two of them. Leadership wants "DMARC reject" on a slide by the end of the quarter. I want it without bouncing a single payslip. I will walk you through the portfolio ticket by ticket and tell you straight when a call would break something.

The portfolio you are fixing

brightwater.exampleBrand

Main brand domain · DMARC p=none for two years, no rua, SPF at 12 DNS lookups.

news.brightwater.exampleMarketing

Marketing subdomain · ~40,000 marketing emails a day to personal Gmail and Yahoo accounts.

brightwater-store.exampleParked

Parked (old shop) · No SPF, no DMARC, a dangling MX. Being used in a gift-card phish.

brightwatergoods.exampleParked

Parked (defensive) · Registered, nothing published.

brightwtr.exampleParked

Parked (typo defence) · DMARC rua points at brightwater.example; no reports ever arrive.

kestrelgear.exampleAcquired

Acquired company (Kestrel Gear) · Two SPF records, p=none reporting to a deleted mailbox, a 1024-bit key from 2016.

Six rounds, escalating

  1. 1Inventory & parked domains · Lock down the domains that never send, and turn on reporting where you are blind.3 tickets
  2. 2SPF engineering · Includes, the 10-lookup limit, flattening, syntax traps and ~all vs -all.3 tickets
  3. 3DKIM keys & selectors · Selectors, key length, ESP delegation, rotation and what forwarding does to signatures.3 tickets
  4. 4Read the aggregate reports · Find the legitimate senders failing alignment before you tighten anything.2 tickets
  5. 5DMARC rollout · none → quarantine → reject, pct, sp, relaxed vs strict alignment, record syntax.3 tickets
  6. 6Acquisition, bulk senders, BIMI, MTA-STS · An acquired domain, the 2024 Google/Yahoo rules, logos and inbound TLS.2 tickets

Each ticket gives you exhibits (DNS records, message headers, aggregate-report summaries, raw report XML) and one to three decisions. A best call scores 2, a defensible one 1. Some calls would bounce your own mail: Priya flags those as self-inflicted outages. Clear 75% to pass. At the end you get the final DNS records and the rollout plan as a Markdown file.

SeedSame seed and level = same tickets, option order and report volumes.

Loading…

Sample report · illustrative data

Sample result: Email Authentication Lab debrief

Example engagement for a made-up company, working tickets on SPF, DKIM, DMARC reports and policy rollout across invented .example domains.

Example decisions from the ticket queue

TicketDecisionYour pickBest answerPoints
Parked domain used in a phishDMARC record for a domain that never sendsp=reject with sp=reject and a rua addressp=reject with sp=reject and a rua address2 / 2
Parked domain used in a phishSPF recordv=spf1 ~allv=spf1 -all1 / 2
Parked domain used in a phishMX still pointing at a dead hostDelete the MX recordNull MX ("MX 0 .")1 / 2
Brand domain stuck at p=none, no reportsFirst step before tighteningAdd a rua address and read the reports firstAdd a rua address and read the reports first2 / 2

What the debrief flags

  • A best call scores 2 points and a defensible one scores 1; some wrong picks are marked as self-inflicted outages because they would bounce your own legitimate mail.
  • Weakest topic is listed so you know where to practise next (inventory, SPF, DKIM, reports, DMARC rollout or the modern-sender round).
  • The common slips: confusing "passed" with "aligned", and forgetting that SPF checks the Return-Path rather than the From address.

Pass bar and export

The engagement passes at 75% of available points. The finished run exports as a Markdown record of the DNS changes you chose, in the order you made them.

Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.

TL;DR

What this lab is

5 points
  • An SPF, DKIM and DMARC rollout lab: 23 tickets and 43 decisions across six rounds, on a portfolio of 6 fictional domains.
  • The portfolio has a main brand domain, a marketing subdomain sending through an ESP, a CRM, a helpdesk and a payroll vendor, three parked domains, and an acquired company's domain.
  • You fix SPF past the 10-lookup limit, publish and rotate DKIM keys, read aggregate-report summaries and raw report XML to find legitimate senders failing alignment, and then ramp DMARC from p=none to p=reject.
  • The last round covers the 2024 Google and Yahoo bulk-sender rules, BIMI prerequisites, and MTA-STS with TLS-RPT.
  • A teammate reacts to every call, flags any that would bounce your own mail, and the debrief exports your final DNS records and rollout plan as Markdown. Runs are seeded, so a link with ?seed= replays the same run.

Frequently asked questions

What is the Email Authentication Lab?

A browser-based training lab where you take a fictional company from DMARC p=none to p=reject without losing legitimate mail. It has 23 tickets in six rounds: inventory and parked domains, SPF engineering, DKIM keys and selectors, aggregate report reading, the DMARC rollout, and a final round on an acquired domain, the Google and Yahoo bulk-sender rules, BIMI and MTA-STS. Each ticket shows DNS records, headers or report data and asks you to make one to three calls.

How does DMARC decide whether a message passes?

Under RFC 7489, DMARC passes when SPF or DKIM passes for a domain that aligns with the visible From domain. SPF authenticates the envelope sender (Return-Path), not the From. DKIM authenticates the d= signing domain. Relaxed alignment, the default, needs the same Organizational Domain; strict alignment needs an exact match. A valid SPF or DKIM result for a vendor's own domain does not count.

What is the SPF 10-lookup limit?

RFC 7208 limits SPF evaluation to 10 DNS-querying terms: include, a, mx, ptr, exists and the redirect modifier. ip4, ip6 and all do not count. Going over returns permerror, which DMARC treats as SPF not passing. The usual fixes are removing includes for vendors that use their own Return-Path, removing a and mx when those hosts do not send, and moving vendors to their own subdomains. Flattening includes into IP ranges works only with automation, because vendors renumber.

Should SPF end in ~all or -all?

For DMARC it makes little difference: fail and softfail both count as SPF not passing. The difference is at receivers that act on SPF alone. Some reject at SMTP time on -all before checking DKIM, which can bounce forwarded mail that would have passed DMARC on its signature (RFC 7489 section 10.1). Many teams publish ~all and let DMARC do the enforcing. Parked domains that never send should publish v=spf1 -all.

How long should a DKIM key be, and how do I rotate it?

RFC 8301 requires signers to use RSA keys of at least 1024 bits and recommends at least 2048, and it retires rsa-sha1. A 2048-bit key is longer than one 255-character TXT string, so it is published as several strings in one record. To rotate, publish a new selector, switch signing to it, keep the old public key published for some days while queued mail drains, then revoke it with an empty p= tag (RFC 6376) and remove it later.

How do I move from p=none to p=reject safely?

Add a rua address and collect two to four weeks of aggregate reports. Use them to find every legitimate source that fails alignment, and fix each with custom DKIM or a custom Return-Path. Then publish p=quarantine with a low pct, raise it in steps while watching the reports, and move to p=reject. Under RFC 7489, failing messages that pct does not sample get the next less strict policy. Keep rua on permanently, because new vendors appear without warning.

What do the Google and Yahoo bulk-sender requirements say?

From February 2024, Google and Yahoo require all senders to authenticate with SPF or DKIM. Bulk senders (Google: close to 5,000 or more messages a day to personal Gmail accounts) must use SPF and DKIM, publish a DMARC record with at least p=none, align the From domain with SPF or DKIM, offer one-click unsubscribe (RFC 8058) on marketing mail and honour unsubscribes within two days, and keep spam rates low (Google: below 0.3% in Postmaster Tools). Valid forward and reverse DNS for sending IPs and TLS are also required.

What are the BIMI prerequisites, and what does MTA-STS do?

BIMI shows a brand logo only when DMARC is at enforcement (p=quarantine or p=reject at pct=100), with a BIMI record at default._bimi, an SVG Tiny Portable/Secure logo, and, for Gmail, a mark certificate (VMC or CMC). MTA-STS (RFC 8461) does something different: it protects mail coming in to your domain by telling sending servers to use TLS with a valid certificate to your listed MX hosts. Roll it out in testing mode alongside TLS-RPT (RFC 8460) reports before you switch to enforce.

Does it cover DMARCbis?

Only where it changes advice. DMARCbis is the IETF revision meant to replace RFC 7489. Its drafts drop pct in favour of a t= testing flag and add np= for non-existent subdomains. The lab teaches RFC 7489 behaviour, which receivers implement today, and notes where DMARCbis differs. Check DMARCbis's current status before you rely on it.

Is any of this real?

No. Every domain uses the reserved .example top-level domain, every IP address is from the RFC 5737 documentation ranges, and the company, vendors and people are invented. The lab models the SPF, DKIM and DMARC decisions; it does not send mail or query real DNS.

The tools people use most on PlayCISO.

All tools