The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Emails go to spam using CloudFlare

Discussion in 'E-mail Discussions' started by Drumrocker365, Aug 17, 2016.

  1. Drumrocker365

    Drumrocker365 Well-Known Member

    Joined:
    Apr 15, 2014
    Messages:
    72
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi,

    Please forgive my "stupidity," but I'm a noob when it comes to email hosting. I route my domain through CloudFlare, and all of my emails end up in spam when I test it sending it to my personal gmail. It is saying "In order to ensure that SPF or DKIM takes effect, you must confirm that this server is an authoritative nameserver for “example.com”. If you need help, contact your hosting provider."

    If I'm understanding right, this is trying to say that I have to point my domain nameservers to the internal cPanel ones, and I can't use CloudFlare? I feel like there has to be a better way. I would like to continue using CloudFlare. Forgive me if this is a totally stupid question, but I'm not experienced with hosting my own email.

    Thanks,
    Christian
     
    #1 Drumrocker365, Aug 17, 2016
    Last edited by a moderator: Aug 17, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You can continue using CloudFlare, however because the cPanel server doesn't manage the DNS for your domain name, you must manually add the SPF/DKIM DNS records into the DNS zone directly from the CloudFlare management interface:

    How do I add DKIM records?
    How do I add a SPF record?

    Thanks!
     
  3. Drumrocker365

    Drumrocker365 Well-Known Member

    Joined:
    Apr 15, 2014
    Messages:
    72
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi,

    I'm familiar with adding these records to CloudFlare, but I don't know what I'm supposed to put for the values. Are the values posted anywhere?

    Thanks
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can obtain the record by enabling SPF/DKIM under "cPanel >> Authentication" and then viewing the zone file through "WHM >> Edit DNS Zone" or via this command:

    Code:
    cat /var/named/domain.com.db
    You may also find this thread helpful when adding the DKIM entry:

    DKIM and CloudFlare

    Thank you.
     
  5. ruzbehraja

    ruzbehraja Well-Known Member

    Joined:
    May 19, 2011
    Messages:
    383
    Likes Received:
    7
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    From: DKIM recipe with 3rd party / external DNS

     
Loading...

Share This Page