- Joined
- Nov 10, 2016
- Messages
- 5
- Points
- 0
The webmailer from Plesk runs from home on port 80. This is unfortunately not optimal, but can be changed. A forced redirect to https is set up very quickly.
To avoid overwriting our configuration with a Plesk update, we will create a configuration file of your choice. This file must be created separately for each webmailer and placed in the corresponding configuration directory.
We create a file with the following content for mm_sslformailer.conf
This file is always placed under the appropriate webmailer. In the case of Centos, this would depend on each version:
For Debian and Ubuntu
It must also be ensured that mod_rewrite is active.
Then restart Apache. Now all accesses to the configured webmailer from Plesk are redirected to https via redirect.
To avoid overwriting our configuration with a Plesk update, we will create a configuration file of your choice. This file must be created separately for each webmailer and placed in the corresponding configuration directory.
We create a file with the following content for mm_sslformailer.conf
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Code:
/etc/apache2/plesk.conf.d/webmails/horde/mm_sslformailer.conf
/etc/apache2/plesk.conf.d/webmails/atmail/mm_sslformailer.conf
/etc/apache2/plesk.conf.d/webmails/roundcube/mm_sslformailer.conf
Code:
/etc/httpd/conf/plesk.conf.d/webmails/horde/mm_sslformailer.conf
/etc/httpd/conf/plesk.conf.d/webmails/atmail/mm_sslformailer.conf
/etc/httpd/conf/plesk.conf.d/webmails/roundcube/mm_sslformailer.conf
Then restart Apache. Now all accesses to the configured webmailer from Plesk are redirected to https via redirect.