Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

DKIM Invalid using Cloudflare

Discussion in 'E-mail Discussions' started by Bananenbaas, May 12, 2017.

Tags:
  1. Bananenbaas

    Bananenbaas Member

    Joined:
    Dec 8, 2014
    Messages:
    11
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hello guys,

    I've got a problem with DKIM, I have a domain sending emails to gmail,hotmail etc. But they are almost all ending up in the spam folder. I've been checking everything and it looks like the DKIM is invalid. The domain runs through CloudFlare so all the DNS changes will be done in Cloudflare. I've copy&pasted the DKIM default._domainkey from the DNS Zone on the cPanel nameservers to Cloudflare, no succes.

    When I check the default selector for the domain in mxtoolbox the DKIM is valid but when I check e-mails in gmail, mail-tester.com or isnotspam.com the DKIM seems to be invalid...
    I'm quite clueless at the moment...
     
  2. Bananenbaas

    Bananenbaas Member

    Joined:
    Dec 8, 2014
    Messages:
    11
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    It seems that the DKIM given by cPanel is invalid??

    When I check the DKIM txt record given by cPanel using Check a DKIM Core Key it gives me te error: The p= field must be base64 encoded

    Also when I check with dkimvalidator.com it gives me:
    Validating Signature
    result = invalid
    Details: public key: invalid data

    I've also tried to do the steps suggested in this thread:

    1.- Open cPanel and go to "Email Authentication". Turn it OFF and then On again. That will create new key code.
    2.- Copy the code and Find the a space and " at the middle of the code and delete those 2 characters.
    3.- Copy the code with the deleted characters and validate it at DKIM Core Tools
    4.- If you have a Master DNS on another server, paste de code validated at dkimcore.org

    This did not help either...

    Also I noticed the raw DKIM output is not viewable in cPanel:

    - Removed -
     
    #2 Bananenbaas, May 12, 2017
    Last edited by a moderator: May 12, 2017
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  4. Bananenbaas

    Bananenbaas Member

    Joined:
    Dec 8, 2014
    Messages:
    11
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I solved it by using my own DNS servers and setup Cloudflare through CNAME :)
     
    cPanelMichael likes this.
Loading...

Share This Page