Skip to main content

SPF Checker

Check the SPF (Sender Policy Framework) record for any domain — verify email authentication and prevent spoofing.

What is an SPF Record?

An SPF Record is a DNS record that identifies which mail servers are authorized to send email on behalf of your domain. Think of it as a VIP Guest List for your email: when an email arrives, the receiving server (like Gmail) checks your DNS to see if the sender’s IP address is on the approved list.

Sender Policy Framework (SPF) Authentication Flow This diagram illustrates the SPF verification process, which helps protect a domain against unauthorized email sending. When an email arrives, the receiving mail server checks the sender’s envelope domain and queries DNS for its SPF record. It then compares the sending server’s IP address with the authorized sending sources published in that record. If the IP is authorized, SPF passes; otherwise, SPF can return a failure result that may contribute to filtering or rejection by the receiving system. Sender Policy Framework (SPF) Check Flow Sender Mail Server IP: 192.0.2.1 Receiver Mail Server 4. Evaluate IP Match DNS Server for sender-domain.com PASS FAIL / SOFTFAIL 1. Send Email From: @sender-domain.com 2. DNS TXT Query “What is the SPF record for sender-domain.com?” 3. DNS Response “v=spf1 ip4:192.0.2.1 -all” 5a. IP Matches Sender is authorized 5b. IP Doesn’t Match Sender not in SPF

Common SPF Mechanisms Explained

MechanismWhat it doesExample
v=spf1Identifies the record as SPF version 1.Mandatory start
ip4 / ip6Authorizes a specific static IP address.ip4:1.2.3.4
includeAuthorizes a third-party service (like Gmail).include:_spf.google.com
-allHard Fail: Reject any mail not on this list.The secure standard
~allSoft Fail: Accept but mark as “suspicious” if not on list.Common for testing

FAQ

Frequently Asked Questions

This is the most common SPF error. To prevent Denial of Service (DoS) attacks, DNS specifications limit the number of "lookups" a server has to perform to 10. Every include, a, mx, or redirect mechanism counts as one. If you exceed 10, your SPF will fail, and your emails may go to spam.

No. Having multiple SPF records on a single domain is a critical configuration error. If you need to authorize multiple services (like Microsoft 365 and Mailchimp), you must merge them into a single v=spf1 record.

-all (Dash) is a "Hard Fail," telling servers to drop any unauthorized mail. ~all (Tilde) is a "Soft Fail," telling servers to let the mail through but flag it as potentially unauthorized. Most security experts recommend moving toward -all.

Monitor. Be alerted. Sleep easy.

Try UptimeObserver now. Setup in 2 minutes.