SPF Record Generator
Build a valid SPF TXT DNS record for your domain. Select your authorized senders and copy the result.
v=spf1 ~all
What is an SPF record?
SPF (Sender Policy Framework) is a DNS TXT record that lists which servers are allowed to send email for your domain. When a mailbox provider receives a message, it checks your SPF record to confirm the sending server is authorized — a key signal for landing in the inbox instead of spam.
How to use this generator
Pick the services that send on your behalf (Google, Microsoft 365, SendGrid, Mailgun, Amazon SES and more), add any custom IPs, choose your enforcement policy, and copy the generated record into a TXT record on your domain. Then verify it resolves correctly before you rely on it.
Common SPF mistakes
Publishing more than one SPF record, exceeding the 10 DNS-lookup limit, or using a strict -all before you have listed every sender are the most common ways SPF breaks deliverability. Keep a single record, stay under 10 lookups, and start with ~all (soft fail) while you validate.