Free SEO Tools

Free SPF Records Test Tool

Check SPF records of your domain with our free SPF Records Test tool. Enter your domain and get a full list of SPF records for your domain.

Frequently asked questions

Have a different question and can't find the answer you're looking for? Reach out to our support team by sending us an email and we'll get back to you as soon as we can.

What is a DNS SPF record?

A DNS SPF (Sender Policy Framework) record is a type of Domain Name Service (DNS) record that plays a crucial role in email authentication. It specifies which mail servers are authorized to send email on behalf of your domain. SPF records are implemented as TXT records in your domain's DNS settings and contain a list of IP addresses or hostnames that are permitted to send emails for your domain. This mechanism helps prevent email spoofing and improves the deliverability of legitimate emails.

How does a mail server check an SPF record?

When an email is received, the receiving mail server performs a series of checks to verify the authenticity of the message. For SPF verification, the process works as follows:

  1. The receiving server extracts the sender's domain from the "Return-Path" or "MAIL FROM" address.
  2. It then queries the DNS for the SPF record of the sender's domain.
  3. The server compares the IP address of the sending mail server with the authorized IP addresses or hostnames listed in the SPF record.
  4. If the sending server's IP matches an authorized source in the SPF record, the check passes. Otherwise, it fails.
  5. Depending on the SPF policy and the receiving server's configuration, failed checks may result in the email being rejected, marked as spam, or flagged for further scrutiny.
What does an SPF record look like?

An SPF record is a TXT record in the DNS that follows a specific syntax. Here's a breakdown of a typical SPF record:

"v=spf1 include:_spf.google.com ip4:192.168.0.1 a:mail.example.com -all"

  • "v=spf1" indicates the SPF version being used.
  • "include:_spf.google.com" allows Google's mail servers to send on behalf of your domain.
  • "ip4:192.168.0.1" authorizes a specific IPv4 address.
  • "a:mail.example.com" permits the IP address associated with mail.example.com.
  • "-all" is a strict policy that fails authentication for all other sources.

SPF records can contain various mechanisms (ip4, ip6, a, mx, include, exists) and qualifiers (+, -, ~, ?) to define complex policies. The record should be carefully constructed to cover all legitimate sending sources while maintaining security.

Why are SPF records used?

SPF records serve several important purposes in email security and deliverability:

  1. Prevent Email Spoofing: They make it difficult for spammers to send emails with forged "from" addresses using your domain.
  2. Protect Domain Reputation: By controlling who can send emails on behalf of your domain, you maintain a good sending reputation.
  3. Improve Email Deliverability: Emails from domains with properly configured SPF records are less likely to be marked as spam.
  4. Comply with Email Authentication Standards: Many email providers require SPF as part of their authentication checks.
  5. Provide Transparency: SPF records publicly declare your domain's email sending policy.
  6. Reduce Phishing Attempts: They help prevent malicious actors from impersonating your domain in phishing attacks.
  7. Support DMARC Implementation: SPF is a key component of DMARC (Domain-based Message Authentication, Reporting, and Conformance) policies.

By implementing SPF records, domain owners take a proactive step in securing their email infrastructure and maintaining trust in their digital communications.

How to set up SPF records

Setting up an SPF record involves creating a TXT record in your domain's DNS settings. Here's a step-by-step guide:

  1. Identify All Sending Sources: Make a list of all services and servers that send email on behalf of your domain (e.g., your mail server, third-party email services, marketing tools).
  2. Access DNS Management: Log into your domain registrar or DNS hosting provider's control panel.
  3. Create a New TXT Record: Look for an option to add a new TXT record.
  4. Construct the SPF Record: Build your SPF record string. A basic example: "v=spf1 ip4:192.0.2.0/24 include:_spf.google.com include:spf.protection.outlook.com -all"
  5. Enter the Record:
    • Host/Name: Usually "@" or left blank for the root domain
    • Value/Data: Your constructed SPF record string
  6. Save and Publish: Apply the changes to update your DNS.
  7. Verify the Record: Use SPF checking tools to ensure your record is correctly published and formatted.
  8. Test Email Delivery: Send test emails to ensure they're properly authenticated.
  9. Monitor and Maintain: Regularly review and update your SPF record as your email infrastructure changes. Remember to keep your SPF record under 255 characters and 10 DNS lookups to comply with RFC standards. If needed, use the "include" mechanism to reference external SPF records and stay within these limits.

Start winning at SEO.
Without paying a fortune.

We offer market-leading SEO tools that are easy to use and affordable, without high monthly fees. Try Today without risks.