Webmail: Roundcube installation

Webmail: Roundcube installation

Webmail: Roundcube installation 150 150 Roderick Derks


RoundCube Webmail is a browser-based multilingual IMAP client with an application-like user interface. It provides full functionality you expect from an e-mail client, including MIME support, address book, folder manipulation and message filters. RoundCube Webmail is written in PHP and requires the MySQL database. The user interface is fully skinnable using XHTML and CSS 2.

tar xzf [roundcube].tar.gz chown apache:root -R [roundcube diirectory]

Database installatie
mysql> CREATE DATABASE `roundcube` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'WACHTWOORD';

[root@server www]# mysql -u root -p roundcube < SQL/mysql.initial.sql

Open db.inc.php

$rcmail_config['db_dsnw']='mysql:// roundcube:WACHTWOORD@localhost/roundcube';

Open main.inc.php

// the mail host chosen to perform the log-in // leave blank to show a textbox at login, give a list of hosts // to display a pulldown menu or set one host as string. //

To use SSL connection, enter ssl://hostname:993
$rcmail_config['default_host'] = 'localhost';

// session lifetime in minutes $rcmail_config['session_lifetime'] = 30;

// use this format for short date display
$rcmail_config['date_short'] = 'l g:i A';

// add this user-agent to message headers when sending
$rcmail_config['useragent'] = 'RoundCube Webmail';


I had this problem that I couldn't save my drafts . This was a new feature after an upgrade I did.
Problem was a missing line in my config file.
// store draft message is this mailbox
// leave blank if draft messages should not be stored
$rcmail_config['drafts_mbox'] = 'Drafts';


To be able to read email messages with large attachements adjust the following php settings:

# vi /etc/php.ini

memory_limit = xxM
upload_max_filesize = xxM

If the webserver is running, restart it. 

Roderick Derks

Liefhebber van fietsen, van het oplossen van IT puzzels, en van het delen van informatie om anderen te helpen.

All stories by:Roderick Derks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Your Name (required)

    Your Email (required)


    Your Message

      Your Name (required)

      Your Email (required)


      Your Message