Free tool
SPF & DMARC record generator
Build SPF and DMARC TXT records for your sending domain, with copy buttons and plain notes.
The domain in your From address, for example a secondary domain you use only for outbound.
Checks
How to use the SPF and DMARC generator
Fill in the form and copy each record into your DNS provider as a TXT record. Everything is built in your browser; nothing is looked up or sent. This tool does not check your live DNS, so after publishing, confirm the records with your DNS provider's checker or your email platform's domain settings.
The three records that authenticate email
| Record | Where it lives | What it does |
|---|---|---|
| SPF | TXT on the domain itself (@) | Lists the servers allowed to send mail for the domain |
| DKIM | TXT or CNAME given by your email provider | Signs each message so receivers can tell it was not altered |
| DMARC | TXT on _dmarc. your domain | Tells receivers what to do when SPF and DKIM do not line up with the From domain, and where to send reports |
DKIM keys are generated by the service that sends your mail, so copy those from its setup page.
Rules that trip people up
- One SPF record per domain. If you already have one, merge the includes into it instead of adding a second.
- Ten DNS lookups at most. Each
include,a,mxandredirectcounts, and includes can contain more lookups of their own. Going over makes SPF fail. - Start DMARC at
p=none. Read the aggregate reports for a few weeks, fix any legitimate senders that fail, then move toquarantineand laterreject. - Reports to another domain only arrive if that domain publishes a record allowing it. Using an address on the same domain avoids this.
For the full setup, including a separate sending domain and warm-up, read our deliverability and DNS guide. To plan how many domains and inboxes you need, try the sending volume calculator.
Tools
More free tools
Small, free tools that run right in your browser. No sign-up, nothing to install.