Skip to main content

cPanel with external DNS server and mail

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! AutoSSL would not be able to issue certificates if the domain is located on a separate system. You'd need to look to a purchased SSL solution for that configuration. I'm not completely sure what you mean by "default URLs" - can you get me more details on that? As far as the mail subdomain, you shouldn't need to do any customization in order to get that working. If you did want to do that, it wouldn't be any different than editing a DNS record like normal.
    0
  • tuxexpert
    Thank you for your answer. About the URLs: There are numerous domains what the system accepts without any setting like webmail.example.com cpanel.exampe.com or whm.example.com. I mean these when asked a list about in my previous post. There are numerous cases when you are not able to use the "default" because there is another machine using already in the network. When I want to set up a second mail server with cPanel and with external DNS need to let the system know that I want to use another. If we just set a new mail name like newmail.example.com and upload the cert, the system drops back to the cert what we use at whm and not the required (What the server using itself... and the mail client drops error because the url mismatch). Tried with asterisk cert on cPanel.
    0
  • cPRex Jurassic Moderator
    I guess I'm not completely understanding the situation you're seeing. Can you provide me an example of the domain structure and the problems you're seeing?
    0
  • tuxexpert
    I try to explain below whit examples: - I have a server on server.hosting.lan domain with a valid asterisk cert upoaded. - I have a customer cPanel account on cpanel.customer.lan with a valid asterisk cert uploaded. - The whm.hosting.lan works properly and the cpanel.customer.lan too. - No DNS on the server (external) - Want to reach the customers email through mailtwo.customer.lan domain (custom). The system gives back the *.hosting.lan cert. It is not valid here! Need the solution for that, if it is possible.
    0
  • cPRex Jurassic Moderator
    Thanks for that - that's exactly what I needed to know. When the wildcard SSL is set up, it likely was only installed for cpane.customer.lan. However, when cPanel AutoSSL certificates are created, those cover every domain in the Apache configuration. For example, I would expect a standard vhost to have the following entries: ServerName vhost.com ServerAlias mail.vhost.com www.vhost.com
    What you likely will need to do is install your wildcard certificate multiple times, once each for each domain you want it to cover. You can do that through WHM >> Install an SSL Certificate on a Domain. This will get you a secured vhost in the Apache config, but it will also apply the SSL to other services on the machine, such as the mailserver. Can you try that and see if that gets things working how you expect?
    0

Please sign in to leave a comment.