How to create an SPF record for your domain

Sender Policy Framework (SPF) is a relatively new protocol used for fighting spam. SPF uses a TXT record in a file located in a domain’s DNS zone to specify a list of authorized host names or IP addresses from which emails can originate.

Once configured, SPF records can be verified by email servers that incorporate SPF verification in their anti-spam measures.

To find out more about configuring DNS records on HostPapa servers, read the following knowledge base article: What is DNS?

While the SPF record itself varies depending on the HostPapa email service being used, the steps to configure the record are very similar.

SFP configuration

When a new account is created with HostPapa, the SPF record will exist by default. But you can easily add options to it:

Head to the HostPapa Dashboard and log in. Select My cPanel from the top navigation menu.

Scroll down to the Email section and select Email Deliverability.

Look for the domain you need and click Manage.

Scroll down to your SPF status and click Customize.

All configuration options will be displayed. Click on the “+” from the option you want to add.

After finishing with the configurations, scroll to the bottom and click Install a Customized SPF Record to save.

How to create or edit an SPF record via DNS Zone Editor

Return to My cPanel menu and scroll down to Domains section. Click Zone Editor.

Now click Manage.

Click the arrow next to the Add Record button and select Add TXT Record from the drop-down menu.

In the Name field, enter your domain name with a trailing period (e.g. In the Record field, enter the following code, depending on the email service in use.

  • HostPapa Shared Hosting:v=spf1 a mx ~all


  • HostPapa Basic or Advanced Email:v=spf1 ~all


  • Microsoft 365:v=spf1 -all


  • Google Workspace:v=spf1 ~all

Click Add Record to save your settings.

If you do not have access to cPanel and your domain is pointing to HostPapa nameservers, please contact HostPapa support to configure SPF records on your behalf.


For further questions, or if you need help, please open a support ticket from your HostPapa Dashboard. Follow this link to learn how.



Was this article helpful?