SPF record generator
Your SPF record
{{ lookups }} / 10 DNS lookupsType or paste a record here, or use the form below — the two stay in sync.
a:
mx:
include:
exists:
How to treat senders that match nothing above.
The mechanisms above still match first —
redirect is only the fallback, and replaces all.How to use & publish
- List every source that sends mail as your domain: tick
a/mxfor your own servers, add provider includes, add any fixed sending IPs — or paste an existing record into the box at the top. - Keep the DNS-lookup count (shown next to the record) at 10 or below — flatten includes to
ip4/ip6if needed. - Copy the record from the box.
- Create one
TXTrecord at the domain apex (name@or blank), value = the record. Delete any otherv=spf1record. - Use
~allwhile you confirm nothing legitimate is missing, then switch to-all.
{{ n.text }}