• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved How to redirect webmail from HTTP to HTTPS

Hi AusWeb,

for roundcube, pls. consider to modify "/usr/share/psa-roundcube/config/defaults.inc.php"
Code:
...
// enforce connections over https
// with this option enabled, all non-secure connections will be redirected.
// set the port for the ssl connection as value of this option if it differs from the default 443
$config['force_https'] = true;

// tell PHP that it should work as under secure connection
// even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
// e.g. when you're running Roundcube behind a https proxy
// this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
$config['use_https'] = true;
...

In addition, you might consider to place a ".htaccess" - file at => "/usr/share/psa-roundcube" with the content:
Code:
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{HTTPS} !=on
   RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
 
Thank you @UFHH01

Prefered Solutions ".htaccess"

I have installed a Wildcard SSL for the server. so I've changed webmail url to server domain url

Code:
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{HTTPS} !=on
   RewriteRule ^(.*)$ https://webmail.server.tld/$1 [R=301,L]
</IfModule>
 
Last edited:
Ich wollte das in /usr/share/psa-horde/.htaccess machen. Dort steht aber:

# IMPORTANT: DO NOT EDIT THIS FILE!
# It will be overwritten with any future upgrade.

Gibt es eine haltbare Lösung?
 
Hi RaHa,

pls. write in ENGLISH only in public forum threads, as you accepted the forum rules, when you registered here. ;)
 
Back
Top