Commits

Zhang Huangbin committed e0a2db4

Enforce connections over https in Roundcube.

  • Participants
  • Parent commits ba1e723

Comments (0)

Files changed (2)

File iRedMail/ChangeLog

 iRedMail-0.8.1:
+    * Enforce connections over https in Roundcube.
     * Fix incorrect MySQL user password and databases in MySQL backup script.
 
 iRedMail-0.8.0:

File iRedMail/functions/roundcubemail.sh

 
     # enable caching of messages and mailbox data in the local database.
     # recommended if the IMAP server does not run on the same machine
-    #perl -pi -e 's#(.*enable_caching.*= )(.*)#${1}FALSE;#' main.inc.php
+    #perl -pi -e 's#(.*enable_caching.*= )(.*)#${1}false;#' main.inc.php
+
+    # enforce connections over https
+    # with this option enabled, all non-secure connections will be redirected.
+    perl -pi -e 's#(.*force_https.*= )(.*)#${1}true;#' main.inc.php
 
     # Allow browser-autocompletion on login form.
     # 0 - disabled, 1 - username and host only, 2 - username, host, password
     perl -pi -e 's#(.*identities_level.*=).*#${1} 3;#' main.inc.php
 
     # Spellcheck.
-    perl -pi -e 's#(.*enable_spellcheck.*=).*#${1} FALSE;#' main.inc.php
+    perl -pi -e 's#(.*enable_spellcheck.*=).*#${1} false;#' main.inc.php
 
     # ----------------------------------
     # PLUGINS