NewExtra server protection with Measured Boot & UKI images.View Measured Boot
BlogDocumentationFAQNo Third-Party CookiesContact Us
  • Pricing
Log inSign up
Cloud VPSVDSMemory-Optimized VDSStorage-Optimized VDSWindows VPSBitcoin VPSDDoS ProtectionPrivate Networking (VPC)Floating IPsAdditional Server SupportMicrosoft LicensesDatacenterNetworkDocumentationFAQNo Third-Party CookiesConfidential ComputingSelf-Hosted VPNBlogAboutBrand GuidelinesAffiliatesContact UsLegal & Compliance

Products

  • Pricing
  • Cloud VPS
  • VDS
  • RAM-Optimized VDS
  • Storage-Optimized VDS
  • Windows VPS
  • Bitcoin VPS
  • DDoS Protection
  • Private Networking (VPC)
  • Floating IPs
  • Microsoft Licenses
  • Additional Server Support

Explore

  • Documentation
  • Developers API Docs
  • FAQ
  • Datacenter
  • Network
  • Looking Glass
  • Confidential Computing
  • Cookie Policy
  • Self-Hosted VPN

Company

  • Blog
  • Contact Us
  • About Us
  • Brand Guidelines
  • Affiliates

Legal & Compliance

  • Terms of Service
  • Privacy Policy
  • Data Processing Agreement
  • Acceptable Use Policy
  • Microsoft Software Terms of Use
  • Refund Policy
  • Report Abuse

Products

  • Cloud VPS
  • VDS
  • RAM-Optimized VDS
  • Storage-Optimized VDS
  • Windows VPS
  • Bitcoin VPS
  • DDoS Protection
  • Private Networking (VPC)
  • Floating IPs
  • Microsoft Licenses
  • Additional Server Support
Pricing

Explore

  • Documentation
  • Developers API Docs
  • FAQ
  • Datacenter
  • Network
  • Looking Glass
  • Confidential Computing
  • Cookie Policy
  • Self-Hosted VPN

Company

  • Blog
  • Contact Us
  • About Us
  • Brand Guidelines
  • Affiliates

Legal & Compliance

  • Terms of Service
  • Privacy Policy
  • Data Processing Agreement
  • Acceptable Use Policy
  • Microsoft Software Terms of Use
  • Refund Policy
  • Report Abuse

© VPS.BG Ltd. 2026 · All rights reserved!

Made with passion in Bulgaria · VAT ID: BG203144520

Contents

  • What is a SPF record?
  • What is the syntax of a SPF record?
  • How to create a SPF record for my shared hosting domain?
  • How to add or create a SPF record for your VPS-hosted domain
  • How can I check whether I have created my SPF record correctly?
  • Check your records regularly

Subscribe to Our Newsletter

Join 5000+ subscribers and receive helpful content, deals and more! We promise no spam - 100% great content. Unsubscribe anytime.

Share Article

#Email
  1. Documentation
  2. /
  3. #Email
  4. /
  5. What is a SPF record and how to create one

What is a SPF record and how to create one

Published: 18 February 2021 • Updated: 27 May 2026 • 5 min read

#Tutorial#Email

Have you ever wondered why your emails are ending up in the recipient’s SPAM folder? Have you ever been a victim of a third-party sending emails from your domain without you noticing? Have you noticed that your emails are automatically being flagged as SPAM?

If the answer is yes to one of those questions, then you might not be using SPF records. The SPF technology helps protect your domain from sending SPAM and spam signals while also reducing the chance of your emails being picked up by different SPAM filters.

What is a SPF record?

SPF, short for Sender Policy Framework, is a technology that helps validate and authorize the sender of a given email. The way in which SPF works is by checking whether the domain that the email is being sent from has an active SPF record while also ensuring that it contains the IP address of the sender. To put it short, it checks whether the email has been verified by the domain owner.

If this check fails, then the email could get flagged as SPAM and the email itself will never arrive in the recipient’s inbox.

In reality, the SPF record is actually a plain TXT record stored and located in the domain’s DNS zone, which contains a list of all IP addresses that are verified to send emails from the domain to which the zone applies.

What is the syntax of a SPF record?

As we mentioned earlier, the SPF record is a TXT record in the DNS zone of the domain. Because of this, it requires very specific syntax in order to work correctly.

