Skip to main content

DKIM Not Working on Addon Doman

Comments

9 comments

  • cPRex Jurassic Moderator
    Hey there! It sounds like you've done everything correctly, as copying the DKIM record to Cloudflare is what I would recommend in this situation. Since the DNS isn't controlled by cPanel I don't have much advice on my end. It might be worth double-checking the record at Cloudflare to see if it matches the format of the cPanel record exactly. Here is what that looks like in plain text on my personal cPanel system: default._domainkey 14400 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8xWT/7EhSq2NStifQU4lBMvs4nDMN6G3ieAGqabfPyci6l8Sz0h6EtytqQYkn1wDG6kApWZVz8GeItYSw8SGN9LHnbCBGNLlY6DeagYgrvpbWhfnFhASaECEJEGjGUKIdu+TEysPyjlycNh+MRKkPD73luJ9RGBdyUXJtiYoDA5GRJKFkRKVMMIzZtsrI2CMS" oYDipI67NnCh/LZcYIFdROippMQnqJlq3kBsTtzdKXeWuZb4s+kJDlz1y7HAxFjp5VRj6S7EcFjXcCfyE6iHea+5XIhgt+K5B9DIbfGpSY8F2zWjES7D6BjpImaV3lloqXMP9KXWTc6BekHeJbW3wIDAQAB\;
    0
  • BLOB
    Thanks for the reply but unfortunately that's not the problem. The record's content in Cloudflare isn't split in parts, but it needs to be one piece instead. I've already checked the live DKIM record with a few different online tools and all of them said it was fine syntax-wise.
    0
  • cPRex Jurassic Moderator
    If the formatting is correct, it might be best to reach out to Cloudflare directly to see if there is anything they can help with on their side. For whatever reason, the DNS record there is not being properly read, but that isn't something you would be able to fix with cPanel tools.
    0
  • BLOB
    I'll probably ask them as well, but I doubt it's CloudFlare's fault because all the test tools I've tried so far say that the default selector is fine for the live record. Is it possible that another DKIM selector is needed instead of default? Something related to addonexample.mainexample.zzz or mail.addonexample.zzz? And on a maybe related note - right now my hosting provides me with a dedicated IP address but the mail still goes through their main domain for the whole server (let's call it sharedserver1.zzz) instead of my own main domain - is there any way for this to be avoided? The reason I'm asking is because their domain has already been blacklisted and it kinda defeats the purpose of the dedicated IP. //EDIT: Seems I'm not the only one with that problem, but unfortunately there's no solution there either -
    I saw in another topic that it might be related to CloudFlare's IPv6 but can't test it unless it breaks again.
    0
  • cPRex Jurassic Moderator
    You can change the IP used to send mail on your server with the steps here:
    0
  • BLOB
    In other words I need to talk to my hosting provider and send them the link above, since I don't have root access to the server. Thanks!
    0
  • cPRex Jurassic Moderator
    Ah, if you don't have root access, then yes, you wouldn't be able to make those changes on the cPanel side of things.
    0
  • mikeserv
    Just a note to say that if you enable DKIM in Cpanel before your TXT records propagate (your locally configured resolver doesn't have the updated records yet) on the remote authoritative DNS, Cpanel won't enable it, but it does store your settings. When you went in to Mail Deliverability again it checked the situation again and enabled it. I went through the same thing and I was all "WTF" because I didn't realize it wouldn't start working on its own until that happened. When not using WHM/Cpanel's DNS server (authoritatively) It's kind of chicken-before-egg because you don't know the public key to create your TXT record until you generate it. If we'd have let the form sit there for an hour or so before hitting the button to finalize the installation of the key it probably would have worked, I'm guessing. Also, at first I didn't understand that I couldn't just generate my DKIM keys elsewhere and manually add the private key through CPanel. (That's how I thought it was going to work at first but the fields aren't editable) Hope this helps some other confused souls finding out that things don't work how they thought they would :-)
    0
  • BLOB
    @mikeserv - thanks, that sounds like a reasonable explanation for the cause of the problem.
    0

Please sign in to leave a comment.