https://mail.mydomain.com/roundcube/

Just do it in panel, like you hosting your website in directadmin, but ignore that and only request certs to "mail"
 
I have already added ssl access, and add cert for mail.mydomain.com, but it seems not ok for
Did you added this on the server where the www is residing or on the server the mail is residing?
Because if all is well, it should be done on the server where mail is residing, and only choose mail as @jamgames2 said, nothing else. So manually request SSL.
 
Hi,
I have made all the steps to add ssl for mail.mydomain.com
but when I check the lock, it says:
Verify by : none

It seems my server has some problem on ssl?
 
I can run
/usr/local/directadmin/scripts/letsencrypt.sh request hostname.mydomain.com 4096
and the https of hostname.mydomain.com/roundcube/ is working fine.

can I try to run
/usr/local/directadmin/scripts/letsencrypt.sh request mail.mydomain.com 4096
to fix the problem?
 
/usr/local/directadmin/scripts/letsencrypt.sh request hostname.mydomain.com 4096
That should be request_single by the way in case of the hostname.
However, this command is changed recently to:
/usr/local/directadmin/scripts/letsencrypt.sh server_cert

/usr/local/directadmin/scripts/letsencrypt.sh request mail.mydomain.com 4096
You should be able to yes. But you can also just choose from GUI the manual installation, then choose Letsencrypt and then only select mail.
 
it seems the cert is for the hostname, myhost.myhostname.com
That's because /roundcube is owned by the server, so there the server's SSL should be working.
Seems server got's confused about which SSL certificate to be used, odd issues. Which is exactly why I always advise not to use mail.domain.com for real subdomain or things like that.

So I guess best thing is to either configure your virtual host some way to use https://mail.domain.com for webmail or just use one of these url's (with or without www):

If the 2nd link is not working then add this line to the directadmin.conf file and restart directadmin:
webmail_link=roundcube
and after that:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs
then it should be working.
 
I will explain. Webmail hosted by apache/nginx/webserver, so if you want to use ssl, you must add your domain or subdomain to webserver and request SSL

Except, server hostname already manual request SSL by special command and have pointer SSL location. but it's only work with server hostname. No need to added inside webserver.
 
Last edited:
Back
Top