SmartVPS - the complete multi-account hosting solution! Each individual account comes with free backups, addon domains, PHP-FPM with OPcache and server-side caching for lightning-fast sites. And all this at a great price!
50% OFF ALL NEW PLANS TO HELP MORE BUSINESSES MOVE ONLINE

Adding SPF records

DNS records added via the "DNS Manager" section in the Control panel take effect only when the domain name uses the DNS service of your hosting account.

General info

Sender Policy Framework (SPF) is a DNS-based system that allows domain administrators to list the servers that are allowed to send email for their domain. The main purpose of this system is to fight email forgeries on the Internet. A flaw in the SMTP protocol allows anyone on the Internet to use any email address/domain as a sender of the messages they send. This is very often exploited by spammers and virus-spreading botnets - they use real domains as senders to give credibility to their messages. If you add an SPF record for your domain, then all mail servers on the Internet that use SPF checks will know which mail server your messages should come from, and will block as spam messages that use your domain as a forged sender. Note that adding an SPF record in the DNS server for your domain is not generally meant to fight spam sent TO your domain - it is meant to instruct recipient mail servers which is the real sending server for your domain.

A commonly used SPF record is:
v=spf1 a mx ~all
"v=" defines the version of SPF used. The "a" and "mx" strings specify the systems that are permitted to send messages for the domain. In this case, these would be the A and MX records of the domain - the servers that host the web and email services for the domain. The "~all" string at the end specifies that the mechanisms listed are all that should be used for matching. It also defines a SOFTFAIL policy.

Detailed information about SPF (Sender Policy Framework) is available at http://www.openspf.org.

Adding an SPF record through the SPF PROTECTION tool

The "DNS Manager" section of your hosting Control panel allows you to add an SPF record for your domain with a single click. Just use the Enable button under Mail Protection. This will automatically add the following SPF TXT record in the DNS records section below:v=spf1 a mx include:SERVERNAME.smtp-spf.sureserver.com ~all"SERVERNAME" would be the hostname of the particular server your hosting account is on.

SPF Protection

The SPF record above lists the following servers as allowed senders for your domain:
- the server, on which your hosting account is on,
- the current web server of your domain, in case your domain is not pointed to our webhosting service,
- the current email server of your domain, in case you your email service is not pointed to our email server.

Removing the SPF protection, by clicking the button Disable under it, would remove all existing SPF records for your domain.

IMPORTANT NOTE: When using the SPF protection tool, you should make sure that you are sending messages only through our server, and not through the SMTP server of your ISP or any other server that is not listed in the SPF record. Otherwise, your messages might be marked as spam. If you are sending messages through other mail servers as well, make sure these servers are added to the SPF record (see below for manually adding/editing an SPF record).

Adding an SPF record in the DNS Manager manually

If you want to add a custom SPF record (to list more sending servers, for example), you have the option to add/edit your SPF record manually.

1. Log into your Control panel and navigate to the "DNS Manager" section.

2. You can apply the changes globally for all domain names parked on the hosting account, or for a particular domain name only. Select the appropriate option from the "Show hostnames of:" drop-down menu.

Select a domain

3. At the bottom of the page you will see an "Add a new record" field. Select "TXT" from the "Type" drop-down menu.

Add a new record

4. In the "Subdomain" field type the name of the subdomain/host for which you want the SPF record to be valid. If you want to add the record for the main domain name, leave this field blank.

As sometimes the IP address of your account (the A and MX record) may differ from the server IP address, we recommend that you add the following SPF record.

v=spf1 a mx include:SERVERNAME.smtp-spf.sureserver.com ~allRemember to replace "SERVERNAME" with the hostname of the server your account is on. For example, if your account is on server s433, the string should be:
include:s433.smtp-spf.sureserver.comIf your account is on server299, the string should be:include:server299.smtp-spf.sureserver.comThe "include" mechanism in the SPF record will ensure that after any server IP changes, the SPF record will provide correct information about the servers allowed to send email for the particular domain.

Type your SPF record in the "Text" field and hit the "Submit" button.

Add a TXT record