Download Roundcube 1.4.x to the web htdocs directory and extract it (here `rc/`): ``` # Check for a newer release! cd data/web wget -O - https://github.com/roundcube/roundcubemail/releases/download/1.4.6/roundcubemail-1.4.6-complete.tar.gz | tar xfvz - # Change folder name mv roundcubemail-1.4.6 rc # Change permissions chown -R root: rc/ ``` Create a file `data/web/rc/config/config.inc.php` with the following content. **Change the `des_key` parameter to a random value.** It is used to temporarily store your IMAP password. The "db_prefix" is optional but recommended. ``` array('verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true) ); $config['enable_installer'] = true; $config['smtp_conn_options'] = array( 'ssl' => array('verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true) ); $config['db_prefix'] = 'mailcow_rc1'; ``` 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!** ### Configure ManageSieve filtering 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'; $config['managesieve_conn_options'] = array( 'ssl' => array('verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true) ); // Enables separate management interface for vacation responses (out-of-office) // 0 - no separate section (default), // 1 - add Vacation section, // 2 - add Vacation section, but hide Filters section $config['managesieve_vacation'] = 1; ``` ### Enable change password function in Roundcube Open `data/web/rc/config/config.inc.php` and enable the password plugin: ``` ... $config['plugins'] = array( 'archive', 'password', ); ... ``` Open `data/web/rc/plugins/password/password.php`, search for `case 'ssha':` and add above: ``` case 'ssha256': $salt = rcube_utils::random_bytes(8); $crypted = base64_encode( hash('sha256', $password . $salt, TRUE ) . $salt ); $prefix = '{SSHA256}'; break; ``` Open `data/web/rc/plugins/password/config.inc.php` and change the following parameters (or add them at the bottom of that file): ``` $config['password_driver'] = 'sql'; $config['password_algorithm'] = 'ssha256'; $config['password_algorithm_prefix'] = '{SSHA256}'; $config['password_query'] = "UPDATE mailbox SET password = %P WHERE username = %u"; ``` ### Integrate CardDAV addressbooks in Roundcube Download the latest release of [RCMCardDAV](https://github.com/blind-coder/rcmcarddav/) to the Roundcube plugin directory and extract it (here `rc/plugins`): ``` cd data/web/rc/plugins wget -O - https://github.com/blind-coder/rcmcarddav/releases/download/v3.0.3/carddav-3.0.3.tar.bz2 | tar xfvj - 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: ``` $prefs['SOGo'] = array( 'name' => 'SOGo', 'username' => '%u', 'password' => '%p', 'url' => 'https://mx.example.org/SOGo/dav/%u/', 'carddav_name_only' => true, 'use_categories' => true, 'active' => true, 'readonly' => false, 'refresh_time' => '02:00:00', 'fixed' => array( 'active', 'name', 'username', 'password', 'refresh_time' ), 'hide' => false, ); ``` Please note, that this preset only integrates the default addressbook (the one that's named "Personal Address Book" and can't be deleted). Additional addressbooks are currently not automatically detected but can be manually added within the roundecube settings. Enable the plugin by adding `carddav` to `$config['plugins']` in `rc/config/config.inc.php`. If you want to remove the default addressbooks (stored in the Roundcube database), so that only the CardDAV addressbooks are accessible, append `$config['address_book_type'] = '';` to the config file `data/web/rc/config/config.inc.php`. --- Optionally, you can add Roundcube's link to the mailcow Apps list. To do this, open or create `data/web/inc/vars.local.inc.php` and add the following code-block: *NOTE: Don't forget to add the ` 'SOGo', 'link' => '/SOGo/' ), array( 'name' => 'Roundcube', 'link' => '/rc/' ) ); ... ````