SERVERS - How to create an SPF record

What is an SPF record?

An SPF Record protects your customers, brand and business from phishing and spoofing attacks by authenticating your email through a protocol known as SPF (Sender Policy Framework)


How to create an SPF record.

Get all IP addresses that are used to send email

The first thing to do is identify which servers within the business mail is sent from. Consider the location of all server areas such as the mail server, web server, and any other third party mail server used that sends email on the behalf of your brand (this could include mailing list providers etc.)


Get all sending domain names

Create a sending domain from all domains relevant to the business. 


Create the SPF record 


  • v=spf1 (is version 1 of spf)
  • ip4:2.3.4
  • -all (This is the most secure record as it will return an SPF Failure message to domains not allowed)


v=spf1 ip4: ip4: -all 


Publish the SPF record to DNS

Add the file as an arecord and paste the completed text of the completed SPF record into the record. 

Then publish / upload the record.


Check that the SPF record is working is a useful resource to check that the SPF record is online and working. 



Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Article is closed for comments.