DNS tools

SPF Generator

Build a valid SPF record for your domain in a few clicks.

Pick the services that send email in your name – the TXT value is built live.

Which services send email for your domain?
Your own servers
More IPs & includes (optional)

Separate multiple with commas

Policy for all other senders

Other senders are marked but delivered.

Your SPF record
Host / name@ (domain root)
Value (TXT)
v=spf1 mx ~all

DNS lookups: 1 / 10

What is SPF?

The Sender Policy Framework (SPF) is a DNS TXT record that lists which servers may send email on behalf of your domain. Receiving servers use it to check whether a message comes from an authorised source – this makes spoofing harder and improves deliverability.

How it works

Select your mail providers, add your own servers or IP addresses, and choose how strictly unknown senders are treated. Copy the generated value and add it as a TXT record with host “@” in your zone. A domain may have only one SPF record.

Frequently asked questions

Where do I add the SPF record?
As a TXT record on host “@” (the domain root). With regfish you can save it directly in the DNS editor.
What's the difference between -all and ~all?
“-all” (Fail) rejects mail from servers that aren’t listed; “~all” (SoftFail) only marks it. -all is safer; ~all is useful while you’re not yet sure of all your senders.
Why are only 10 DNS lookups allowed?
SPF allows at most 10 DNS lookups per evaluation (e.g. via “include”). Exceeding this makes the check fail with “PermError”. The tool counts the lookups for you.

Domain with regfish?

In the regfish DNS editor you save SPF, DMARC and other records in a few clicks – including assistants right in the input form.