diff --git a/debug-common_problems/index.html b/debug-common_problems/index.html index 9b1df9c45..a76901818 100644 --- a/debug-common_problems/index.html +++ b/debug-common_problems/index.html @@ -787,6 +787,13 @@ Inotify instance limit for user 5000 (UID vmail) exceeded (see #453) + + +
Docker containers use the Docker hosts inotify limits. Setting them on your Docker host will pass them to the container.
+Check that you have at least the following files in data/assets/ssl
:
cert.pem
+dhparams.pem
+key.pem
+
If dhparams.pem
is missing, you can generate it with
openssl dhparam -out data/assets/ssl/dhparams.pem 4096
+
Point your browser to https://myserver/rc/installer
and follow the instructions.
Initialize the database and leave the installer.
Delete the directory data/web/rc/installer
after a successful installation!
Open data/web/rc/plugins/managesieve/config.inc.php
and change the following parameters (or add them at the bottom of that file):
$config['managesieve_port'] = 4190;
$config['managesieve_host'] = 'tls://dovecot';
@@ -2434,7 +2436,7 @@ $config['managesieve_conn_options'] = array(
// 2 - add Vacation section, but hide Filters section
$config['managesieve_vacation'] = 1;
Open data/web/rc/config/config.inc.php
and enable the password plugin:
...
$config['plugins'] = array(
@@ -2456,10 +2458,10 @@ $config['password_algorithm'] = 'ssha256';
$config['password_algorithm_prefix'] = '{SSHA256}';
$config['password_query'] = "UPDATE mailbox SET password = %P WHERE username = %u";
Download the latest release of RCMCardDAV to the Roundcube plugin directory and extract it (here rc/plugins
):
cd data/web/rc/plugins
-wget -O - https://github.com/mstilkerich/rcmcarddav/releases/download/v4.1.2/carddav-v4.1.2.tar.gz | tar xfvz -
+wget -O - https://github.com/mstilkerich/rcmcarddav/releases/download/v4.3.0/carddav-v4.3.0.tar.gz | tar xfvz -
chown -R root: carddav/
Copy the file config.inc.php.dist
to config.inc.php
(here in rc/plugins/carddav
) and append the following preset to the end of the file - don't forget to replace mx.example.org
with your own hostname:
@@ -2517,6 +2519,41 @@ rm -rf roundcube*
# Fix Allow remote resources (https://github.com/roundcube/roundcubemail/issues/8170) should not be required in 1.6
sed -i "s/\$prefix = '\.\/';/\$prefix = preg_replace\('\/\[\?\&]\.\*\$\/', '', \$_SERVER\['REQUEST_URI'] \?\? ''\) \?: '\.\/';/g" /web/rc/program/include/rcmail.php
+
First, install plugin dovecot_impersonate and add Roundcube as an app (see above).
+Edit mailcow.conf
and add the following:
# Allow admins to log into Roundcube as email user (without any password)
+# Roundcube with plugin dovecot_impersonate must be installed first
+
+ALLOW_ADMIN_EMAIL_LOGIN_ROUNDCUBE=y
+
Edit docker-compose.override.yml
and crate/extend the section for php-fpm-mailcow
:
version: '2.1'
+services:
+ php-fpm-mailcow:
+ environment:
+ - ALLOW_ADMIN_EMAIL_LOGIN_ROUNDCUBE=${ALLOW_ADMIN_EMAIL_LOGIN_ROUNDCUBE:-n}
+
Edit data/web/js/site/mailbox.js
and the following code after if (ALLOW_ADMIN_EMAIL_LOGIN) { ... }
if (ALLOW_ADMIN_EMAIL_LOGIN_ROUNDCUBE) {
+ item.action += '<a href="/rc-auth.php?login=' + encodeURIComponent(item.username) + '" class="login_as btn btn-xs ' + btnSize + ' btn-primary" target="_blank"><i class="bi bi-envelope-fill"></i> Roundcube</a>';
+}
+
Edit data/web/mailbox.php
and add this line to array $template_data
:
'allow_admin_email_login_roundcube' => (preg_match("/^(yes|y)+$/i", $_ENV["ALLOW_ADMIN_EMAIL_LOGIN_ROUNDCUBE"])) ? 'true' : 'false',
+
Edit data/web/templates/mailbox.twig
and add this code to the bottom of the javascript section:
var ALLOW_ADMIN_EMAIL_LOGIN_ROUNDCUBE = {{ allow_admin_email_login_roundcube }};
+
Copy the contents of the following files from this Snippet:
+data/web/inc/lib/RoundcubeAutoLogin.php
data/web/rc-auth.php
Finally, restart mailcow
+docker-compose down
+docker-compose up -d