Added on Jun 22nd, 2012 and marked as install mail roundcube web

Roundcube is a browser-based multilingual IMAP client with an application-like user interface. It has MIME support, an address book, folder manipulation, message searching and spell checking.


We are going to download and extract the 0.8 release candidate of Roundcube:

cd  /path/to/roundcube
tar xvfz roundcubemail-0.8-rc.tar.gz
chown www-data:www-data * -R
mv roundcubemail-0.8-rc/* roundcubemail-0.8-rc/.gitignore roundcubemail-0.8-rc/.htaccess .
rmdir roundcubemail-0.8-rc/
rm roundcubemail-0.8-rc.tar.gz


Create a nginx config file (the WordPress version works also for Roundcube) and create a new PHP-pool. In order to get Roundcube working correctly we need to disable Suhosin, so add the following lines to the pool:

; Roundcube does not work with Suhosin enabled
php_admin_value[suhosin.session.encrypt] = disabled


Now you can complete the installation using the web-based installer at

The configuration will be stored in the file /path/to/roundcube/config/

It is possible to make some tweaks to the file in order to improve the security. You can determine exactly to which mailservers you want your users to be able to connect to.

Most flexible for the user

// The user will be presented with a 3rd textfield where
// the hostname can be specified.
$rcmail_config['default_host'] = '';

Most intuitive for the majority of the users

// Use the part after the @-sign as the host of the mailserver,
// log in using TLS. I.e. [email protected] will become ssl://
$rcmail_config['default_host'] = 'ssl://mail.%s';

Most secure

// Only use the specified mailserver, users aren't allowed to
// use other (external) mailservers.
$rcmail_config['default_host'] = 'ssl://';