Article ID: 123648, created on Nov 23, 2014, last review on Aug 21, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux


  • It is required to secure the webmail interface of one of the domains. Is it possible to implement the certificate for just one of the configured domains, without changing the default certificate?

  • A wildcard SSL certificate or SSL certificate issued for a particular server is not working on


The requested functionality is not yet implemented in Plesk. Please provide a suggestion on our User Voice forum.


Create the subdomain, configure its DocumentRoot path (the directory on the server where the web pages of a site are stored), then manually assign SSL certificate for the webmail. To manually assign SSL for the webmail, you should edit its configuration file:

Note: The following solution applies to Roundcube webmail. In the case of Horde webmail, you can modify the horde.conf file.

  1. Create a backup of the configuration file using the following command.

    For CentOS based OS:

    # cp -p /etc/httpd/conf/plesk.conf.d/roundcube.conf{,.conf_back}

    For Debian based OS:

    # cp -p /etc/apache2/plesk.conf.d/roundcube.conf{,.conf_back}
  2. Modify the ServerName and SSLCertificateFile directives in the configuration file. For example:

    SSLCertificateFile /full/path/to/the/certificate/file
  3. Restart the web server, depending on your operating system:

    # service httpd restart


    # /etc/init.d/apache2 restart

    If it is required to redirect all webmails to one main webmail, it is possible to do using apache rewrite rule:

  4. Modify these files(for horde and roundcube):

  5. Add these lines with rewrite rule for apache configuration(for example before <IfModule mod_fcgid.c>):

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^webmail\.(.+)$ [NC]
    RewriteCond %{HTTP_HOST} !^
    RewriteRule ^(.*)$ [R=301,L]

    Note: should be changed to your main webmail that will be used for redirect.

  6. Restart apache

  7. Check is it working properly.

  8. If yes, modify Plesk custom templates to make sure that settings are not overwritten after upgrade according to our documentation

    Required files are horde.php and roundcube.php.

Search Words

ssl webmail


SSL Webmail

roundcube ssl

SSL Certificate for webmail interface

plesk ssl mail hostname

secure webmail

install new ssl for webmail

default SSL certificate not working

add private ssl

ssl plesk mail hostname

SSL Certificate for webmailinterface

Webmail SSL cert

per domain ssl certificate for webmail

webmail https

SSL Webmail plesk

webmail ssl

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF