Free SPF and DMARC record generator
Choose your senders and policy, then copy the TXT records to your DNS provider.
Generation runs entirely in your browser. Nothing you type is sent to a server until you choose to check your records.
Your TXT records
Add this TXT record at your DNS provider for each entry below. Use the host/name and TXT value shown, following your provider's instructions for entering names.
SPF
Type: TXT
DMARC
Type: TXT
Provider documentation
- Google Workspace: published SPF include
- Microsoft 365: published SPF include
- SendGrid: published SPF include
- Postmark: published SPF include
Use your sender's domain authentication instructions for the domain it tells you to configure.
Questions
How do I set up an SPF record, and what is the right syntax?
Publish exactly one TXT record listing every service that sends as the domain — the mailbox provider, the newsletter tool, the app that sends receipts — and end it with -all (or ~all while you check nothing is missing). The record may trigger at most 10 DNS lookups (include, a, mx and similar). A domain that sends no mail should still say so.
How do I set up a DMARC record?
Start with p=none and a rua address to receive aggregate reports. Read them for a few weeks to find every legitimate sender, fix their SPF and DKIM, then move to p=quarantine and finally p=reject.
Check your records
After publishing, verify with the SPF and DMARC checker. It shows saved findings or offers a full passive audit with a public report. The first audit needs no account. The checker does not follow nested SPF includes or count DNS lookups.