Your record
- Type
- TXT
- Name
- @ (your domain)
- Value
- v=spf1 ~all
- Choose at least one service that sends mail as your domain.
One SPF record per domain: if you already have one, replace it with this. Made in your browser; nothing is sent to us.
Adding it to your domain
- At your DNS host, find the existing TXT record that starts with
v=spf1. If there is one, edit it; never add a second. - Paste the value, with the name
@(or your domain), and save. - Check the result with the free email domain checker: it counts the real number of lookups, including those inside each include.
The include for each service is the one its setup instructions give; if a provider changes it, its own instructions win. Step-by-step guides for GoDaddy, Hostinger and Cloudflare, and SPF, DKIM and DMARC explained. Next: make a DMARC record.
Questions
What is an SPF record?
A TXT record on your domain that lists the servers allowed to send mail as your domain. Receivers such as Gmail and Outlook check it, together with DKIM and DMARC, to decide whether your mail is genuine.
Can a domain have two SPF records?
No. With two records SPF fails for both. Put every sending service into one record, as this generator does, and delete the old one.
What does the 10 DNS lookup limit mean?
Each include, mx and a in an SPF record makes receivers look up more DNS records, and SPF allows 10 lookups in all, including those inside each include. Over 10, receivers treat the record as broken. Remove services you no longer use; our free email domain checker counts the real total.
Should SPF end in ~all or -all?
With DMARC in place, ~all (soft fail) is the common choice: DMARC then decides what happens to failing mail. -all (fail) is stricter and can cause forwarded mail to be refused.
Where do I add the SPF record?
At the company that runs your domain’s DNS (your registrar, Cloudflare or your host), as a TXT record with the name @ or your domain. Changes usually work within an hour.