This guide will explain how to add an SPF record in cPanels Zone Editor, there should only be one SPF, so if an SPF record already exists then delete it and add the default record.
SPF records help email providers validate an email has been sent from a know source. This guide is to set the SPF to hard fail all emails. This record should only be added if no emails are being sent from a domain.
TL;DR SPF records can be added as TXT records in cPanel via cPanel > Zone Editor > Manage > Add TXT Record > Save Record
Requirements
To complete this will require having a cPanel account and the SPF would look like “v=spf1 -all”
How to add a Hard Fail SPF record into DNS using cPanels Zone Editor
Step-by-Step Guide
1/ Search for Zone Editor
In cPanel search for ‘Zone Editor’ in the top right search bar and click on Zone Editor from the search results
2/ Click on Manage
The Zone Editor will show all domains inside the cPanel account, locate the Domain requiring the MX record adding and click Manage on the right hand side
3/ Add TXT Records
In the Zone Editor there is dropdown menu next to the Add Record option, click the dropdown arrow and select ‘TXT’ Record from the list of options
4/ Add TXT Record Details
In the Name section add the primary domain with a full stop (Tip: copy & paste this from another entry), the TTL can be set to the same as other TXT record and paste in the TXT record “v=spf1 -all”
5/ Cpanel Confirmation
cPanel will confirm that the TXT records have been successfully added. It is advisable to wait up to 24 hours to allow for DNS Propagation before validating
Video Tutorial
Play Video
Summary
The TXT record will now be visible in DNS and the SPF record will help signal to email providers that no emails should be sent on behalf of the domain