Free SPF Record Generator

Free SPF record generator that creates and validates DNS record to solve email problems and protect you from email spoofing.

Start Free Trial Start Free Trial
Created SPF Record

Why do you create a SPF record?

SPF - Sender Policy Framework aims to prevent the falsification of the sender's address in emails.

Note: Specifically, you should define records to block the sending of emails through unauthorized servers.

For this purpose, store an SPF record in DNS (Domain Name System) in the form of a TXT entry in the additional information section. This TXT-based SPF entry contains specific information about authorized mail servers. The recipient mail server queries the domain's SPF record to check whether it came from an authorized mail server or an unauthorized one. Based on this information, it either accepts or rejects the email.

SPF Record Creator

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

You can define your SPF record by selecting the TXT record type in your DNS service.

The primary purpose of this 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.

The rules below determine 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.

Take a look at the table below to get a glimpse of some commonly used operational mechanisms.
Mechanism Valid Conditions for Given Instruction
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. After logging into cPanel, click on the Advanced Zone Editor link.
  2. On the opened page, delete the automatically added SPF record that appears when setting up a hosting account.
  3. After the deletion, add an SPF record from the form at the top. Fill in all the fields and then click on the Add Record button.

  1. Log in to your PLESK Panel.
  2. Go to DNS Settings > Add Record.
  3. Set Record Type to TXT.
  4. Leave Enter Domain Name blank.
  5. Enter Record String: (Select TXT or SPF from this field.)
  6. Add it as specified by the company providing your email service.