Protect your domain against email identity spoofing.
SPF (Sender Policy Framework) is an email authentication mechanism that specifies which servers are authorized to send emails for your domain. Without SPF, anyone can send emails pretending to be you - this is the principle of email spoofing used in phishing attacks.
When a mail server receives an email supposedly from your domain, it checks your SPF record in DNS. If the sending server isn't in the authorized list, the email is marked as suspicious or rejected according to your defined SPF policy.
A properly configured SPF significantly improves the deliverability of your legitimate emails while protecting your domain reputation against spoofers. It's the first building block of email authentication, complemented by DKIM and DMARC.
SPF defines an authorization policy for sending emails:
SPF protects your domain and improves deliverability:
Follow these steps to create your SPF record:
Here are common SPF examples:
; Basic SPF - own server only
example.com. IN TXT "v=spf1 ip4:192.0.2.1 -all"
; SPF with Gmail/Google Workspace
example.com. IN TXT "v=spf1 include:_spf.google.com -all"
; SPF with Microsoft 365
example.com. IN TXT "v=spf1 include:spf.protection.outlook.com -all"
; Multi-source SPF (Gmail + Mailchimp + own server)
example.com. IN TXT "v=spf1 include:_spf.google.com include:servers.mcsv.net ip4:192.0.2.1 -all"
; SPF verification
$ dig example.com TXT +short | grep spf
"v=spf1 include:_spf.google.com -all"
; Test with nslookup
$ nslookup -type=txt example.com
v=spf1 is mandatory at the start. include: delegates verification to another domain. ip4:/ip6: authorizes specific addresses. -all rejects everything else (recommended).
Optimize your SPF configuration:
-all = hard fail (reject), ~all = soft fail (mark suspicious), ?all = neutral (ignore SPF). Use -all for maximum protection once you're sure all sources are listed.
SPF limits to 10 DNS resolutions (include:, a:, mx:). Beyond that, SPF fails with "permerror". Reduce includes or use ip4:/ip6: directly.
No! A domain must have only one SPF record. Multiple SPFs cause a "permerror" error. Consolidate everything into a single record.
SPF helps but isn't enough. It checks the SMTP envelope (envelope from), not the visible From header. DMARC aligns both for complete protection.
SPF is just one factor. Email content, IP reputation, DKIM/DMARC, sending history also influence. Check headers for diagnosis.
Use include: to their SPF domain rather than IPs directly. That way, if their IPs change, your SPF remains valid.
SPF is the first line of defense against email identity spoofing. By clearly defining who can send emails for your domain, you protect your reputation and your recipients against phishing.
Configure SPF correctly, monitor it with MoniTao, and complete your protection with DKIM and DMARC. Complete email authentication is essential in today's threat environment.
Start free, no credit card required.