Free SPF Record Generator

Generate and validate DNS records for free to prevent email spoofing and ensure secure email delivery.

Created SPF Record

Why Do You Need an SPF Record Generator Tool?

SPF (Sender Policy Framework) records are DNS records that specify which mail servers can send emails on behalf of your domain. This prevents email spoofing and ensures your emails are less likely to be marked as spam.

MX Layer’s SPF Generator tool lets you input your domain name and specify which IP addresses or third-party services can send emails from your domain. The generator then produces the correct SPF record, which you add to your DNS settings.

Using MX Layer’s SPF Record Generator Tool simplifies managing your domain's email security. Manually creating SPF records can be error-prone, especially if you’re unfamiliar with the syntax and requirements. The generator facilitates this process, reducing the risk of errors and ensuring the records are correctly formatted. It also speeds up the process, saving you time. Properly setting up SPF records helps improve email deliverability and prevent email spoofing. Regularly reviewing and updating your SPF records keeps them effective and accurate.

Free SPF Record Generator

Expert Tips to Manage MX Layer’s SPF Record Generator Tool

#1

Gather IP Addresses: Make a list of IP addresses you trust for sending emails. Others will fail checks. Find out which sources send emails to your domain. Note their IPs or domains.

#2

Define SPF Policy: Choose the SPF version and decide what to do with failed checks. Then:
a. Enter your domain and trusted IP addresses.
b. Access your ISP's DNS control panel.
c. Start with "v=spf1".

#3

Publish Record: Put the SPF record in your DNS settings.

#4

Test SPF Record:
a. After publishing, test it to ensure it works.
b. Use the command prompt or MX toolbox.

Connect to our experts

  1. Block all email-based threats
  2. Get real-time intelligence on attacks
  3. Zero Investment to Start
For more information, please see our Privacy Policy.

Frequently Asked Questions

To create an SPF Record, select the TXT record type in your DNS service.

The primary purpose of an SPF Record is to verify that emails are coming from the correct source and to prevent fake (spoofed) emails, thus thwarting phishing scams.

By defining an SPF record for your domain where you use email services, you significantly reduce the likelihood of your emails ending up in the spam folder.

Each SPF record begins with a version number, "v=spf1," indicating the current SPF version. Following that, you evaluate an unlimited number of records sequentially. Most records consist of a qualifier that defines the sender's authorization and a mechanism, which is an optional qualifier, and a specific condition (IP address) that either results in a match or does not result in a match, forming what are known as directives. The first mechanism that results in a match determines the outcome of the entire evaluation of the SPF record.

Q-Syntax Result Code Description
+ Pass Authorizes the definition of sending servers; This is a standard, so if no qualifier is specified, it is assumed as +.
- Fail Relevant error is returned if mail is sent from unauthorized IP or sources.
~ SoftFail Unauthorized sending servers may be defined. However, the recipient should consciously address this error.
? Neutral The sending server ensures that no comments regarding legitimacy are made in channels where it defines the mail to be accepted.

SPF mechanisms include various qualifiers defining sender authorization. Common ones are shown in the table below.
Mechanism Description
All  Always
A The queried (or explicitly stated) domain has an MX record or MX IP address.
mx  The queried (or explicitly stated) domain has an MX record or MX IP address.
ip4  The specified IPv4 address is the sender's IP address, or the specified IPv4 subnet includes it.
ip6  The specified IPv6 address is the sender's IP address, or the specified IPv6 subnet includes it.
redirect  Another domain's SPF record legitimizes the sender's IP address.
include  An additional SPF request for the domain specified in the "include" statement includes the sender's IP address.
exists  The sender's IP address is authorized based on the client's connection or other criteria as per RFC7208.

  1. Log in.
  2. Click Advanced Zone Editor.
  3. Delete the auto-added SPF record and add a new one by filling out the form.
  4. Click Add Record.

  1. Log in and go to DNS Settings > Add Record.
  2. Set Type to TXT, leave Domain blank and enter the Record String (either TXT or SPF).
  3. Add it as per your email service provider's instructions.