An accurate SPF record will help improve the overall deliverability of your email messages and protect your domain against email spoofing.
- Exact Hosting basic SPF record
- SPF basics
- Adding or modifying SPF records
- SPF configuration examples
Exact Hosting basic SPF record
Here is the most widely used SPF record in use for Exact Hosting email hosting customers:
v=spf1 include:spf.exacthosting.com ~all
SPF basics
SPF (sender policy framework) is a spam protection method based on the authorization of the email sender. The SPF record is simply a TXT record added to the DNS settings of your domain that defines which mail servers are authorized to send emails.
There are two important rules to consider when setting up or modifying your SPF record:
- You can only have one SPF record per domain. More will cause DNS conflicts, and the SPF records will not resolve.
- The Exact Hosting platforms have a 255-character limit. As a result, the full SPF record will need to be shorter than 255 characters.
Adding or modifying SPF records
If you already have an SPF record in place within your DNS or see that you have multiple SPF records, our team can help you decide what changes to make. Please reach out to our support team for assistance.
If you do not already have an SPF record configured in your DNS, adding one is fast and easy.
DNS management
- Sign into the Exact Hosting portal.
- Find your domain list by selecting Domains followed by My domains.
- Click on the domain name's row to see the overview page for your preferred domain.
- Select DNS management from the domain overview page.
- After confirming no SPF record already exists, add the new record and click Save changes.
cPanel DNS
- Sign into the Exact Hosting portal.
- Select Services followed by My services.
- Select your cPanel plan from the list.
- Click Log in to cPanel from the side navigation.
- Choose Zone editor.
- Click Manage for the domain you're updating.
- Once you've confirmed no SPF record exists, click +Add record and select Add "TXT" record.
- Enter your domain name in the name field, base SPF record in the record field, then click Save record.
DNS hosting service
- Sign into the Exact Hosting portal.
- Select Services, followed by My services.
- Click DNS hosting service to see the overview page.
- Select Host records.
- Insert the SPF record and click Submit.
SPF record syntax
An SPF record consists of several parts, as noted below.
Please reach out to support if you have questions about advanced SPF configurations.
SPF part | Relevance |
v=spf1 | Defines this TXT record as an SPF record. It is required for this syntax to be at the beginning of the value for each SPF record. |
a | Defines the DNS A record of the domain as a valid sending source. |
mx | Defines the DNS MX record of the domain as a valid sending source. |
-all | Specifies that all emails sent through a different server than those already listed as "ok" will return a code of "hard fail." The email will not be delivered and will generate a bounceback email. |
~all | If you want to allow an email sent through a different mail server to be delivered, you can force a "soft fail" by using the '~all' flag. Email sent through any unlisted mail servers will deliver to the recipient but be flagged as a suspicious sender. |
SPF configuration examples
Desired outcome | Example |
Specify a single IPv4 address that can send emails |
v=spf1 ip4:209.59.191.64 -all This record example would allow mail to be sent from a mail server at the IP address 209.59.191.64 only. Mail sent would not deliver from mail servers on any other IP address, and the sender would receive a bounceback. |
Specify a range of IPv4 addresses that can send emails |
v=spf1 ip4:192.168.0.1/16 -all Allows mail to be sent from any IP address between 192.168.0.1 and 192.168.255.255. |
Specify a mail server that can send |
v=spf1 mx:mx1.domain.com -all Allows mail to be sent from a mail server named mx1.domain.com. The system would not deliver mail from any other mail server address, and the sender would receive a bounce message. |
Specify multiple items in one SPF record |
v=spf1 a mx ip4:209.59.191.64 mx:mx1.domain.com -all Allows an IP address and a mail server to send out emails. |
Make the domain unable to send any emails |
v=spf1 -all All emails will bounce back to the sender. |
Specify a single IPv6 address that can send |
v=spf1 ip6:1080::8:800:200C:417A -all Would allow mail to be sent from a mail server at the IP address 1080::8:800:200C:417A only. |
Specify a range of IPv6 addresses that can send |
v=spf1 ip6:1080::8:800:200C:417A/96 -all Allows mail to be sent from any IPv6 address between 1080::8:800:0000:0000 and 1080::8:800:FFFF:FFFF. |
Specify another domain that can send email from the domain |
v=spf1 include:anotherdomain.com -all Allows mail to be sent on behalf of this domain from servers resolving to other specific domain names. |
Was this article helpful? If not please submit a request here