Ubuntu has roundcube in it is official packages but here is how to install the roundcube from the it is source packages,
because it is easy to backup for the next installation.
To resolve dependencies install these packages:
aptitude install php-imap php-mysql php php-mcrypt php-auth-sasl libmcrypt php-pear mysql-server mysql-client
Download the roundcube tar ball from the http://www.roundcube.net/
, to install the roundcube dependent packages run the aptitude to install the roundcubemail
Or download this file for dependencies.
chown -R www-data:www-data temp
chown -R www-data:www-data logs
chmod -R 0775 temp
chmod -R 0775 logs
We use mysql for roundcubemail database, create roundcubemail user for mysql:
mysql>CREATE USER 'roundcube'@'localhost';
Create the mysql database "roundcubemail":
mysql>CREATE DATABASE roundcubemail DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Give the user roundcubemail grant privilege to the database:
mysql>GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcubemail@localhost;
create the necessary tables run the script mysql.initial.sql from the SQL dir in the roundcube source dir:
# mysql roundcubemail < SQL/mysql.initial.sql
To configure the roundcubemail open the url http://example.net/roundcubemail/installer in the web browser.
Database Name: roundcubemail
mysql User: roundcube
mysql password: msyql password leave empty for our case.
default_host "ssl://localhost" (your host name)
default_port "993"
Change the IMAP AUTH type from the null to the LOGIN.
smtp_server "localhost" (wrtie the stmp server)
smtp_port " " (can use smtp ports 25, 2525, 8025, 587 and 465 for ssl, check for your isp)
Leave the others entries as default.