Add your sending IPs and third-party services, choose a failure policy, and get a ready-to-publish DNS TXT record.
| Enter Your Domain Name: | |
| Choose Authorization Mechanisms: | |
|
Use Redirect
|
|
|
Include
IPv4
IPv6
A Record
MX Record
PTR Record
Exists
|
|
|
|
|
| Choose SPF Failure Policy: | |
A correct SPF record tells receiving mail servers exactly which IPs and services are authorized to send email on your domain's behalf. Getting it right the first time avoids PermerErrors, missed deliveries, and weeks of DNS troubleshooting.
_spf.google.com for Google Workspace-all is recommended once all sources are confirmed)A valid SPF record is a single DNS TXT record starting with v=spf1. You can only have one SPF record per domain — multiple records cause an instant PermerError. Use this generator to build the complete record, then publish it as a single TXT entry.
Every service that sends email on your domain's behalf needs an include: entry. Common ones are Google Workspace (_spf.google.com), Mailchimp (servers.mcsv.net), and SendGrid (sendgrid.net). Add each one before publishing.
After publishing, use the SPF Lookup tool to verify the record resolves correctly and check your DNS lookup count. DNS changes can take up to 48 hours to propagate, so test again after the TTL expires.
Worried about someone impersonating your email address to send spam or phishing messages? An SPF (Sender Policy Framework) record is your shield against such spoofing attempts. It acts like a caller ID for email, clearly indicating which servers are authorized to send on behalf of your domain. This helps receiving servers identify legitimate messages and protects your reputation.
Creating a complete SPF record requires knowing every service that sends email using your domain — your own mail server, your ESP, transactional email providers, and any marketing platforms. Missing even one can cause legitimate mail to fail authentication.
Implementing a strong SPF record is a crucial step towards ensuring your emails reach their intended recipients. Not only does it prevent spoofing, but it also improves deliverability by giving receiving servers confidence in the origin of your messages. With a well-crafted SPF record in place, your emails are more likely to land in inboxes rather than spam folders.
Once you have it set up, test it with our Email Tester and verify the record with the SPF Lookup tool.
| 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). |
| include | 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" modifier lets a domain hand off its SPF policy to another domain. |
| all |
This powerful tag defines how to handle emails from unauthorized sources.
Allowed qualifiers:
|
Are You Ready To Experience The Difference?
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.