SPF Lookup

Look Up Your SPF Record and Get a Complete Analysis

Shielding Your Inbox from Spoofing: The Power of SPF

Ever receive an email that appears to be from your bank or a trusted colleague, but something feels a little off? This is where email spoofing comes in – a deceptive tactic where senders disguise their email address to appear legitimate. SPF (Sender Policy Framework) acts as a crucial line of defense against such attacks, safeguarding your inbox and email security.


SPF operates like a whitelist. Domain owners, like your bank or company, publish an SPF record – a public record that specifies authorized email servers for their domain. When you receive an email, receiving mail servers check the SPF record of the sender's domain. If the email originates from a server listed in the SPF record, it's considered legitimate. Conversely, if the sending server isn't authorized, it raises red flags, potentially marking the email as spam or even rejecting it entirely.


By implementing SPF, you contribute to a safer email ecosystem. It empowers legitimate senders to improve email deliverability by ensuring their emails reach inboxes. More importantly, it helps recipients like yourself identify and avoid spoofing attempts, protecting you from phishing scams and other email-borne threats.

SPF Lookup

SPF TAG Specification Explained

TAG MEANING
v Required: This mandatory tag specifies the SPF version being used. Currently, only "v=SPF1" is allowed.
a This tag allows any server with an IP address matching the A record of the specified hostname to send emails. The allowed value is the domain name for which you want to use the A record (e.g., a:campaigncleaner.com).
mx Similar to the "a" tag, this tag permits any server with an IP address matching the MX record of the specified hostname. The allowed value is the domain name for which you want to use the MX record (e.g., mx:campaigncleaner.com)
ip4 This tag specifies an allowed IPv4 address or a range of addresses using CIDR notation. The allowed value is either a single IPv4 address (e.g., ip4:192.168.1.1) or an IP address with a forward slash (/) followed by the CIDR subnet mask (e.g., ip4:192.168.0.0/24).
ip6 Similar to ip4, this tag defines an authorized IPv6 address or a range using CIDR notation. The allowed value is either a single IPv6 address (e.g., ip6:2001:db8::1) or an IP address with a forward slash (/) followed by the CIDR subnet mask (e.g., ip6:2001:db8::/64).
ptr This tag allows mail servers to perform a reverse DNS lookup on the sending server's IP address. If the hostname returned by the reverse lookup matches the specified hostname, the email is considered authorized. The allowed value is the domain name for the reverse DNS lookup (e.g., ptr:campaigncleaner.com).
includes This tag allows you to incorporate the SPF record of another domain. This is useful for including subdomains or relying on a third-party email service provider's SPF record. The allowed value is the domain name of the record you want to include (e.g., include:_spf.campaigncleaner.com).
exists The exists mechanism in SPF records offers a way to perform conditional checks based on DNS lookups.
redirect The "Redirect" mechanism lets a domain hand off its SPF policy to another domain.
all This powerful tag defines how to handle emails from unauthorized sources.

Here are the allowed qualifiers:

  • -all: Rejects emails from unauthorized senders (strict policy)
  • ~all: Soft fails (marks as spam) emails from unauthorized senders (less strict policy).
  • ?all: Netural takes no action for unauthorized senders (not recommended).

SPF Questions and Answers

SPF (Sender Policy Framework) is an email authentication protocol that allows domain owners to specify which mail servers are permitted to send email on behalf of their domain. This helps prevent email spoofing and phishing by verifying the sender's IP address.
SPF works by allowing domain owners to publish a policy in their DNS records that specifies which IP addresses are allowed to send emails on behalf of their domain. Email receivers check the SPF record to verify the sender's IP address against the domain's authorized IP addresses.
The key components of an SPF record include:
  • v: The SPF version (always SPF1).
  • ip4: Authorized IPv4 addresses.
  • ip6: Authorized IPv6 addresses.
  • include: Other domains' SPF records to include.
  • all: Specifies how to handle non-matching IP addresses (e.g., `-all` for fail, `~all` for soft fail).
To create an SPF record, you need to:
  • Identify all IP addresses and domains that send email on behalf of your domain.
  • Formulate your SPF record using these IP addresses and domains.
  • Publish the SPF record in your domain's DNS settings.
  • Test the SPF record to ensure it is working correctly.
Implementing SPF provides several benefits, including:
  • Improved email deliverability by ensuring legitimate emails are recognized by email receivers.
  • Enhanced email security by preventing unauthorized use of your domain for email spoofing.
  • Better control over your email infrastructure by specifying which IP addresses are authorized to send emails.
Common SPF issues and their resolutions include:
  • SPF Permerror: This occurs when the SPF record is too long or contains too many DNS lookups. Resolve by simplifying the SPF record.
  • SPF Softfail: Indicates a potential issue but not a definite failure. Check the sending server's IP and ensure it is listed correctly.
  • SPF Fail: Indicates the email did not originate from an authorized IP address. Verify and update the SPF record as needed.
To monitor and maintain SPF records:
  • Regularly review and update your SPF record to reflect any changes in your email infrastructure.
  • Use SPF validation tools to check the correctness of your SPF record.
  • Monitor email delivery reports to identify any issues with SPF authentication.

Are You Ready To Experience The Difference?

CC Logo

Become a part of the Campaign Cleaner community today, and join countless satisfied customers who have witnessed significant improvements in their email deliverability and campaign success. Don't let HTML issues hold you back; let Campaign Cleaner optimize your campaigns and boost your inbox rates

Let's Get Started