Skip to main content
    EmailToolBox LogoEmailToolBox
    HomeAll ToolsSuper Lookup
    Email Health CheckEmail DeliverabilityEmail Blacklist CheckerEmail Header AnalyzerSPF CheckerDKIM CheckerDMARC CheckerMX Lookup
    View All Tools
    SPF CheckerDKIM CheckerDMARC CheckerSPF GeneratorDMARC GeneratorBIMI CheckerMTA-STS Checker
    Guides
    中文
    1. Home
    2. Tools
    3. SPF Checker

    SPF Record Checker

    Validate SPF records and prevent email spoofing

    SPF (Sender Policy Framework) records help prevent email spoofing by specifying which mail servers are authorized to send email for your domain.
    SPF Record Validation
    Enter a domain name to check and validate its SPF record configuration
    About This Tool

    This page provides original, human-reviewed information about SPF record validation, covering include chains, the 10 DNS lookup limit, ip4/ip6 mechanisms, and why SPF alone is not enough without DKIM and DMARC.

    What is SPF (Sender Policy Framework)?

    SPF (Sender Policy Framework) is an email authentication method that helps prevent email spoofing by allowing domain owners to specify which mail servers are authorized to send email on behalf of their domain.

    How SPF Works:

    1. You publish an SPF record in your domain's DNS as a TXT record
    2. When someone receives an email claiming to be from your domain, their mail server checks your SPF record
    3. The receiving server compares the sending server's IP against your authorized list
    4. Based on the match, the email is accepted, rejected, or marked as suspicious

    SPF Record Components:

    • Version: Always starts with "v=spf1"
    • Mechanisms: Define which sources are authorized (ip4, ip6, include, a, mx, etc.)
    • Qualifiers: Specify the action to take (+pass, -fail, ~softfail, ?neutral)
    • All mechanism: Defines the default policy for unlisted sources

    Benefits of SPF:

    • Reduces email spoofing and phishing attacks
    • Improves email deliverability and sender reputation
    • Helps prevent your domain from being used in spam campaigns
    • Required for DMARC implementation

    Best Practices:

    • Keep the SPF record under the 10-lookup limit by flattening includes.
    • End the record with -all for strict enforcement (or ~all to start).
    • Review the record whenever you change email providers.
    Setting Up SPF Records

    Basic SPF Record Structure:

    v=spf1 [mechanisms] [modifiers] [all]

    Common SPF Examples:

    Basic SPF (own mail server)
    v=spf1 mx -all

    Only servers listed in MX records can send email

    Google Workspace
    v=spf1 include:_spf.google.com ~all

    Include Google's SPF record for Gmail/Workspace

    Microsoft 365
    v=spf1 include:spf.protection.outlook.com ~all

    Include Microsoft's SPF record for Office 365

    Multiple Services
    v=spf1 include:_spf.google.com include:mailgun.org ip4:192.168.1.1 ~all

    Combine multiple email services and specific IP addresses

    Always end your SPF record with an "all" mechanism (~all is recommended for most cases). Avoid exceeding 10 DNS lookups to prevent SPF failures.
    Common SPF Issues

    Too Many DNS Lookups

    SPF records that require more than 10 DNS lookups will fail validation.

    Solution: Reduce includes, use IP addresses instead of hostnames where possible.

    Multiple SPF Records

    Having multiple SPF records in DNS will cause SPF to fail.

    Solution: Combine all SPF mechanisms into a single TXT record.

    Missing "all" Mechanism

    SPF records without an "all" mechanism may not work as expected.

    Solution: Always end with ~all, -all, or ?all depending on your policy.

    Syntax Errors

    Invalid syntax in SPF records can cause authentication failures.

    Solution: Validate SPF syntax and test thoroughly before deployment.

    SPF Qualifiers Explained:

    +Pass

    Explicitly allow the source

    -Fail

    Reject the email

    ~Soft Fail

    Mark as suspicious but accept

    ?Neutral

    No policy specified

    Frequently Asked Questions

    What's the difference between ~all and -all?

    ~all (soft fail) marks unauthorized emails as suspicious but still delivers them, while -all (hard fail) instructs receiving servers to reject unauthorized emails completely. ~all is recommended for most domains.

    Can I have multiple SPF records?

    No, you can only have one SPF record per domain. Multiple SPF records will cause SPF authentication to fail. Combine all your email sources into a single SPF record.

    How long does SPF propagation take?

    SPF records propagate like any DNS change, typically within 24-48 hours globally. However, many servers will see the changes within minutes to hours.

    What happens if I exceed 10 DNS lookups?

    SPF authentication will fail if your record requires more than 10 DNS lookups. This includes lookups from included SPF records. Monitor your lookup count and optimize when necessary.

    Should I use ip4 or include mechanisms?

    Use ip4/ip6 for static IP addresses you control, and include for third-party services like Google Workspace or Mailgun. Include mechanisms are more flexible but count toward the 10-lookup limit.

    Do subdomains inherit SPF records?

    No, subdomains do not inherit SPF records from their parent domain. Each subdomain that sends email needs its own SPF record, or you can use a wildcard SPF record.

    What does SPF stand for?

    Sender Policy Framework - a standard that helps prevent email spoofing by declaring which servers may send mail for a domain.

    Is SPF enough to protect my domain?

    No. SPF works with DKIM and DMARC to fully authenticate email. DMARC tells receivers what to do when checks fail.

    How do I check my SPF record?

    Enter your domain in this tool - it will look up and validate the SPF record for you.

    Related Tools

    MX Lookup
    Check mail servers
    Email Blacklist Checker
    Check IP reputation
    DNS Lookup
    DNS record queries
    SPF Checker
    Validate SPF records
    DMARC Checker
    Check and analyze DMARC records
    Email Header Analyzer
    Analyze email headers
    DKIM Checker
    Verify DKIM signatures
    WHOIS Lookup
    Domain registration info
    SMTP Test
    Test SMTP connectivity
    SSL Certificate Lookup
    Check SSL certificates
    DNS Propagation Checker
    Check DNS propagation
    Ping Test
    Test network connectivity
    Traceroute
    Trace network path
    Subnet Calculator
    Calculate IP subnets
    What Is My IP
    Check your IP address

    Related Guides

    SPF Flattening and DNS Lookup Limits
    SPF DNS Lookup Limit Optimization
    Google Workspace SPF Setup: Complete Sender Policy Framework Configuration Guide
    Azure SPF Configuration Tutorial

    Need Help?

    Our tools are designed to be intuitive, but if you need assistance, we're here to help.

    DocumentationContact Support

    About Our Tools

    Professional-grade email and DNS diagnostic tools trusted by IT professionals worldwide.

    Free to UseNo RegistrationReal-time Results
    EmailToolBox LogoEmailToolBox

    EmailToolBox is a free suite of email testing, deliverability and domain diagnostics tools. Check your email health, validate SPF/DKIM/DMARC, look up DNS records and monitor blacklist status in seconds - no signup required.

    • Free to use
    • No signup required
    • Instant results
    • Real-time DNS checks
    • Privacy-focused

    Email Diagnostics

    • Email Health Check
    • Email Deliverability
    • Email Blacklist Checker
    • Email Header Analyzer
    • Email Verifier
    • HTML Email Validator
    • Email Preview Simulator
    • Spam Test
    • Email Health Report

    Email Authentication

    • SPF Checker
    • DKIM Checker
    • DMARC Checker
    • DMARC Report Analyzer
    • SPF Generator
    • DMARC Generator
    • BIMI Checker
    • MTA-STS Checker

    DNS & Infrastructure

    • MX Lookup
    • DNS Lookup
    • TXT Record Lookup
    • CNAME Record Lookup
    • NS Lookup
    • DNS Propagation
    • PTR/rDNS Record Lookup
    • SMTP Test
    • WHOIS Lookup

    Resources

    • Email Guides
    • All Tools
    • FAQ
    • Contact Us
    • About
    • Privacy Policy
    • Terms of Service

    Friend Links

    • Favicon Generator
    • Email Testing tools
    • Morse Code Translator
    • Password Remover
    • Regex Cheat Sheet
    • free barcode generator
    • Free Online PDF Tools
    • fast chart
    • refnet
    • world market hours

    © 2026 EmailToolBox - Email Testing, Deliverability & Domain Diagnostics. All rights reserved.

    SPF Checker - Free SPF Record Lookup & Validator - EmailToolBox