To allow you and your users to access their email from anywhere you can install this webmail client Roundcube. It’s a very user friendly and usable web based mail program, it’s got some ajax goodness and will allow for instance drag and drop mails into their IMAP folders. Please note that to fully benefit from a webmail client your users should use the IMAP capabilities of your server. Which means that all their email is stored on the server and stays accessible.
You need to download the latest code from the Roundcube site.
Extract the archive into the Document root of your Apache installation, in our case
To be able to install new versions and to migrate easily we setup a symbolic link to the current roundcube directory which we can change when a new vrsion arrives.
Step into the newly created directory and change the permissions on the temp and logs directory so that the webserver can write into these directories with the following commands:
chown -R www:www logs
Next we need to create a database for Roundcube to use. Start up MySQL on the command line and issue the following commands in MySQL:
GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost
IDENTIFIED BY ‘PASSWORD’;
Note: Change the PASSWORD into any password you would like to use, remember it as you need to put it in the configuration file later.
The next step is a lot simpeler since version 0.2 roundcube comes equiped with a proper installer. Point your browser to http://yourhostname/roundcubemail/installer/ and follow the instructions.
In step 2 you are asked some questions, these might be your answers to the important questions:
PASSWORD (the same as used above)
The rest is up to your discretion.
If the installer was unable to create the config files you need to copy the contents located in the browser in the files
main.inc.php located in the directory
If you’ve done all this your done with the configuration of Roundcube. If you have tested the setup and it works please remove the installer directory from the roundcube installation. It might be used by others to hack your installation.
I like to use a subdomains to divide up the specific tasks my webserver does. I use https://webmail.richard5.net to allow users to access their mail. How you can set this up as well is documented here.
If you’ve done that or just used a local directory to use, point your browser to http://webmail.yourdomain.tld or http://yourdomain.tld/roudcube and you should see a login screen appear.
For errors you could check the logfiles to explain what went wrong. For Roundcube errors check the
/logs/errors file and for general mail errors check the