Here is an example of such a record:

v=spf1 +a +mx +ip4:91.92.66.66 -all

But what does this all mean in simple words? In short, the example can be interpreted as follows - we have told the email recipients that the server, which is verified to send emails from our domain name, has an IP address of 91.92.66.66. Now, if a server with a similar IP address like 91.92.66.67 tries to send an email from the same domain, there is a very high chance that  the email will be flagged as SPAM.

But you are probably still wondering what all those other symbols and commands mean. Here’s a basic explanation:

v=spf1It indicates that this TXT record is actually an SPF record and it shows the SPF version that is being used. There was another version of SPF, but it was discontinued.
+аValidate the email, if the IP address (from which the domain is sent) has an A record to the domain sender.
+mxValidate the email, if the IP address (from which the domain is sent) has an MX record to the domain sender.
+ip4:IPValidate the email, if the IP address (from which the domain is sent) matches the IP address provided in the record.
-allCancel the email in case of unsuccessful validation.
 

The last parameter has two more versions:

~allAccept the email, but mark it as unreliable, in case of unsuccessful validation.
+allAccept the email, in case of unsuccessful validation. Strictly not recommended!
 

How to create a SPF record for my shared hosting domain?

All VPSBG accounts have active SPF and DKIM records created in advance in order to make it easier for our clients.

If you would like to change the record or if you would like to create a new one from scratch, you can follow these steps:

  1. Log into cPanel
  2. Go to ‘Domains’ and then select ‘Zone Editor’
  3. Click ‘Manage’ next to the domain for which you would like to create the record
  4. You will see all records for your selected domain. If you want to change a SPF record, you have to find it in the list
  5. If you want to create a new SPF record, click ‘Add Record’ and choose the option to add a TXT record. Fill out the required fields and click ‘Add Record’

How to add or create a SPF record for your VPS-hosted domain

If you want to add or create a SPF record for your cloud VPS, you can simply follow the steps that we mentioned previously. Just remember to substitute the IP address in the example SPF record with the IP of your VPS server. Then follow the steps and create a TXT record for your domain through the DNS zone.

How can I check whether I have created my SPF record correctly?

The easiest way to check whether you have successfully created a SPF record is by using MXToolBox. The tool will automatically check whether the record exists and if it is correct. It will also give you information about which IP addresses are allowed to send emails as well as what actions they can perform.

IMPORTANT: Keep in mind that a SPF record is still a DNS record, meaning that it is cached. Because of this, you need to be aware that it might take up to 48 hours in order for it to be created!

Check your records regularly

It is also important to mention that every time something changes in your infrastructure, you need to ensure that your SPF record is still accurate. If you are using the services of an email hosting provider like Mailchimp and all emails are being sent from your domain, you still need to add their servers into your SPF record.

Additionally, there are also a number of other syntactic structures that can be used when creating a SPF record with some examples being ‘exists’, ‘redirect’ and ‘include’. You can use these extra structures to match your SPF records to different purposes.

You can also contact our support if you encounter any problems while trying to create a SPF record!

Subscribe to Our Newsletter

Join 5000+ subscribers and receive helpful content, deals and more! We promise no spam - 100% great content. Unsubscribe anytime.

Share Article

Related Content

19 July 2023

How to install Windows on a cloud server

In this tutorial, we are going to show you how to install Windows OS on your cloud server from an ISO file with Windows Server 2022 & VirtuIO drivers.

#Tutorial#Windows
23 September 2021

What is an addon domain and how to add one to your shared hosting account using cPanel

In this tutorial you will learn what an addon domain is, how to create it using cPanel and when it is appropriate to make use of one.

#Tutorial#CPanel
01 April 2025

How to perform AMD SEV-SNP attestation inside a guest virtual machine

In this tutorial, we are going to show you how to perform AMD SEV-SNP attestation inside a guest virtual machine to verify trust and security.

#Tutorial#SEV
14 September 2022

How to set a specific PHP version for different directories

Learn how to set custom PHP versions and options for different directories or folders on your website or application using cPanel.

#Tutorial#CPanel

Unrivaled Performance & Security

Deploy a powerful and reliable Cloud VPS today to ensure your privacy. SEV-SNP included for maximum protection.

Configure VPSContact Us