SPF & DMARC Generator
Create the DNS records that stop others from sending email in your name, or check one you already have.
Loading SPF & DMARC Generator… If nothing happens, please enable JavaScript.
Anyone can put your address in the From line of an email. SPF and DMARC are the two DNS records that let receiving mail servers tell real mail from forgeries. SPF (Sender Policy Framework) is a TXT record on your domain that lists the servers allowed to send for it: your mail provider, your newsletter service, your own server. DMARC sits on top of it at _dmarc.yourdomain and says what receivers should do with mail that fails the checks (deliver it, send it to spam or reject it) and where to send reports about it. Gmail, Yahoo and Microsoft now expect bulk senders to have both, and without them your genuine mail is more likely to land in spam while spoofed mail gets through.
Frequently asked questions
Where do I add these records?
What is the difference between ~all and -all?
Why does SPF have a limit of 10 DNS lookups?
Can I have two SPF records?
What about DKIM?
Which DMARC policy should I start with?
What changed with RFC 9989?
Why do reports sent to another domain need an extra record?
Does this tool look up my domain?
About SPF & DMARC Generator
The SPF builder lets you tick the services you use (Google Workspace, Microsoft 365, Zoho Mail, Amazon SES, SendGrid, Mailgun and Mailchimp Transactional, with the include values taken from each provider's own documentation), add your own IPv4 and IPv6 addresses, and choose how strict the closing all should be. It counts DNS lookups as you go, because SPF stops working above 10, and splits the value into 255-character strings when a long record needs it. The checker takes an existing record and explains every term in plain language. It flags syntax mistakes such as include= instead of include:, a space after the colon or ipv4: instead of ip4:, and it warns about a second SPF record on the same domain, the deprecated ptr mechanism, the dangerous +all, terms placed after all, and records long enough to break over UDP.
The DMARC builder follows the rollout that avoids losing mail: start with p=none and a report address, read the reports for a few weeks to find every service that sends as you, then move to quarantine and finally reject. It covers subdomain and non-existent subdomain policies, strict or relaxed alignment, failure reporting options and the testing flag from RFC 9989, the updated DMARC standard published in May 2026, with the older pct and ri tags available for receivers that still use them. Both tabs output the exact host name and TXT value with copy buttons. Everything is worked out in your browser and no DNS queries are made, so to compare with what a domain publishes today, fetch its TXT records with the DNS Lookup tool and paste them into the checker.
SPF started as a fix for bounced spam
In the early 2000s, spammers routinely forged the envelope sender of their messages, so the bounces from millions of undeliverable spams landed in the inboxes of innocent domain owners. Several proposals tried to fix this, including Reverse MX and Designated Mailers Protocol, and in 2003 Meng Weng Wong merged ideas from them into Sender Permitted From, soon renamed Sender Policy Framework. Microsoft pushed a rival called Sender ID, and the two were published side by side as experiments in 2006. SPF won: it became a proposed standard as RFC 7208 in 2014, while Sender ID and its spf2.0 records faded away.
SPF alone had a gap, because it checks the hidden envelope address rather than the From line people actually see. In 2012 a group including PayPal, Google, Microsoft and Yahoo published DMARC, which ties SPF and DKIM results to the visible From domain and adds reporting. PayPal had good reason to care: it was one of the most phished brands on the internet. DMARC spent years as an informational document, RFC 7489, before RFC 9989 finally made it a standards-track protocol in 2026.