What SPF record is suggested for shared hosting?

The SPF (Sender Policy Framework) system allows you to specify servers and IP addresses that are authorized to send mail from your domain(s). This feature works to prevent outgoing spam messages.

If a domain name is using our shared hosting platform and no external services then these instructions will help you create an SPF record. There are online tools which can do this automatically but it is much better to write one out manually to make sure it is correct. Any SPF record should begin with:

  • v=spf1

The elements you would want to include are:

  • "+a" ~ Your server will approve all of the hosts that you specify to send mail. You do not need to specify your primary mail exchanger or any other server for which you created an MX record, because your server automatically includes them.
  • "+mx" ~ Your server will approve all of the MX entries for every domain that you specify to send mail.
  • "+ip4:IPADDRESS" or "+ip6:IPADDRESS" ~ Your server will approve all of the IP Address blocks that you specify to send mail. You must specify IP Address blocks in CIDR format (for example,,, or 2001:db8:1a34:56cf::/64).
  • "+include:DOMAIN" ~ The SPF settings for all hosts you specify in this list will be included with your SPF settings. This is useful if you will be sending mail though another service (e.g. G Suite, Office365, etc).

The record should end with either:

  • "~all" ~ to cause any emails sent from other servers to result in a "soft fail". This means mail servers should accept the emails but mark them as suspicious. Actual implementation is variable so this can give unpredictable results.
  • "-all" ~ to cause any emails sent from other servers to be rejected

So the record will look something like this:

  • v=spf1 +a +mx +ip4: ~all

You can then add this record as a DNS via our Authentication Management screen. This will ensure our webmail client, the mailserver and web server currently assigned to this domain are authorised senders.


  • 5 Users Found This Useful
Was this answer helpful?

Couldn't find what you are looking for?

Related Articles

I am getting a 451 Message temporarily deferred message when sending to Yahoo or BT - What does this mean?

Yahoo have extremely strict criteria for accepting email and often defer e-mail if they think...

Why is my mail client downloading duplicates of existing emails?

This issue will only occur when downloading mail via POP3. It is not something to...

How do I recover deleted mail in Exchange?

To recover mail that has been removed from the 'Deleted Items' folder in...

I cannot send email, but I can receive it.

If you are having trouble sending mail but not receiving it, there is a possibility that your ISP...

Why does my email bounce with 550 relay not permitted?

This usually happens because the nameservers on the affected domain have been changed to make the...