Skip to main content

PHP and DKIM

Comments

7 comments

  • cPanelMichael
    Re: Php dkim Hello :) Are you using DSO as your PHP handler? If so, this is addressed in the Email Authentication document: Add Headers in DKIM If you already use DSO and you enable DKIM, emails sent will not have information in the Return-Path, Reply-To, or From fields in the email header. As a result, DKIM will show that nobody is the sender. If you use a PHP script, you should manually add the headers. The following is an example of a PHP script that adds the missing parts to an email header:
    0
  • gchesnut
    Re: Php dkim cPanelMichael, Yes, we are using DSO. We are filling the fields from the PHP script; Reply-To with the senders email address and From with no_reply from our domain. We are not filling the Return-Path field. Is not having the Return-Path field the reason the PHP script emails are not using the WHM enabled DKIM Txt record? Appreciate your help. Thanks, Gary ....
    0
  • cPanelMichael
    Re: Php dkim Yes, you must use all of the fields listed in the example from my last response or DKIM will not work as expected. Thank you.
    0
  • gchesnut
    Re: Php dkim cPanelMichael, Here"s current status: - cPanel DKIM enabled with default cPanel DKIM entry - Reply-To, Return-Path fields in email header are filled - From is from no_reply@domain.com - DNS ZoneFile /https://www.ultratools.com/tools/zoneFileDumpResult reports - No DKIM found in DNS Question " any idea why DKIM is not found in DNS ? Domain Key was found. Thanks, Gary ....
    0
  • cPanelMichael
    Re: Php dkim Feel free to open a support ticket so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thanks.
    0
  • gchesnut
    Re: Php dkim support ticket number = 5012831
    0
  • gchesnut
    Re: Php dkim Per cPanel Tech Support "It would not work because you would have to manually configure the PHP to send the mail with DKIM signed signatures, something that mail sent by cPanel itself is done automatically". PHP script mails must be coded to send mail with DKIM signature. Anyone know of simple, easy to configure PHP Mail DKIM signature code source. Gary .... Gary ....
    0

Please sign in to leave a comment.