ID #1094

What is SPF and how to setup SPF to include mail relay IPs

Sender Policy Framework  or SPF is an email validation system designed to prevent email spam by detecting email spoofing, a common vulnerability, by verifying sender IP addresses. SPF allows administrators to specify which hosts are allowed to send mail from a given domain by creating a specific SPF record (or TXT record) in the Domain Name System (DNS). Mail exchangers use the DNS to check that mail from a given domain is being sent by a host sanctioned by that domain's administrators.

If your domain already has SPF defined for the domain, you MUST add the following string to your existing SPF record to include our server IPs:


If your domain has SPF and not including our IPs, emails to Gmail and other addresses could fail. To setup SPF to just include our IPs, you can setup your domain SPF as:

                v=spf1 ~all

To find out what is the current SPF for your domain, you can open a DOS/Linux prompt and use the "nslookup" command. For example, to find out what is the SPF for, you can use command

C:> nslookup -type=TXT text = "v=spf1 ip4: ip4: ~all"

Tags: mail relay, SPF

Related entries:

You can comment this FAQ

Comment of Alan Brenner:
This doesn't tell me how to set up SPF through the dnsexit web UI. Hoping this is correct: In the My Account page, Domain List section, click 'Edit DNS' for the domain that DNS Exit relays email for, then 'Add TXT', paste "v=spf1 ~all" in the 'TXT Data' field, click 'Add TXT', and finally click 'Save Changes'.
Added at: 2016-01-19 16:20