November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Setting up Roundcube Qmail

The Roundcube webmail software is available in

The ports for Roundcube webmail is available in /var/www/html/roundcube. To install roundcube, you will need to type the following (as root):

# cd /usr/ports/mail/roundcube
# make install clean

The ports system will install Apache, PHP4, and MySQL if you do not have them on your system. By default, roundcube is installed in /usr/local/www/roundcube/

Now, I’m going to map the http://localhost/roundcube/ to /var/www/html/roundcube/. To do this you will need to open the apache configuration located in  /etc/http/http.d   Edit httpd.conf then copy and paste the following:

 Alias /roundcube "/usr/local/www/roundcube/" <Directory "/usr/local/www/roundcube"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> 

Save the file and then restart apache: # apachectl restart

You now need to create a database for roundcube. Once you’ve created the database, you need to open config/db.inc and change the database setting:

$rcmailconfig['dbdsnw'] = 'mysql://username:secretpass@localhost/roundcube';

The format for the above line is db_provider://user:password@host/database.

Now, you want to edit main.inc.php file and change the mailhost setting with your IMAP server address. You can leave them blank, roundcube will display a textbox at login so users can enter the IMAP address manually.

$rcmailconfig['defaulthost'] = 'localhost';

Now, you need to import the database structure into your roundcube database. You can copy and paste them into phpMyAdmin or you can use the following command:

# cd /var/www/html/roundcube/SQL
# mysql -u user -p database < mysql.initial.sql

All done, congratulation you have installed roundcube on your server. You can access your roundcube webmail on http://localhost/roundcube/ (You can change your localhost to your hostname).

You can now login with your username and password on your IMAP server.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>