Webmail ssls still using hostname ssl.

ozgurerdogan

Verified User
Joined
Apr 20, 2008
Messages
343
When I enable ssl for mail.domain.com, ssl installs fine. But when I go to mail.domain.com I am getting error about ssl common name mismatch because it shows hostname ssl.

Web site ssls are ok.

It is same on all sites... How can I solve this.?
 
It is same on all sites... How can I solve this.?
You can't.
Because mail.domain.com is a reserved dns entry for mail being smtp mail for mail clients, not webmail. You can't use that dns entry for webmail.

For webmail it's https://www.domain.com/webmail which you can use.

There is a way to change that so you can use https://webmail.domain.com to visit webmail. But mail.domain.com is never used for this.
 
I am getting webmail login page and ssl is installed. But ssl is pointing to hostname ssl so cause name mismatch error.
 
By default DirectAdmin does not create a VirtualHost in Apache/Nginx/LiteSpeed/OpenLiteSpeed for mail.domain.com, though the name might exist in DNS and a SSL certificate. This is what Richard has already mentioned.

In your case if a webmail is opened by the name mail.domain.com, it denotes you've got customized templates for a web-server. If this is the case, then you should check your templates and see which SSL certificate are they configured to use. And if a certificate for mail.domain.com is a part of one for domain.com, then make sure templates use it.

After changing templates you might run ./build rewrite_confs in SSH or in DirectAdmin.
 
Back
Top