
SPF and DMARC generator
Gmail and Yahoo expect bulk senders to authenticate their mail. Enter your domain and the services that send for you; get SPF and DMARC records to paste into DNS, with a warning if SPF is close to its lookup limit.
SPF · TXT record at example.com
v=spf1 include:_spf.google.com include:sendgrid.net ~all
DMARC · TXT record at _dmarc.example.com
v=DMARC1; p=none; rua=mailto:dmarc@example.com
- p=none only monitors. Read the reports for a few weeks, then move to quarantine and reject.
SPF lists who may send for your domain; mail from anyone else soft-fails (marked, usually still delivered). DMARC tells receivers what to do when a message fails both SPF and DKIM alignment: this policy only monitors and changes nothing. DKIM keys come from each sending service and are added separately.
How to use it
- Enter your domain and the services that send your email (for example _spf.google.com).
- Pick a DMARC policy and add an address for the reports.
- Copy each TXT record into your DNS; start with p=none and tighten after reading the reports.
Questions
What is the difference between SPF, DKIM and DMARC?
SPF lists the servers allowed to send mail for your domain. DKIM signs each message with a key published in DNS. DMARC tells receiving servers what to do when a message fails both checks in alignment with your domain, and where to send reports.
Do I need DMARC?
Since February 2024 Gmail and Yahoo have required senders of roughly 5,000 or more messages a day to their users to have SPF, DKIM and a DMARC policy of at least p=none. It is good practice for every domain that sends email.
What is the SPF 10 lookup limit?
SPF allows at most 10 mechanisms that need a DNS lookup (include, a, mx, ptr, exists and redirect). Each include can contain its own lookups, so the true count is often higher than it looks. Going over makes SPF fail.
Which DMARC policy should I start with?
Start with p=none and a reports address, read the reports for a few weeks to find every legitimate sender, then move to quarantine and finally reject.
Read the method
Field notes behind this tool.


More free tools




Introductions
By appointment. Full-time, contract or advisory.
Currently leading AI marketing at Imagera AI.Open to a select full-time role leading AI marketing or GTM engineering.Advisory and contract work by arrangement.
Roles considered: AI Marketing Engineer · Lead · Head of Growth · AI products · GTM Engineering Lead
shaliniworks24@gmail.com · Toronto, Canada · Remote or hybrid across Canada and the US