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!

DKIM with remote mailserver

Discussion in 'E-mail Discussion' started by iTea, Jun 6, 2016.

Tags:
  1. iTea

    iTea Registered

    Joined:
    Jun 6, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Netherlands
    cPanel Access Level:
    Website Owner
    We have three VPS's, all WHM/cPanel, two for hosting websites with a remote mail exchanger and one acting as mailserver for these domains.

    The settings on the mailserver are thus that we get 10/10 on mail-tester sending mails directly from the mailserver. However, when we send a mail via a PHP-script on one of the webservers performance drops drastically: DKIM signature is invalid.

    The DKIM private key from the webserver is send with the mail (basic PHP mail() function), but the public key from the mailserver is in DNS. So there is a mismatch. That is what we think at least.

    What is the simplest way to overcome this problem? Make an additional public key in DNS and send the selector for this new key with the mail? But then we have to get away from the basic PHP mail () function probably?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,806
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. iTea

    iTea Registered

    Joined:
    Jun 6, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Netherlands
    cPanel Access Level:
    Website Owner
    I don't think so, DMARC is fine, we only have the problem that the DKIM private key that is sent with the message from a script on the webserver via the mailserver doesn't match with the DKIM public key that is communicated via DNS by the mailserver. And that is costing points.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,806
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Are you using the DSO handler for PHP? If so, please note the following from the Authentication document:

    Let us know if this helps.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice