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 with remote mailserver

Discussion in 'E-mail Discussions' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page