Add an SPF record

SPF stands for Sender Policy Framework, and it’s one of the most basic protections we have against email spoofing attacks. You can implement it with a few simple steps, and you don’t need a budget or additional services to enable it, so it makes no sense to ignore it. 

Let’s see how it works and what you need to do to set it up on your ScalaHosting account. Modern email communication is supported by the Simple Mail Transfer Protocol (SMTP) – a protocol that allows computers and servers to send emails claiming to be from any source address.

This wasn’t too much of a problem back in the 1970s when SMTP was developed, but it has since been exploited by phishers and spammers trying to fool victims into opening malicious messages and clicking phishing links – SPF was invented to stop this.

Suppose you have an online service running under the domain, and a hacker is trying to impersonate you. Unfortunately, it’s trivially easy to forge an email that has set as the sender. However, SPF gives email providers a way of checking whether the source is legitimate.

Before accepting the email, the recipient’s provider will query’s DNS zone. An SPF record in the DNS zone file contains the IP address of’s mail server. 

If an email is coming from an address, but the IP doesn’t match the one in the SPF record, then the sender’s address has been spoofed, and the message gets blocked. To enable SPF on your domain, you need to add a TXT record to its DNS zone file. 

SPanel and cPanel, the control panels you use to manage ScalaHosting’s shared and managed VPS hosting plans, let you edit your domain’s DNS zone through an easy-to-use graphical interface. Here are the exact steps you need to take.


By default, SPanel creates a new SPF record for every domain you add to it. You can find it in the DNS Editor available on the User Interface’s homepage. It mandates that emails for your domain should only come from your ScalaHosting virtual server. 

If you want to use another provider for your outgoing messages, you can modify the SPF record with the Edit button.

Add an SPF record, SPanel

If you need to add another record, you can use the form above the list of existing ones.

Add an SPF record, SPanel 2

Make sure you pick TXT from the Type drop-down menu and use the correct syntax.


In cPanel, mail-related DNS records are best managed through the Email Deliverability interface accessible via the control panel’s homepage.

Add an SPF record, cPanel

It displays a list of all the domains added to your cPanel account along with any potential problems in the Email Deliverability Status column. If there are any issues with the current records, you can click the Repair button to let cPanel fix them automatically.

Alternatively, you can use the Manage button to edit existing records and add new ones.

Add an SPF record, cPanel 2

If you happen to have any further questions, you can get in touch with our technical support experts at any time.

Was this helpful?

What’s your goal today?

1. Find the right Managed VPS solution

If you’re looking for industry-leading speed, ease of use and reliability Try ScalaHosting with an unconditional money-back guarantee.

2. Make your website lighting fast

We guarantee to make your WordPress site load in less than 2 seconds on a managed VPS with ScalaHosting or give your money back. Fill out the form, and we’ll be in touch.

Please enter a valid name
Please enter a valid website
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

3. Streamline your clients’ hosting experience

If you’re a web studio or development agency hosting more than 30 websites, schedule a call with Vlad, our co-founder and CTO, and see how we can deliver unmatched value to both your business and your clients.


Need a custom cluster or professional advice?

Book a meeting and get a free 30-minute consultation with Vlad, co-founder & CTO of Scala Hosting, who will help you select, design and build the right solution - from a single data center cluster to a multi-region & multi-datacenter high availability cluster with hundreds of servers.

Book a free consultation

4. Learn how to grow your website in 2024

An all-star team of SEO and web influencers are sharing their secret knowledge for the first time in years. Learn about the future of SEO, Web Design best practices and the secrets to getting the foundation for your website to thrive. Watch the exclusive webinar.

An Exclusive Insiders Look Behind The SEO and Web Development Curtain


Working in the web hosting industry for over 13 years, Rado has inevitably got some insight into the industry. A digital marketer by education, Rado is always putting himself in the client's shoes, trying to see what's best for THEM first. A man of the fine detail, you can often find him spending 10+ minutes wondering over a missing comma or slightly skewed design.