Yes that IS possible.It must be possible to create a Lets Encrypt cert for webmail.domain.tld in plesk!!
plesk bin extension --exec letsencrypt cli.php -d YOUR-DOMAIN.COM -d www.YOUR-DOMAIN.COM -d webmail.YOUR-DOMAIN.COM --email [email protected] --expand
Yes, I still think, that Plesk will improve the Plesk Let's Encrypt Extension, so that it is less complicated to install a valid Let's Encrypt certificate for "webmail" and "mail" ( and others as "lists" and "autodiscover" ), without to worry about ( possible ) issues at renewing processes.This is all in the hope that within a few months it gets direct support from Plesk?
Or will it keep maintaining that subdomain after it's gone?
Hi RaHa,
Yes that IS possible.
Unfortunately, there are still some "easy" steps missing, over the Plesk Control Panel, but you might consider to use the following solution as a work-around:
Pls. note: The following steps assume, that you already created a Let's Encrypt certificate for the domain ( either with, or without "www" )
- Pls. DISABLE webmail - support for the specific domain
( HOME > Subscriptions > YOUR-DOMAIN.COM > (tab) Mail > (tab) Mail Settings > (choose the domain and click onto ) Webmail View attachment 12498
- Pls. CREATE the subdomain "webmail" at YOUR-DOMAIN.COM
- Make sure, that if you use an external nameserver from your domain registrar, you now have to setup an "A" - DNS - entry for "webmail.YOUR-DOMAIN.COM".
- Use the following command ( as user "root" over SSH ) to EXPAND the existent certificate for YOUR-DOMAIN.COM with the additional domain "webmail.YOUR-DOMAIN.COM"
Code:plesk bin extension --exec letsencrypt cli.php -d YOUR-DOMAIN.COM -d www.YOUR-DOMAIN.COM -d webmail.YOUR-DOMAIN.COM --email [email protected] --expand
Your existent certificate should have been expanded now.
If you experience issues/errors/problems here, pls. consider to add the corresponding log - file from "/opt/psa/var/modules/letsencrypt/logs" for further investigations!
- Now, pls. DELETE the created "webmail" subdomain again over the Plesk Control Panel.
- Pls. ENABLE the webmail - support for your specific domain again.
Pls. check your current certificates at for example ( pls. change the YOUR-DOMAIN.COM - example - URLs! ):
Pls. DISABLE webmail - support for the specific domain
Pls. CREATE the subdomain "webmail" at YOUR-DOMAIN.COM
Make sure, that if you use an external nameserver from your domain registrar, you now have to setup an "A" - DNS - entry for "webmail.YOUR-DOMAIN.COM".
/opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/letsencrypt/scripts/renew.php'
Now, pls. DELETE the created "webmail" subdomain again over the Plesk Control Panel.
Pls. ENABLE the webmail - support for your specific domain again.
Pls. check your current certificates at for example ( pls. change the YOUR-DOMAIN.COM - example - URLs! ):
=> SSL Server Test: webmail.your-domain.com (Powered by Qualys SSL Labs)
=> SSL Server Test (Powered by Qualys SSL Labs)
=> SSL Server Test: www.your-domain.com (Powered by Qualys SSL Labs)
Unfortunately: No.Is the SSL certificate automatically renew even if the webmail subdomain is not present?
#this gives us our current value for the domain.
plesk bin subscription_settings -i example.com | grep "Webmail:"
#disabled the webmail subscription
plesk bin subscription_settings -u example.com -webmail none
#create subdomain
plesk bin subdomain --create webmail -domain example.com -hard_quota 1G -ssi true -php true -ssl true
Hi Daniel Willitzer,
the reason why I didn't provide any further suggestions, how to automate this process, is still the fact that the Plesk developpers are really working to solve all the issues/problems. If we provide "complete working solutions", the Plesk community/users get used to it and consider it as normal and that is what "work-arounds" never should be. Your suggestions will surely work, but as stated, I don't recommend automations for "work-arounds".
Hi Daniel Willitzer,
the reason why I didn't provide any further suggestions, how to automate this process, is still the fact that the Plesk developpers are really working to solve all the issues/problems. If we provide "complete working solutions", the Plesk community/users get used to it and consider it as normal and that is what "work-arounds" never should be. Your suggestions will surely work, but as stated, I don't recommend automations for "work-arounds".
Alias /.well-known/acme-challenge/ "/var/www/vhosts/<?php echo $VAR->domain->asciiName ?>/webmail.<?php echo $VAR->domain->asciiName ?>/.well-known/acme-challenge/"
<Directory "/var/www/vhosts/<?php echo $VAR->domain->asciiName ?>/webmail.<?php echo $VAR->domain->asciiName ?>/.well-known/acme-challenge/">
AllowOverride None
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>