If you have ever encountered problems with emails (Spam, Phising or even Spoofing), then you probably haven't set-up your SPF record yet.
Basically, the SPF record is a DNS record that must be added to your domain. This simple record, which is treated as a TXT record, is designed to validate the system from which emails can be sent. Servers and Firewalls will verifiy this record to ensure host from which the emails are sent were actually autorized by the SPF record to be sent.
Generating the SPF record
If you don't have the time to read how to generate an SPF record, then don't worry there are some handsome tools online that will help you with the generation of the allowed servers to send. As an example, we uses the SPFWizard web tool to create our records.
Once you have filled up your domain informations with the SPFWizard, you will realise near the top on the first line that a line like the following one will be available :
swiftcloudhosting.com. IN TXT "v=spf1 mx a ?all"
Depending who is hosting your name servers, you will need to go and add a TXT record with the proper informations generated with the wizard.
Adding the SPF Record to a WHM/cPanel installation
You are likely to use the Industry Standard WHM/cPanel to monitor and control your server / website. If you do, then here is how you can easily add the generated SPF record to your installation.
From the Web Host Manager Control Panel
- Once logged into the WHM Panel, search into the list for "Edit DNS Zone" under the DNS Function table.
- You will then be required to select the domain for which you want to edit the DNS Zone.
- Once you have selected the domain, you will have to go completely to the bottom of the page, where you can find empty boxed under the "Add New Entries Below This Line".
- To add the SPF Record, refer yourself to the picture below.
Note : Ensure that your domain is ending with a "." It is not a mistake here that its written swiftcloudhosting.com. It is required by the DNS entry.
Note : Make sure that you select the TXT record, and that you input the SPF record inside a double quote " ", as per shown in the picture.