What should your SPF and DMARC records say?
Choose the services that send your email and how strict DMARC should be. You get both records with the host name to enter, ready to copy. Nothing you type leaves your browser.
Fills in the full host names and the link to the checker.
SPF: who may send
DMARC: what happens to mail that fails
Start with none, read the reports, then move to quarantine and later to reject.
Where receivers send their daily reports. Separate several with commas.
Relaxed accepts a subdomain of your domain, such as mail.example.com for example.com. Strict needs the exact same domain.
Add as a TXT record at @
Add as a TXT record at _dmarc
DNS panels differ: for the domain itself some want @, some the full name and some an empty field. If you already have an SPF record, replace it with this one; a domain may have only one.
Once the records are live, the email setup checker reads them back and counts every nested lookup.
What it writes
- An SPF record for a TXT record at your domain itself. It lists the services you choose, your own includes and IP addresses, and ends in ~all or -all. For a domain that sends no email it writes v=spf1 -all.
- A DMARC record for a TXT record at _dmarc. It holds your policy, the report address, the percentage, the subdomain policy and the alignment. Values that are the default are left out, so the record stays short.
- Includes from each provider's own page: Google Workspace (include:_spf.google.com), Microsoft 365 (include:spf.protection.outlook.com), Zoho Mail (include:zohomail.com) and Mailgun (include:mailgun.org).
- Only terms that work. An include has to be a domain and an address has to be a valid IPv4 or IPv6 address or range. Anything else is left out and listed, so you can fix it.
What it does not do
It does not count nested lookups. Each include can lead to more lookups of its own, and SPF allows 10 in all. Once the record is live, the email setup checker follows every include and counts them.
It does not set up DKIM. DKIM keys are made by your email service; publish the record it gives you, then check it with the email setup checker.
It does not publish anything. The records are built in your browser; you add them at your DNS host, often the company where you bought the domain.
Questions
I already have an SPF record. Do I add a second one?
No. A domain may have only one SPF record, and two make SPF fail for every message. Put every service in one record and replace the old one.
Which DMARC policy should I start with?
p=none with a report address. Read the reports for a few weeks to find every service that sends as you, fix the ones that fail, then move to quarantine and later to reject.
What does alignment mean?
DMARC passes only when the domain checked by SPF or the domain that signs with DKIM matches the domain in the From address. Relaxed, the default, accepts a subdomain. Strict needs the exact same domain.
Why is my email service not in the list?
Only providers whose SPF include we read on their own documentation are listed. Some services do not ask for an include in your main domain at all: Amazon SES sends from its own domain by default, and SendGrid puts its SPF record on a subdomain it gives you. For any other service, copy the include from its setup page into Other includes.