CohenHolmes

SPF, DKIM & DMARC builder

Pick your mail provider and the policy you want, and get the three DNS records to publish, a plain-English reading of what they do, and a staged path from monitoring to enforcement that doesn’t bounce your own mail on the way.

This is a learning tool. It runs entirely in your browser — nothing you type is submitted, stored or logged, and it never touches your DNS. It builds the records so you can understand them and publish them yourself. Always check them against your provider’s own guidance (Microsoft 365, Google Workspace) and a live DNS lookup before publishing, and watch the DMARC reports at each step — email-auth guidance shifts as standards like DMARCbis land. DKIM values come from your provider’s admin portal, so this tool emits <PLACEHOLDER> tokens for them.

Aligned with DMARCbis (RFC 9989/9990/9991, May 2026): the deprecated pct, rf and ri tags are not emitted; staged rollout uses t=y testing mode, and np (non-existent-subdomain policy) is included.

Domain & provider

The domain your mail is From:. Left blank, the output uses <YOUR-DOMAIN>.

Other senders

Anything else that sends as your domain. Each one adds an SPF term — watch the 10-lookup limit.

SPF

DMARC treats ~all and -all the same for the pass/fail decision, but -all is a clearer signal and helps outside DMARC. Move to it once your reports are clean.

DMARC

Where daily XML rollups go. Blank → dmarc@<domain>. Point it at an inbox or a report analyser.

Per-message forensic samples. Few receivers send them, they can carry recipient data, and volume can spike. Usually leave off.

Relaxed alignment is right for almost everyone — strict breaks common setups where a provider signs with a subdomain. Only tighten if you know you need it.

How the three records work together

SPF is a published list of who is allowed to send for your domain. A receiver checks the sending server’s IP against it.

DKIM puts a cryptographic signature on each message. The receiver fetches your public key from DNS and verifies the mail wasn’t forged or altered in transit.

DMARC ties both back to the domain a human sees in the From: field (“alignment”), tells receivers what to do when neither check passes in alignment, and — the part people underuse — asks them to send you daily reports on who is sending as you.

A message passes DMARC if SPF or DKIM passes and that passing check is aligned with the From domain. One aligned pass is enough.

The staged rollout

The failure mode of DMARC is blocking your own legitimate mail — a forgotten newsletter platform, an app server nobody documented. So you move in steps, and you only take the next one when the aggregate reports show every real sender passing, in alignment, for a week or two.

Watch-outs