Start from your records

Enter the domain and select Load records. The builder reads the SPF record at the domain, the DMARC record at _dmarc. followed by the domain, the MX records and, when you enter a selector, the DKIM key at selector._domainkey. followed by the domain. It fills all three builders from what it finds and shows the records it read, with the time they were read. A subdomain with no DMARC record of its own shows the parent record it inherits.

Links from Security Posture findings and from Email Validation open the builder with the domain already loaded. You can also skip loading and start from an empty form.

SPF: choose your senders

Tick every service that sends mail with your domain in the From address. Mailbox providers whose MX records you use are marked Your MX. Add your own servers as IPv4 or IPv6 addresses or ranges, add any other include your provider gave you (account-specific ones such as HubSpot or Proofpoint), and keep anything unusual under Other terms, kept as written. When you load a record, catalog includes become ticked services and everything else lands in the matching field, so nothing is dropped. Receivers try SPF terms in order, so when a record has an exclusion such as -ip4:192.0.2.5, that exclusion and every term before it stay under Other terms, kept as written in their original order, and the builder writes those terms first.

Then choose what happens to mail from any other server:

EndingMeaningWhen to use it
~allSoft fail: receivers usually accept the mail but treat it as suspect.While you are still finding senders, and with DMARC at enforcement.
-allFail: the server is not allowed to send.When you are sure every sender is listed.
?allNeutral: no statement either way.Almost never; it gives no protection.

With DMARC at quarantine or reject, ~all and -all protect the same way, because DMARC makes the decision.

The lookup meter

Receivers stop after 10 DNS lookups while checking SPF (RFC 7208 section 4.6.4). Every include, a, mx, exists, ptr and redirect costs one, and so does every include inside an include. Ranges (ip4, ip6) cost nothing. A record that needs more than 10 gets a permanent error, which most receivers treat as an SPF failure for any sender not matched early on.

The meter shows an estimate straight away, using what each service cost when we last checked, marked typical. A moment after you stop changing the form it counts the draft live against public DNS and shows Live count from public DNS. It turns amber at 8 and red over 10. The table under the record shows what each term costs.

Flattening an include

When a record is at 8 lookups or more, the builder lists each include with its cost. If everything behind an include is a fixed list of ranges, Flatten swaps the include for those ranges, which cost no lookups. Includes that use a, mx, exists or macros, or that exclude addresses, can’t be written as a fixed list and say why.

Flattening has a cost: the provider can change its addresses at any time and your copy won’t follow. Remove services you no longer use first, flatten only what you must, and recheck flattened ranges every month.

Hosted SPF services

When removing senders and flattening aren’t enough, the panel under the record offers a third way: a hosted SPF service. You list your senders with the service and publish one include it runs in place of most of your record. They come in two kinds:

KindHow it worksExamples
Macro-basedThe include holds a macro such as %{i}, so receivers ask the service about each sending address. The record never grows and no ranges are copied.AutoSPF (macro option), PowerDMARC Hosted SPF, Proofpoint Hosted SPF, Valimail Instant SPF
Managed flatteningThe service flattens your senders’ includes into ranges and updates that copy when providers change their addresses.EasyDMARC EasySPF, Red Sift OnDMARC Dynamic SPF

The trade-off: the service’s DNS decides which addresses pass for your domain, so you depend on it staying up, accurate and paid for, and leaving means rebuilding the record yourself. A macro-based record also can’t be checked from DNS alone; Email Validation tests it against well-known mail services one at a time. The list is in name order, not ranked, and DNS Panopticon has no tie to any of these vendors.

Dry run: would this address pass?

Enter a sending IP address to see where it lands in the draft: which term matches it, and the result that term gives. Ranges behind includes come from the live count. If the address reaches an a, mx or exists term first, or an include with such terms, the result is unknown, because those depend on lookups the dry run doesn’t make. Confirm with a real message and the Email Header Analyzer.

DMARC: the policy

