SPECIAL PRICE 20% OFF FOR ALL WEB DESIGN, MAINTENANCE AND CONTENT EDITS PACKAGES. USE COUPON CODE SC20OFF AT CHECKOUT.

Create an SPF record

Table of Contents

Create an SPF record #

Posted 23rd November, 2018

We can configure your DNS for you. We can either do this as a one-off task, or as one of unlimited tasks as part of our maintenance plan.

Get Started

An SPF record is a DNS TXT record which includes information on how your emails should be delivered. It is used as a reference by mail recipients in order to judge the likelihood of mail being spam, or to find out whether mail should be accepted or not.

Because of the ease with which a sender can spoof an email address, there is no guarantee that the message you receive from dan@hisdomain.com is actually from Dan; that could just be a faked header. And when Dan actually sends his emails not only from his own mailserver, but sends round emails from mailing software like CampaignMonitor, and from the contact form on his website, then it can be hard for a spam filter to differentiate between spam and legitimate messages.

An SPF record essentially contains two parts. The first is a set of servers from which mail is to be expected. This can include a list of IP addresses or full hostnames (see below for the full criteria). The second part is a rule on how that list should be treated: whether any messages that don’t match those rules should be discarded or delivered anyway.

Some examples of SPF records are as follows:

v=spf1 ip4:192.168.0.1/16 -all
v=spf1 +a +mx -all

Broken down to the constituent parts:

SPF Designation List Rules
v=spf1 ip4:192.168.0.1/16 -all
v=spf1 +a +mx +all

SPF Designation is always v=spf1. This simply defines the TXT record as SPF.

In the list criteria, the options that can be added are as follows:

Name Description Example
a The A record of the domain a
a:domain The A record of another domain a:fixed.net
mx The resolvable IP of the MX record of the domain mx
ipv4 An IPv4 address ipv4:1.2.3.4
ipv6 An IPv6 address ipv4:1080::8:800:0000:0000
include A domain that send mail include:mywebsite.com

IP addresses can also be given a CIDR range, for example /24.

Powered by BetterDocs