Skip to main content

AutoSSL "does not own" errors for www.mail subdomains

Comments

7 comments

  • cPanelMichael
    Hello @4u123, Can you check the /var/cpanel/userdata/username/domain.tld and /var/cpanel/userdata/username/domain.tld_SSL files to verify if the www.mail subdomain appears on the serveralias line? If so, can you remove the www.mail entry from these files and then try running the AutoSSL check for this account again to see if the issue persists? EX: /usr/local/cpanel/bin/autossl_check --user=username
    Thank you.
    0
  • 4u123
    Thanks Michael, yes that resolved it but this could be a bigger issue for us. The "www.mail.domain" entries were added some time ago by the EA4 to EA3 downgrade script which must have contained a bug. Soon after EA4 was released, we updated our servers but we came up against a number of issues that meant we had to go back to EA3. We ran the downgrade script provided by cpanel, which for some reason created full subdomains of www.mail.domain - for every domain on every server. We used the "list subdomains" option in WHM to remove these manually. It was very time consuming. It seems even after doing that - these www.mail entries are still hanging around in those /var/cpanel/userdata/ files. If I look at "Manage SSL Hosts" in WHM I see lots of www.mail.domain entries - all showing red padlocks. If the SSL check script now skips primary domains that are in this situation, we will potentially see lots of certificates not being renewed when they are due. Can you suggest a way to remove these across all of our servers? I'd need to find a way to search for the www.mail.domain string for every domain on the server and remove the entries from those files.
    0
  • cPanelMichael
    Can you suggest a way to remove these across all of our servers? I'd need to find a way to search for the
    0
  • 4u123
    Thanks for that Michael. i appreciate you taking the time to look into that for me. Looks good. Does it exclude deleting the entries from the cache files? I notice that the script removes the
    0
  • cPanelMichael
    Hello @4u123, 1. Yes, the script excludes the removal of the entry from the .cache files. You can manually update the .cache files upon removing the entries by running the following command: /usr/local/cpanel/bin/userdata_update
    2. Yes, it will remove the "www.mail" alias from the "mail.domain.com" userdata files, leaving the serveralias line empty. That won't cause any issues unless there's a need to access the "mail.domain.com" domain name with the "www" prefix. If you want to skip those specific userdata files, run the "grep" section of the command first with an added search for "mail" to see a list of every mail.domain.com userdata file the full command will update: grep -Rl www.mail /var/cpanel/userdata/*/* | grep -v \.cache|grep mail
    Then, after running the full command referenced in the previous response, manually copy the userdata files you see in the output from the above command back into place from the /var/cpanel/userdata-backup/$username/ directory. Thank you.
    0
  • 4u123
    Yes that makes sense, thanks for your help.
    0
  • kmrinmoy07
    I am having a subdomain and AutoSSL is installed for the subdomain and www.subdomain only. How can I add AutoSSL to mail.subdomain
    0

Please sign in to leave a comment.