SPF & DMARC Record Generator

SPF lists the servers allowed to send email for your domain. Tick everything that sends mail as you, including your email provider, website and any newsletter or helpdesk systems.

Your own servers
Email services you use
Mail from anywhere else
Your SPF record
Type
TXT
Host / Name
@
Value
the record above

A domain must have only one SPF record. If one already exists, edit it rather than adding a second.

How to add the record

Log in to wherever your domain's DNS is managed (your registrar, hosting control panel or a service like Cloudflare) and add a TXT record with the host and value shown. Changes usually take effect within an hour; you can watch them spread with the DNS Propagation Checker, then confirm everything with the Email Health checker.

A safe order for setting up DMARC

  1. Publish SPF and switch on DKIM signing at each email service you use.
  2. Publish DMARC with p=none and a report address. Nothing changes for your email yet.
  3. Read the reports for two to four weeks. Free tools turn the XML attachments into readable summaries. Fix any genuine service that's failing.
  4. Move to p=quarantine, optionally on a percentage of mail first, then to p=reject.

Google and Yahoo require a DMARC record for anyone sending large volumes to their users, and a reject policy is the strongest protection against people spoofing your domain.

The 10-lookup limit

SPF allows at most 10 DNS lookups while checking a record. Every include, a and mx counts, and includes can contain more lookups of their own. Go over the limit and receivers treat SPF as failed. If you're close, remove services you no longer use, or replace includes with the IP addresses they cover.

Domains that never send email

Protect parked or unused domains from being spoofed: untick everything and choose Fail to get v=spf1 -all, and publish DMARC with p=reject.

More free tools