LiveFor sysadmins

SPF, DKIM & DMARC Record Generator

A guided builder for SPF, DKIM and DMARC TXT records, with lookup-limit checks and Microsoft 365 / Google Workspace presets, to stop your domain being spoofed.

Runs in your browser. Your data never leaves this device.
~/apps/email-auth-record-generatorruns in your browser · nothing uploaded
The domain in your From: address
Who sends email as contoso.com?

Provider includes last checked December 2026. Confirm in your provider’s documentation, as they occasionally change.

Space or comma-separated; ranges allowed
 
Domains from other services’ setup guides
Everything else
-all is strongest. Use ~all while you check reports.
Host / nameTypeValue
contoso.comTXTv=spf1 ip4:203.0.113.10 include:spf.protection.outlook.com include:sendgrid.net -all
Record value
v=spf1 ip4:203.0.113.10 include:spf.protection.outlook.com include:sendgrid.net -all
BIND zone-file line
contoso.com. 3600 IN TXT "v=spf1 ip4:203.0.113.10 include:spf.protection.outlook.com include:sendgrid.net -all"
2 direct lookups. Each include may add more of its own (Microsoft 365 and Google use 1–4), and the total must stay at 10 or fewer

What it does

  • SPF builderTick your email services, add your own IPs, and get a valid record with the DNS lookup count.
  • DKIM and DMARCTurn a public key into a DKIM record, and build a DMARC policy with reporting.
  • SPF checkerPaste an existing record to find +all, ptr, ordering mistakes and lookup-limit problems.
  • Ready for your DNS hostHost name, type and value, plus a BIND zone-file line with long values split correctly.

How to use it

  1. Enter your domain
  2. Build SPF: tick every service that sends as you

    Start with ~all, then move to -all once reports look clean.

  3. Add DKIM for each sender that gives you a key

    Microsoft 365 and Google create DKIM for you in their admin centres.

  4. Publish DMARC with p=none and a report address

    Review reports for a few weeks, then move to quarantine and reject.

Questions people ask

Can a domain have two SPF records?

No. A domain must have exactly one TXT record starting v=spf1. Two records cause a permanent error and SPF fails for all mail. Merge them into one.

What is the SPF 10 lookup limit?

Evaluating SPF may trigger at most 10 DNS lookups, counting include, a, mx, exists and redirect, including those inside the records you include. Exceed it and receivers return a permanent error.

What is the difference between ~all and -all?

~all (soft fail) asks receivers to accept but mark mail from unlisted servers; -all (fail) asks them to reject it. With DMARC in place, either works; -all is the stronger statement.

What DMARC policy should I start with?

Start with p=none and a rua report address to see who sends as your domain. Once all legitimate mail passes, move to p=quarantine, then p=reject.

Last updated 4 Dec 2026 · More in Networking & DNS

More Networking & DNS tools

See all →
Your product here. Reach IT engineers and architects who use these tools.Advertise →