DMARC and SPF record generator
Build the SPF with your email providers and the DMARC with the policy you want, then publish them in your DNS.
Your DNS records
SPF record (TXT at the domain root)
DMARC record (TXT at _dmarc)
How to publish them
- Open your domain's DNS (your registrar or Cloudflare).
- Create or replace the root (@) TXT record with the SPF. There can be only ONE SPF record.
- Create a TXT record named _dmarc with the DMARC value.
- Enable DKIM in each email provider (Google Workspace, Microsoft 365, your sending platform) and publish their records.
- Wait 1 to 24 hours and verify with the DMARC/SPF/DKIM checker.
- After 2 to 4 weeks of reports with no legitimate failures, raise the policy to quarantine and then reject.
Each provider's includes are the ones they publish as of today; confirm them in the provider's documentation if they change.
Want us to publish and monitor it for you? Request setup
🔒 The records are built in your browser; the domain and mailbox you type are never sent to any server.
What records does this tool generate?
It generates the two TXT records your DNS needs so your domain's email authenticates: the SPF, with the “include” of each provider you send from (Google Workspace, Microsoft 365, Brevo, Mailchimp, SendGrid, Amazon SES and others), and the DMARC with the policy you choose (none, quarantine or reject), the mailbox for aggregate reports (rua) and the percentage of mail it applies to.
It also counts the DNS lookups of the resulting SPF: RFC 7208 allows at most 10, and an SPF above that stops working. DKIM is not generated here because each provider publishes it with its own key; the tool tells you where to turn it on.
How to use the tool
- Type your domain and tick every service you send email from, including marketing and invoicing platforms.
- Choose the DMARC policy (start with none), a mailbox for reports and the percentage.
- Press “Generate records” and copy the SPF to the root (@) TXT record and the DMARC to the TXT named _dmarc.
- Enable DKIM at each provider, wait 1 to 24 hours and confirm with the DMARC/SPF/DKIM checker.
Example
A company using Google Workspace and Brevo gets “v=spf1 include:_spf.google.com include:spf.brevo.com -all” and, to start, “v=DMARC1; p=none; rua=mailto:dmarc@company.com; pct=100”. After two to four weeks of reports with no legitimate failures, it changes p=none to p=quarantine and later to p=reject.
Frequently asked questions
Can I have two SPF records?
No. There can be only one TXT record starting with v=spf1; with two, receivers treat it as an error. Merge all includes into one.
What is the difference between ~all and -all?
“~all” (softfail) asks receivers to flag unauthorized mail as suspicious; “-all” (fail) asks them to reject it. The generator uses -all; if you have not listed every provider yet, start with a DMARC policy of none.
What is the rua mailbox for?
It receives daily aggregate reports from servers that get your mail: who sends with your domain and whether it passes SPF and DKIM. It is how you discover forgotten services before tightening the policy.
Do provider includes change?
Rarely, but it happens. The tool uses what each provider publishes today; confirm them in their documentation if something fails.
Want a full review of your company?
These tools show what is visible from the outside. A T.I. RESCUE pentest or audit covers the rest: systems, people and processes.
Talk to a specialist See our managed IT services →Related tools
DMARC, SPF and DKIM checker
Without SPF, DKIM and DMARC anyone can send email in your company's name. Check all three records for your domain.
Try it →DNS, MX and blacklist lookup
The tool we use when “the email never arrives”: it shows what other servers see of your domain and why they might reject it.
Try it →Email header analyzer
Ideal for that email “from the boss” or “from the bank” that doesn't add up. Everything is analyzed in your browser.
Try it →Microsoft 365 security assessment
Microsoft 365 ships the controls; almost nobody turns them all on. Answer about your tenant and see what is missing.
Try it →