UPDATE3: The FreeBSD port is keeping up with this project very well, the current one is only 5 days old! I highly recommend going this route unless you’re a developer or someone who likes to get the bugs before anyone else!
Thanks to Bernard for bringing this up.
UPDATE2: Roundcube now uses SVN (Subversion) for version control instead of CVS, I’ve updated all effected instructions.
UPDATE: Looking at the download page for Roundcube, I see that There’s also a Spanish version of Phil’s guide written by Daniel A. Rodriguez. ¡se ha traducido eso es lejano hacia fuera, yo! You can find the link here , I hope that helps. I would like to see more translations of HOWTOs in general, I wish there was a good Firefox plugin to translate pages (well) on the fly.
In all my years of running a mailserver at home, I’ve used quite a few different webmail apps to find the balance of functionality and style that I’ve been craving. This includes Horde/IMP, Squirrelmail, IlohaMail, OpenExchange, Hula (as well as a couple of others) but all were either lacking functionality, style, or readiness (Hula I’m looking at you). A few months ago I stubled across Roundcubemail, a webmail app which aims to provide an application-like user interface, which it does. When you can drag and drop mail to a folder, you know you’re dealing with something pretty new, and AJAX related. The smoothness and speed of refreshes when you switch folders (along with the ‘spinner’ at the top of the screen to give you needed feedback) is just a breath of fresh air.

Try out the demo to see what all the fuss is about if you’re looking for a LAMP based IMAP webmail solution. Time will tell, but this project’s out of the gate showing makes me think it’s going to be a great app. Let’s hope they keep the configuration and options to a sane amount, unlike other webmail apps (Horde/IMP, I’m looking at you), so they can keep their clean, non-bloated feel. Since I’ve installed it I’ve moved on to nightly rebuilds from CVS, so I thought I’d document the steps needed to run the latest CVS version of Roundcubemail on FreeBSD. While there is a FreeBSD port in the ports tree (mail/roundcube) it is far out of date, so the CVS version is recommended since there are so many changes happening day-to-day with it. Once running you should also join the dev@lists.roundcube.net mailing list to keep abreast of, and report any, bugs that need ironing out. This HOWTO assumes you have a webserver (www/apache2), a mail transport agent (mail/postfix), and an IMAP server (mail/dovecot) installed and working. I brought them up and tested them with Squirrelmail (mail/squirrelmail), since it’s almost as easy to setup and always “just works”. SO, without further babble, here’s my first (of many) HOWTOs on fak3r.com.
1) As root, change to the webroot of Apache
cd /usr/local/www/data-dist2) Login to the Sourceforge Roundcubemail CVS server (when prompted for a password, just press ENTER)
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/roundcubemail login
2) Checkout Roundcubemail from the Sourceforge SVN server (when prompted, choose ‘p’ to accept the encrypted key permanantly)
svn checkout https://svn.roundcube.net/trunk3) Change into the roundcubemail directory
cd roundcubemail
3) Move the roundcubemail directory to your webroot, remove the ‘trunk’ directory, and then change into the roundcubemail directory
mv trunk/roundcubemail .
rm -rf trunk
cd roundcubemail4) Set permissions of the temp and logs dir so that the web user can read/write to them
chown -R www:www temp logs5) Create a database for storage of Roundcubemail data, replace $PASSWORD with the password you want the roundcube user to use to access mySQL
# mysql
> create database 'roundcubemail';
> GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost
IDENTIFIED BY '$PASSWORD';
> quit6) Import the inital Roundcubemail SQL
# mysql roundcubemail < SQL/mysql.initial.sql7) Change into the config directory
cd config
Copy the config *php.dist files to *.php
cp db.inc.php.dist db.inc.php
cp main.inc.php.dist main.inc.php9) Modify the config files to suit your environment. In db.inc.php you only need to change the database definition line, add your password in place of $PASSWORD
$rcmail_config['db_dsnw'] = 'mysql://roundcube:PASSWORD@localhost/roundcubemail';Assuming your mailserver is running on the same physical box as the webserver, disable database caching
$rcmail_config['enable_caching'] = FALSE;define the host as localhost
$rcmail_config['default_host'] = 'localhost';define smtp as localhost
$rcmail_config['smtp_server'] = 'localhost';and increase the session lifetime from 5 to something more reasonable (optional)
$rcmail_config['session_lifetime'] = 30;Launch a web browser and point it to
http://some.url/roundcubemailThen login with a valid/existing IMAP username and password.
To debug problems just tail -f (or multitail if you’re cool like me) /var/log/maillog to see what’s happening behind the scenes. Consult the mailing lists for issues and feel free to give feedback below. Since this app is under heavy development I expect this HOWTO to change as the app does.
Quick question, while it had loads of promise, I see very little progress from Roundcube over the past year, and that’s a shame. Has anyone 1) seen progress in the SVN version (mine had nothing new that I could see) or 2) know of a fork of Roundcube (I’d love to see a re-interest in this client, with a new/fresh skin and some attention) or 3) a better solution altogether for a PHP/MySQL webmail app that is this light? That’s the thing, I see other UIs, but they’re tied to something like Tomcat or the like…that’s not what I want, I want a Roundcube like environment – that works 100% It’s just such a great piece of software it makes me want to get better at PHP and push it along. (note to self, I need to update the auto-RC subversion checkout script: http://www.fak3r.com/2006/05/31/roundcube-webmail-update-script/ – if there were actually changes in the code…this would pick them up!
)
Since switching my email to a hosted service, I admittedly have not kept up with Roundcube, but the last time I played around with it (~9months back) it was pretty stagnant. However, checking it now, I see some progress, and an *AMAZING* theme for it called “MVision v2″: http://www.roundcubeforum.net/downloads.php?do=file&id=2
Wowser, that’s what I wanted, for some real web UI guys to get ahold of the client, has anyone use Roundcube recently? How is the project going? It had such a promising start.
Hello fak3r,
a very great tutorial about the roundcube. Thanks a lot for your support.
[...] http://fak3r.com/2005/11/15/howto-install-roundcube-webmail-from-svn-was-cvs-on-freebsd/ http://howtoforge.net/changing-from-squirrelmail-to-roundcube-on-your-ispconfig3-server [...]
[...] another HOWTO regarding the installation of the SVN version on FreeBSD at fak3r.com written by [...]
Guess your really stupid then and shouldnt be running a server at all…
Nice comment Bob, but at least he would know that it should have been “you’re” and not “your”, plus you also forgot to put the apostrophe in “shouldn’t”. Your (notice that is used correctly) attempt to be mean have fail3d.
Thank you for sharing this great tip.