Skip to main content

Create webmail.domain.tld using service domains for existing account.

Comments

12 comments

  • cPanelLauren
    Hello, You can enable service subdomains for all accounts via the command line interface with the following: /scripts/servicedomains add
    This will enable all the service domains for all domains /scripts/servicedomains --help
    Will give you available usage flags
    0
  • tejas.designer07
    Hi Lauren, Thanks for your reply. I ran that command, but it didn't work. It's opening up the home directory rather than webmail or any other service.
    0
  • cPanelLauren
    Hello, That should be run as the root user via SSH, I'm not sure how you were running it prior but it should not open any directory.
    0
  • tejas.designer07
    Hi, I did run it as root and it created subdomains in the zone editior pointing to A records to the IP. But i am still unable to access the webmail on
    0
  • cPanelLauren
    Hi @tejas.designer07 Where is DNS for Domain hosted? Locally on the server or do you point the domains to the server using an A record?
    0
  • tejas.designer07
    Hi @cPanelLauren, I point the domains to the server using A records. I think there is something missing with virtualhost and httpd.conf settings. I found an article
    0
  • cPanelLauren
    Actually, that's the problem. No changes to DNS you make locally (like the addition of the service subdomains) will work or have any effect. You need to create the proxy/service subdomains where DNS is hosted for your domain and direct their A records to the server.
    0
  • tejas.designer07
    I verified that the webmail subdomain is there in the DNS record and it has a A record to the server of the IP. I double checked it with dnschecker.org and it does point to the correct IP.
    0
  • cPanelLauren
    Can you show me what you have in tweak settings for the following: What (if any) redirects are in place on the server? These can be found in the .htaccess for the domain or WHM>>Service Configuration>>Apache Configuration>>Include Editor for server wide modifications (there are also account-specific modifications but in most cases you'd know if you'd added these)
    0
  • tejas.designer07
    I have redirects for www to non-www and http to https in .htaccess file for the account. I checked in WHM>>Service Configuration>>Apache Configuration>>Include Editor for Pre Main Include, Pre Virtual Host Include and Post Virtual Host Include, it is blank for global as well as for Apache version 2.4.37. Please find attached the screenshot of Tweak settings in WHM.
    0
  • cPanelLauren
    You have service subdomains set to off in Tweak Settings - can you toggle this to "On" -> Click Save then run: /scripts/servicedomains add
    Then, let me know if they function again?
    0
  • tejas.designer07
    Hi @cPanelLauren, It worked! Thanks a lot for all the time and effort. :)
    0

Please sign in to leave a comment.