Guide updated on 29th of February 2016

Install roundcubemail webmail interface


Roundcube webmail is a browser-based multilingual IMAP client with an application-like user interface. It provides full functionality you expect from an email client, including MIME support, address book, folder manipulation, message searching and spell checking.

More information can be found on http://roundcube.net/

cd /downloads/
tar zxvfp roundcubemail-1.1.4-complete.tar.gz

chown -R root:root /downloads/roundcubemail-1.1.4
mv /downloads/roundcubemail-1.1.4 /var/www/mail/
ln -s /var/www/mail/roundcubemail-1.1.4/ /var/www/mail/webmail
ln -s /var/www/mail/webmail/logs /var/log/webmail
chmod 777 /var/www/mail/webmail/logs/
chmod 777 /var/www/mail/webmail/temp/

Create the needed Database.

The used MySQL_root_password should be the password chosen on pre-step 3. It's should not be the same as the password for roundcubemail (ROUNDCUBEMAILPASSWORD).

It's not a typo, the MySQL_root_password should really be just aside the -p

mysql -pMySQL_root_password

CREATE DATABASE roundcubemail /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'ROUNDCUBEMAILPASSWORD';
quit;

Test your the account you have just created

mysql -uroundcube -pROUNDCUBEMAILPASSWORD
exit;

You should have such response

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1073
Server version: 5.5.44-0+deb8u1 (Debian)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>exit;

Let's configure it

cd /var/www/mail/webmail
mysql -uroundcube -pROUNDCUBEMAILPASSWORD roundcubemail < SQL/mysql.initial.sql

cp /var/www/mail/webmail/config/config.inc.php.sample /var/www/mail/webmail/config/config.inc.php
sed -i s/24ByteDESkey/`makepasswd --char=12`/ /var/www/mail/webmail/config/config.inc.php

Edit the file /var/www/mail/webmail/config/config.inc.php and change the following :

$config['db_dsnw'] = 'mysql://roundcube:ROUNDCUBEMAILPASSWORD@localhost/roundcubemail';

Append the following lines at the end of the same file /var/www/mail/webmail/config/config.inc.php

$config['drafts_mbox'] = 'INBOX.Drafts';
$config['junk_mbox'] = 'INBOX.Junk';
$config['sent_mbox'] = 'INBOX.Sent';
$config['trash_mbox'] = 'INBOX.Trash';
$config['default_folders'] = array('INBOX', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.Junk', 'INBOX.Trash');
$config['create_default_folders'] = true;

Just a little cleaning ... and use it !

cd /var/www/mail/webmail
rm -rf installer/ SQL/ CHANGELOG INSTALL LICENSE README UPGRADING README.md

Point your browser on http://mailadmin.yourdomain.tld/webmail/ ... and use it!

Your server is functionnal now !

Configure mail client (Outlook 2007 as sample)

Configure other mail client (IOS 6 device as sample)


Users comments