Fix incorrect calculation of secure mail server hostname
Our servers use a wildcard SSL certificate for cPanel/WHM/Exim/FTP etc. The certificate is issued to *.[our server domain name]
In cPanel 11.34, the information displayed under Configure Email Client (via Webmail or More dropdown in Email Accounts) displays mail.[our server domain name] as the mail server for secure connections, which is simply incorrect. Our server hostnames are s##.[our server domain name] where ## is the server number, and the server hostname is what should be used for secure mail connections.
To work around this we have some script code in /scripts/postupcp to replace the incorrect values in /var/cpanel/ssl/dovecot-CN and /var/cpanel/ssl/exim-CN with the correct values.
This needs to be better handled, otherwise all cPanel hosts using wildcard certificates for SSL across multiple servers are going to have support headaches from hosting client who see and try to use the invalid hostname for a secure mail connection.
My proposed fix would be to have similar options for this information in Tweak settings as you do for SSL redirect destination, i.e. allow us to choose between the SSL Certificate Name or the Hostname for the mail server hostname shown for secure mail connections in cPanel/Webmail.