Differences between secure and non-secure domains

riledhel

Registered
Jul 1, 2014
2
0
1
cPanel Access Level
DataCenter Provider
Hi. We're in the process of setting up a server with cPanel. I've configured it to use the Bind DNS server, Exim email server, etc. and created a couple of user accounts to test everything. The problem we're facing is best seen here:

mail server config.jpg

We would like our users to see their domain as the Secure SSL/TLS email server, not our server's domain name. In the example above, we would like to use mail.eraxia.com for both secure and Non SSL settings. This problem is not related to ports, just the domain names. Did we misconfigured the DNS server? Can this be fixed editing a template? We'll appreciate your help.

Thank you.
 

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
833
28
178
Virginia Beach, VA
cPanel Access Level
DataCenter Provider
cPanel takes the hostname based on the hostname of the SSL certificate installed for the services. This is defined in the following files in /var/cpanel/ssl:

courier-imapd-DOMAINS
courier-pop3d-DOMAINS
exim-DOMAINS
dovecot-DOMAINS

I would actually advise you to NOT do what you're trying to do. The reason for this is, you can only currently have one SSL certificate installed per service (except Apache, of course). So if the SSL on your server is installed for cp1.cotel.com.ar, the user will get an SSL mismatch error in their mail client when connecting to mail services using their domain. This tends to inconvenience the user and look unprofessional. It may be best to instead use a generic or whitelabeled domain for the SSL hostname.