Skip to main content
We are aware of an issue after updating to cPanel versions 11.110.0.65, 11.126.0.21, or 11.128.0.11, some cPanel plugins or features are no longer functioning properly including WP Toolkit. Please see the following article for more information and updates:
Update to latest cPanel 110, 126, or 128 versions removes "addonfeatures" directory.

Help configuring DKIM with multi-server, multi-subdomain config

Comments

7 comments

  • ffeingol
    On the sub-domains, how do they actually send mail? Do they authenticate to a mail server or do they simply use something like a PHP mail() function? Based on your reply my guess is they us something like a PHP mail() function. If they are not actually authenticated, it's going to be a challenge to get the MTA to DKIM sign them.
    0
  • vicos
    On the sub-domains, how do they actually send mail? Do they authenticate to a mail server or do they simply use something like a PHP mail() function? Based on your reply my guess is they us something like a PHP mail() function. If they are not actually authenticated, it's going to be a challenge to get the MTA to DKIM sign them.

    --> PHP mail() function However, I just checked the header of an email sent from one of our apps via PHP and it does have a DKIM-Signature: record in the header.
    0
  • cPRex Jurassic Moderator
    There is no limit to the number of DKIM records that can be on a domain. For example, I checked a personal zone of mine and found multiple entries for different hostnames to send email: default._domainkey.host 14400 IN TXT "v=DKIM1; k=rsa; p=long-key-goes-here; default._domainkey.host2 300 IN TXT "v=DKIM1; k=rsa; p=long-key-goes-here;
    so that will work just fine. DMARC records do need to be unique.
    0
  • vicos
    So, when the receiving system wants to validate the signed message, how does it determine which DMARC record to use in the DNS in order to obtain the public key? Is there a parameter/selector in the DKIM-Signature that tells it which record to lookup? In the header I looked at, I do see: d=d1.me.com would that be what it uses? edit: OK, so it looks like 'd' is the domain and 's' is the selector, which on mine is set to 'default'.
    0
  • cPRex Jurassic Moderator
    According to the verification steps at dmarc.org, it says they "retrieve verified dkim domains" so it seems like it would be smart enough to pull the correct DKIM record for the mail that is being handled.
    0
  • vicos
    It uses a combo of the d=domain && s=selector to pull the public key from DNS. I configured my DNS with the data cPanel specified and all is well, even for the subdomains.
    0
  • cPRex Jurassic Moderator
    I'm glad to hear it's working well!
    0

Please sign in to leave a comment.