Mail SNI is enabled, but server certificate is used

mike817

Member
Aug 5, 2010
15
0
51
I have mail SNI enabled for my domain, but when I enter the settings into a mail client, the server certificate is pulled instead of the domain. Is this correct? From the documentation, I thought SNI would use the cert installed for the domain.
 

mike817

Member
Aug 5, 2010
15
0
51
After some experimenting, it looks like the certificate is correct only when just the main domain is used in the email settings. So domain.com gets the correct certificate, while imap.domain.com gets the server one. Is that the correct implementation?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
After some experimenting, it looks like the certificate is correct only when just the main domain is used in the email settings. So domain.com gets the correct certificate, while imap.domain.com gets the server one. Is that the correct implementation?
Hello,

We have an internal case open to ensure the host used for "Mail SNI" purposes is displayed and integrated with the "Set Up Mail Client" option under "Email Accounts" in cPanel. Thus, if you installed a SSL certificate for "domain.com", and "Mail SNI" is enabled, then "domain.com" will display under "Manual Settings" in the "Set Up Mail Client" option in cPanel and in the automatic configuration scripts. I'll update this thread with more information on this case as it becomes available. In the meantime, you can manually update the email client to use "domain.com" to ensure the correct certificate is utilized.

Thank you.
 

AusDataHost2

Registered
Jun 21, 2014
2
0
1
cPanel Access Level
Root Administrator
Iv just had this issue and the problem is the lack of mail. subdomain setup in apache.

If found if i remove the DNS entry for mail.<domain>, add the mail.<domain> sub domain via cpanel (and also install a lets encrypt cert for mail.<domain>) it works perfectly.

Changing the incoming server would be easier but with existing setups its not always easy e.g. Apple Mail does not allow it to be changed once an account is setup.

Bit manual but works for me for now.