Follow these steps to create an SPF record and add it to your DNS:
List the email servers and their IP addresses
The first step is to list all the email servers and all the IP addresses you want to allow to send emails on your behalf.
In most cases, you’ll be provided with this information by your email service provider.
At Hunter, we use both @hunter.io and @mail.hunter.io. If you use several domains, include them all and secure them.
Go to your DNS settings
Now, go to your DNS settings, and create your SPF record.
Log in to your Namecheap account.
Select Domain List. Next, click on the Manage button.
Go to the Advanced DNS tab.
There, click on Add New Record.
Type: select TXT Record
Host: add @ that corresponds to yourdomain.tld or a subdomain
Value: add the tag v=spf1
Follow v=spf1 with the IP addresses that are allowed to send emails using your domain. For example, v=spf1 ip4:22.214.171.124 ip4:126.96.36.199
Specify legitimate third-party senders by adding an “include” statement to your SPF record (e.g., include:zoho.com).
End the record with an -all tag.
TTL: Select Automatic
Click on the Save all changes button.