Generate a valid SPF TXT record in seconds. Enter your domain, click the Generate SPF button, then fine-tune it with our SPF generator wizard—your record updates live. This tool is online, no sign-up, and completely free.
SPF (Sender Policy Framework) record is a DNS TXT record that lists the servers and services allowed to send email for your domain. Mail receivers check it during SMTP to spot and block spoofed messages. Use it alongside DKIM and DMARC for full protection and improving deliverability.
a
– Allows any IP address returned by your domain’s A/AAAA DNS records to send mail for you. Enable this if those hosts actually send mail.mx
– Allows the IPs of the servers named in your MX records (your inbound mail exchangers) to send mail. Enable this if those MX servers also send outbound mail on your behalfall
mechanism that decides what to do when nothing else matches.-all
= fail; Reject emails not coming from authorized servers. (Strict, recommended for domains that only send mail from known servers.)~all
= softfail; Mark unauthorized emails as suspicious but still accept them. (Safer for rollout/testing, commonly used.)?all
= neutral; No policy applied. (Not recommended, offers little protection.)+all
= pass; Everyone is allowed. (Never use this, makes SPF useless.)permerror
.~all
while you verify mail flow, then move to +all
when you’re confident only authorized senders are covered.+all
— it effectively authorizes the entire internet—don’t use it.permerror
and can break authentication.~all
to monitor, then move to -all
when you’re confident only authorized sources send mail.include
, a
, mx
, exists
, and redirect
count. ip4
, ip6
, and all
do not.Sending emails can be a hassle. We make it easy and fast. Join us to reliably send transactional and marketing emails in no time. You'll love our simple API and flexible hands-on support.
Get started now