Email spoofing is when the sender of an email is changed to so that it appears an email is coming from someone other than the actual sender. This can be used to trick people into thinking that spam mail was coming from a legitimate source. An SPF record is a setting that requires that any email sent from your email account must have originated from your server with Web Hosting Hub, and can not be sent by a potential spammer on a different server. This can help prevent someone from spoofing your email accounts.

How do I set up an SPF Record?

Setting up an SPF record is the current standard for preventing email spoofing.  Once the SPF Record is enabled, no one will be able to have email show as from your address unless it was sent from your account with Web Hosting Hub. SPF records are enabled in cPanel.

  1. To set up your own SPF Record, first log into your cPanel.
  2. Click on the Email Authentication icon under the Email section of the cPanel home page.


  3. On the Email Authentication page, scroll down near the bottom of the page and select the box next to All Entry (ALL):


  4. Scroll back up and click on the Enable button under SPF.


  5. On the next page you will see the confirmation message that SPF records have been enabled. Click on the Go Back link to return to the Email authentication page.


  6. You will see that SPF records are now enabled for your account.

    **Important: You will see the following messages:
    In order to ensure that SPF or DKIM takes effect, you must confirm that this server is an authoritative nameserver for If you need help, contact your hosting provider.
    Warning: cPanel is unable to verify that this server is an authoritative nameserver for [?]
    image of spf domain keys nameserver error
    This is because we host your DNS on a separate server. As long as you are pointed to our Nameservers, then we are the authoritative Nameserver.

    You can check your current Nameservers by performing a Whois lookup.

Enabling SPF records is one method for helping to prevent spam. If you have not enabled Domain Keys for your account as well, please see our tutorial on enabling DomainKeys.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?


n/a Points
2014-10-11 8:35 pm

But how do I reduce spoofing if these features are already turned on, and yet it is continuing?

16,266 Points
2014-10-12 11:32 pm
Hello Michael,

By enabling the SPF record for the account to the -all setting, you should eliminate any spoofed emails from servers that check. That is the issue, though. The receiving server must check for SPF records in order for them to work. If they do not check, then spoofed emails get through and there is nothing more you can do. This is bad security on the part of that email server, but that is on them.

Kindest Regards,
Scott M
n/a Points
2014-12-02 11:10 pm

I have enabled SPF record and Domain Keys.  Yet, emails that I sent to customers is often marked as SPAM and does not end up in their inboxes.  Are there any other settings I can change?


2,342 Points
2014-12-02 11:15 pm
It can take up to 24 hours for SPF changes to take effect. Outside of this, be sure to check over your messages to ensure that they do not contain common spam words, ensure that spam has not been previously sent using this email address, and be sure that you are fully authenticating with the server when sending mail using your mail client.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.