Brand Logo
  • Email Tools
      Smart Email Tools

      Extract, analyze and test your emails for content, authentication and deliverability.

      Extraction Tools
      • Extract HTML
      • Extract Text
      • Extract & Analyze Headers
      • Extract Attachments
      • Extract Links
      Analysis & Testing
      • SMTP Server Test
      • SpamAssassin Test
      • Email Authentication Check
      • Spam Words Checker
      • HTML Code Validator
      • Email Source Analyzer
      View All Email Tools
  • SuperTools
      Advanced DNS, Network & Security Tools

      Deep-dive into DNS, IP, TLS and security records for any domain or IP.

      DNS Records
      • DNS Lookup
      • AAAA Lookup
      • MX Lookup
      • NS Lookup
      • CNAME Lookup
      • TXT Lookup
      • SOA Lookup
      • SRV Lookup
      Email Auth
      • SPF Lookup
      • SPF Authorization
      • DKIM Lookup
      • DMARC Lookup
      • BIMI Lookup
      • MTA-STS Lookup
      Network Tools
      • Ping
      • Traceroute
      • HTTP Lookup
      • HTTPS Lookup
      • TCP Lookup
      • TLS Lookup
      Security & Cert
      • Certificate Chain
      • DNSKEY Lookup
      • DS Lookup
      • DNSSEC Lookup
      • RRSIG Lookup
      • NSEC3PARAM Lookup
      IP & Location
      • Reverse DNS
      • ARIN Lookup
      • ASN Lookup
      • LOC Lookup
      • IP2Location
      • What is My IP
      Domain Tools
      • Domain Health
      • WHOIS Lookup
      View All SuperTools
  • About Us
  • FAQs
  • Contact

What Is an SPF Record?

Understanding SPF records and email authentication

Table of Contents

  • What Is an SPF Record?
  • SPF Record Format
  • SPF Mechanisms
  • SPF Qualifiers
  • Checking SPF Records

What Is an SPF Record?

An SPF record is a DNS TXT record that specifies which mail servers are authorized to send emails for a domain. SPF records enable email authentication by telling receiving mail servers which IP addresses and servers are allowed to send emails for a domain.

SPF records use mechanisms (ip4, ip6, include, a, mx, all) to specify authorized senders and qualifiers (+, -, ~, ?) to specify how to handle unauthorized senders. SPF records are published as TXT records in DNS and are essential for email authentication and preventing email spoofing.

Check SPF records using our SPF lookup tool to verify email authentication configuration. Learn more about SPF and TXT records.

SPF Record Format

Record Format

SPF records follow this format: v=spf1 mechanism1 mechanism2 ... qualifier

Example SPF Record

v=spf1 ip4:192.0.2.1 include:_spf.google.com -all

  • v=spf1: SPF version 1
  • ip4:192.0.2.1: Authorize IPv4 address
  • include:_spf.google.com: Include Google's SPF
  • -all: Fail all other IPs

Version Identifier

All SPF records must start with v=spf1 to identify the SPF version.

Mechanisms

SPF records use mechanisms to specify authorized senders (ip4, ip6, include, a, mx, all).

Default Qualifier

If no qualifier is specified, + (pass) is the default.

SPF Mechanisms

SPF mechanisms specify authorized senders:

ip4 and ip6

ip4:192.0.2.1 or ip6:2001:db8::1 - Authorize specific IPv4 or IPv6 addresses or ranges.

include

include:_spf.google.com - Include SPF records from other domains (commonly used for email service providers).

a

a or a:example.com - Authorize IPs from domain's A records.

mx

mx or mx:example.com - Authorize IPs from domain's MX records.

all

all - Match everything else (used with qualifiers to specify default action).

SPF Qualifiers

SPF qualifiers specify how to handle senders:

+ (Pass)

+ip4:192.0.2.1 - Authorize sender (default, can be omitted).

- (Fail)

-all - Explicitly reject unauthorized senders.

~ (Softfail)

~all - Mark as suspicious but accept (used for monitoring).

? (Neutral)

?all - No policy (neither pass nor fail).

Best Practice

Use -all for strict policy, ~all for testing, and avoid ?all.

Checking SPF Records

1. SPF Lookup Tools

Use our SPF lookup tool to query SPF records and verify email authentication configuration.

2. Command Line Tools

Use command-line tools (dig) to query TXT records: dig TXT example.com

3. Email Authentication Check

Use our email authentication checker to verify SPF authentication is working correctly.

4. Verification

Verify SPF records are published correctly, syntax is valid, and all authorized mail servers are included.

5. Testing

Test SPF authentication by sending emails and checking SPF results in email headers.

SPF Tools

SPF Lookup Email Authentication Check DMARC Lookup DKIM Lookup

Pages

  • About Us
  • Why Us
  • Contact
  • Privacy Policy
  • Terms & Conditions

Email Tools

Extraction Tools
  • Extract HTML
  • Extract Text
  • Extract & Analyze Headers
  • Extract Attachments
  • Extract Links
Analysis & Testing
  • SMTP Server Test
  • SpamAssassin Test
  • Email Authentication Check
  • Spam Words Checker
  • HTML Code Validator
View All Email Tools

SuperTools

  • DNS Lookup
  • MX Lookup
  • SPF Lookup
  • DMARC Lookup
  • DKIM Lookup
  • WHOIS Lookup
  • Ping
  • Traceroute
  • Domain Health Check
  • What is My IP
View All SuperTools

FAQ

  • What is Email Deliverability
  • Why Emails Go to Spam
  • How Spam Filters Work
  • What is SPF
  • What is DKIM
  • What is DMARC
  • How to Test SMTP Server
  • What are Email Headers
  • What is SpamAssassin
  • What is DNS
View All FAQs

Newsletter

Email: info@testmailscore.com
TestMailScore

© 2026 TestMailScore. All rights reserved.