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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DKIM/SPF on Addon domains

Discussion in 'General Discussion' started by rinkleton, Jun 9, 2017.

Tags:
  1. rinkleton

    rinkleton Well-Known Member

    Joined:
    Jul 16, 2015
    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Cleveland
    cPanel Access Level:
    Root Administrator
    All of a sudden last week customers started complaining that email wasn't being delivered. I checked it out and SPF and DKIM are now failing. We haven't changed anything as far as our configuration. The failures are specific to addon domains. I looks like the speciific issue is in what zone the SPF and DKIM records are being put. When you create an addon domain, it creates a separate zone, however when SPF and DKIM are enabled, it puts the records in the top level zone as if they were for alias domains. Manually moving them to the addon zone does fix the issue.

    I had submitted a bug a while ago which was semi related. When creating an addon domain and enabling SPF, then deleting the addon domain, it left the SPF record existing which caused all kind of issues trying to re-add the addon. It seems like addon domains with SPF still has some issues. Or maybe they tried to fix that issue and caused another?

    But I digress.... is there any way to configure it to put the spf in the right zone, or some easy work around?

    WHM 64.0b24
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I've been unable to replicate this behavior. Upon adding a new addon domain name, the TXT records for SPF and DKIM are correctly populated in the zone file of the addon domain name. I was also unable to replicate this issue when manually enabling SPF/DKIM via the "Authentication" option in cPanel. Are you checking the addon domain name's TXT records in the /var/named/$domain.tld.db file, and through "WHM >> Edit DNS Zone"? If not, are you sure the DNS for the addon domain name is managed by the cPanel server?

    Thank you.
     
  3. rinkleton

    rinkleton Well-Known Member

    Joined:
    Jul 16, 2015
    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Cleveland
    cPanel Access Level:
    Root Administrator
    Yes I see them the way I describe both through WHM and the files you reference.

    The DNS is managed by the cpanel server, which should be evidenced by the fact that if I manually move the TXT records to the addon domain zone it starts to validate.... Correct?

    I contacted our data center and they said they are seeing the same behavior I am. Is there some configuration option that would cause this?
     
    #3 rinkleton, Jun 13, 2017
    Last edited: Jun 13, 2017
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look at the affected system to see what's happening?

    Thank you.
     
  5. rinkleton

    rinkleton Well-Known Member

    Joined:
    Jul 16, 2015
    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Cleveland
    cPanel Access Level:
    Root Administrator
    I'll be opening a ticket.

    One thing I forgot to mention was that it only happens when the addon domain is a subdomain of the main domain.
    Ex: parking sub.example.com on example.com
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To update, CPANEL-13927 is open to address an issue where the DKIM and SPF records (for addon domain names that are subdomains of the primary domain name on the account) are placed in the zone file of the primary domain name. I'll monitor this case and update this thread with more information as it becomes available.

    Thank you.
     
Loading...

Share This Page