DMARC passes when SPF or DKIM passes for a domain that aligns with the From address. Relaxed alignment (the default) accepts any subdomain of the same organizational domain; strict needs an exact match. The builder writes these tags:

TagWhat it does
p=What to do with mail that fails: none (monitor), quarantine (spam folder) or reject.
sp=The same for subdomains, when it should differ.
np=The same for subdomains that don’t exist, a common target for spoofing (RFC 9989).
t=yTest mode: receivers apply one step softer, so quarantine acts like none and reject like quarantine.
rua=Where aggregate reports go. Without it you can’t see who sends as your domain.
ruf= and fo=Failure reports and when to send them. Few large mailbox providers send them.
adkim=, aspf=Relaxed or strict alignment for DKIM and SPF.

RFC 9989 replaced the old pct= tag with t=. Receivers that predate it still read pct=0, which means the same thing as test mode, so the builder can write both. When report addresses are at another domain, that domain has to publish a TXT record saying it accepts your reports (RFC 9990 section 4); the builder shows the exact record. Reporting services usually publish it for you.

The rollout plan

The plan takes the settings above and changes only the policy, in four stages:

StageRecordMove on when
1. Monitorp=noneReports show your own senders passing for two weeks in a row.
2. Quarantine, test modep=quarantine; t=yNothing legitimate appears among the failures.
3. Quarantinep=quarantineSpam-folder complaints have stopped and reports stay clean.
4. Rejectp=rejectStay here, and set up each new service before it sends.

Pick a start date and a pace (Careful, Standard or Quick) to put dates on each stage, and download the plan as a text file. If the domain already has a DMARC record, the stage it is at is marked You are here. The dates are a guide: move on when the reports say so.

Dry run: what happens to this message?

Describe a message: its From domain, the SPF result and the envelope (Return-Path) domain it was for, and the DKIM result and its d= domain. The builder says whether DMARC passes, why, and what happens to the message under the draft and at each stage of the plan. It is the quickest way to see why a service that passes SPF still fails DMARC: many sending services use their own bounce domain, so only DKIM signing with your domain makes their mail align.

DKIM: the key record

Hosted mailboxes make DKIM keys for you. Google Workspace shows a TXT record in the Admin console, and Microsoft 365 gives two CNAME records in the Defender portal; publish exactly what they show. Use the DKIM builder when you run your own mail server or a service gives you only a public key.

Enter a selector and paste the public key, as PEM or as the bare base64 value. The builder reads the key type and size: RSA keys under 1024 bits fail at receivers, and under 2048 bits get a warning (RFC 8301). It writes the host name, the TXT value and a zone file line, split into 255-byte strings because a 2048-bit key is longer than one TXT string holds. Optional flags: t=y for testing, t=s to require an exact domain match, and s=email.

With no key yet, Generate key pair makes an RSA 2048-bit or Ed25519 pair in your browser. The private key is shown once, with a Download button, and never sent to us. Ed25519 isn’t verified by every receiver yet, so publish it beside an RSA key under a second selector, not instead of one.

After publishing

Publish each record with your DNS provider, wait for it to spread (the DNS Propagation Checker shows when it has), then check the domain again in Email Validation. Each record in the builder has a Copy button; the zone file line suits providers that import zone files.

FAQ

Why does my record show 12 lookups when it only has four includes?

Includes count everything inside them too. One service’s include can hold several more includes; the table under the record shows each term’s full cost.

Can I just remove the all term to avoid failures?

No. Without an all term, unlisted senders get a neutral result, which protects nothing. Keep ~all or -all and list your real senders.

Is it safe to go straight to p=reject?

Only if aggregate reports already show every legitimate sender passing DMARC. Otherwise real mail, such as invoices from a billing service, will be refused. Follow the plan’s stages.

Do I need SPF if all my mail is DKIM signed?

DMARC passes with either one, but keep SPF: some receivers check it on its own, and it covers mail that loses its DKIM signature on the way.

Sources and further reading