SPF Generator: create your SPF record
Pick who sends email for your domain and get a ready-to-copy SPF record – with a lookup counter and warnings about the usual mistakes.
Build your SPF record
Tick every service that sends mail with your domain as the sender: mailbox, shop, newsletter, help desk.
Your DNS record
- Type
TXT- Host / name
@- Value
No guarantee for the result. Before publishing, check that every service sending mail for you is included. Changes to your DNS are at your own risk.
The generator runs entirely in your browser. We don't transmit or store anything you enter.
What is an SPF record?
SPF in one sentence
An SPF record is a TXT record in your DNS that starts with v=spf1 and lists every server allowed to send email with your domain as the sender. Receivers such as Gmail or Outlook compare the IP address of the sending server with this list. If it isn't on it, the message is more likely to end up in spam or be rejected.
Why you need SPF
Without SPF, any server in the world can send mail that appears to come from your domain. Fraudsters use that for phishing in your name. Since 2024, Gmail and Yahoo also require SPF or DKIM from every sender, and both plus DMARC from bulk senders. Without SPF, even your genuine mail is delivered less reliably.
One record for all services
Each domain may only have one SPF record. If you use Google Workspace for your mailbox, a newsletter tool for campaigns and your host for contact-form mail, all three belong in the same record. That's exactly what the generator does: it combines every service, removes duplicates and counts the DNS lookups so you stay below the limit of 10.
How to set up SPF
-
List your senders
Write down every service that sends mail with your domain: mailbox provider, web server (contact form, shop), newsletter tool, CRM, help desk.
-
Generate the record
Tick the services above, add your own IP addresses and includes, and choose
~allto begin with. Copy the finished value. -
Add it to your DNS
In your host's DNS settings, create a TXT record for the root domain (host
@or empty). If an SPF record already exists, replace it rather than adding a second one. -
Check and tighten
After a few minutes, check the record with the SPF check. Once DMARC reports show that all legitimate mail passes SPF, switch to
-all.
Frequently asked questions
How do I create an SPF record?
Pick the services above that send mail for your domain, add your own servers and copy the finished value. Add it as a TXT record on your root domain. The generator counts the DNS lookups as you go and warns you about common mistakes.
Where do I find my provider's include value?
In the provider's help pages, usually under SPF, DNS settings or domain verification. We've included the values for the most common providers above. If a provider changes its value, the SPF check shows you whether your include still points to a valid record.
I already have an SPF record. Do I add a second one?
No. Two records starting with v=spf1 make SPF invalid. Look at your existing record with the SPF check, carry its services over into the generator, then replace the old record with the new one.
Should I use ~all or -all?
Start with ~all: mail from unlisted servers is only marked as suspicious, in case you forgot a sender. Once DMARC reports show that all legitimate mail passes SPF, switch to -all. With DMARC at quarantine or reject, the difference is small in practice.
What if I go over 10 lookups?
First remove services you no longer use. If a service only sends from a few fixed addresses, replace its include with ip4 entries – but only if the provider guarantees those addresses. Alternatively, send newsletters from a subdomain such as news.your-domain.com with its own SPF record.
How long until the SPF record takes effect?
A new record is usually visible within minutes. If you replace an old one, it can take until the old record's TTL expires, often an hour. The SPF check shows you whether the new record is already publicly visible.
More free tools
Check domains and websites with our free tools – quickly and without signing up.
Website Status Checker
Check whether a website is online, how quickly it responds and how long its SSL certificate remains valid.
Open tool InfrastructureWHOIS & hosting check
Identify a domain's hosting provider, IP address, nameservers and likely server location.
Open tool DNS & emailDNS check
Check every DNS record of a domain – with MX, SPF, DMARC, CNAME and nameserver checks.
Open tool Continuous monitoringWebsite monitoring
Monitor websites and servers around the clock and receive immediate alerts by email, SMS or phone call when something goes down.
Open tool DomainDomain checker
Check suitable domain names and find out which extensions are available for your project.
Open tool Hosting selectionWeb hosting advisor
Answer a few questions about your website, application and requirements to find suitable plans from our hosting comparison.
Open tool Personal serviceHosting tender
Describe your project and receive non-binding, individually matched offers directly from hosting providers.
Start tender