SPF record generator
Pick the services that send mail as your domain and the generator writes one valid SPF record, explaining every part, ready to paste into your DNS as a TXT record.
This tool runs in your browser. We don't store what you type and we use no trackers.
How to use it and read the results
How to use the generator
- List everything that sends mail as your domain: company mailboxes, website forms, the invoicing system, the newsletter tool.
- Turn on
mxif the server that receives your mail also sends it, andaif the website itself sends from its own address. - Tick the sending services and add the fixed IP addresses of any other server.
- Start with
~all. - Copy the record into your DNS editor as a TXT record on the name
@. If an SPF record already exists, edit it rather than adding a second one.
Once it's saved and the TTL has passed, confirm it with the SPF, DKIM and DMARC lookup.
When to move from ~all to -all
~all marks mail from unlisted servers as suspicious without rejecting it, so you don't lose real mail if you forgot a service. When your DMARC reports show all your real mail passing, switch to -all. Real protection against spoofing comes from the DMARC policy, so finish the job with the DMARC generator.
Common mistakes
- Two SPF records on one domain: the whole check fails with an SPF PermError. Merge them into one.
- More than 10 lookups: every
include,aandmxcounts, and each include can hide more. Drop services you no longer use. - A forgotten sender: its mail fails and lands in spam. See why emails go to spam.
- Using ptr or +all: the first is slow and discouraged; the second lets any server send as you.
If your email is on ArabyHost, the SPF record is added automatically; you'll find it in cPanel under Email Deliverability. Use the generator when you add another sending service, then merge it into that same record. For the full background, read what an SPF record is.
FAQ
Where do I put the SPF record?
In the DNS editor wherever your domain's NS records point, as a TXT record on the name @ (the domain itself), with a value starting v=spf1.
Can a domain have two SPF records?
No. A domain must have exactly one SPF record. If you use several services, combine them into one record with several includes, or the check fails with a PermError.
What's the difference between ~all and -all?
~all asks receivers to treat unlisted servers with suspicion; -all asks them to reject. Start with ~all and move to -all once you're sure every sender is listed.