Worked example
v=spf1 ip4:192.0.2.10 include:_spf.example.net -all authorizes two sources and hard-fails everything else.
Sender Policy Framework (SPF) records tell receiving mail servers which IP addresses and domains are authorized to send email on behalf of your domain. Use this builder to generate a valid v=spf1 TXT record.
all mechanism defines what to do with mail from sources not listed above.This is the version tag. It must be at the very beginning of the TXT record. Currently, only v=spf1 is valid and used.
The SPF specification limits the number of DNS lookups to 10 to prevent Denial of Service attacks. include, a, mx, ptr, and exists mechanisms all count toward this limit. ip4 and ip6 do not.
Select authorized mail sources to assemble an SPF TXT record with explicit mechanisms and a final policy.
v=spf1 ip4:192.0.2.10 include:_spf.example.net -all authorizes two sources and hard-fails everything else.
SPF permits at most ten DNS-causing lookups during evaluation and multiple SPF records create a permanent error.