SPF Record Generator
Build a valid SPF record for your domain. Select email providers, add IP addresses, and generate a ready-to-publish TXT record.
v=spf1 -all
@ or example.com). How to use the SPF Generator
Select the email providers and servers that send mail on behalf of your domain, then copy the generated record into your DNS as a TXT record on the root of your domain. Most registrars and DNS providers let you add TXT records through their control panel.
Use -all (hard fail) if you're confident the list is complete — this instructs receiving servers to reject mail from any server not listed. If you're still discovering all your sending sources, start with ~all (soft fail) while you audit your sending infrastructure.
Keep your SPF record under 10 DNS lookups. Each include:, a, or mx mechanism counts toward this limit. Exceeding it causes a permerror, which many servers treat as a failure. Use the SPF Checker to verify your final record.