Guide updated on 29th of December 2011

Install roundcubemail webmail interface


cd /downloads/
tar zxvfp roundcubemail-0.6.tar.gz
chown -R root:root /downloads/roundcubemail-0.6
mv /downloads/roundcubemail-0.6 /var/www/mail/
ln -s /var/www/mail/roundcubemail-0.6/ /var/www/mail/webmail
ln -s /var/www/mail/webmail/logs /var/log/webmail
chmod 777 /var/www/mail/webmail/logs/
chmod 777 /var/www/mail/webmail/temp/

Create the needed Database.

The used MySQL_root_password should be the password chosen on pre-step 3. It's should not be the same as the password for roundcubemail (ROUNDCUBEMAILPASSWORD).

It's not a typo, the MySQL_root_password should really be just aside the -p

mysql -pMySQL_root_password

CREATE DATABASE roundcubemail /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'ROUNDCUBEMAILPASSWORD';
quit;

Test your the account you have just created

mysql -uroundcube -pROUNDCUBEMAILPASSWORD
exit;

You should have such response

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1073
Server version: 5.1.49-3 (Debian)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>exit;

Let's configure it

cd /var/www/mail/webmail
mysql -uroundcube -pROUNDCUBEMAILPASSWORD roundcubemail < SQL/mysql.initial.sql

cp /var/www/mail/webmail/config/db.inc.php.dist /var/www/mail/webmail/config/db.inc.php
cp /var/www/mail/webmail/config/main.inc.php.dist /var/www/mail/webmail/config/main.inc.php

Edit the file /var/www/mail/webmail/config/main.inc.php and change the following :

$rcmail_config['default_host'] = 'localhost';
$rcmail_config['drafts_mbox'] = 'INBOX.Drafts';
$rcmail_config['junk_mbox'] = 'INBOX.Junk';
$rcmail_config['sent_mbox'] = 'INBOX.Sent';
$rcmail_config['trash_mbox'] = 'INBOX.Trash';
$rcmail_config['default_imap_folders'] = array('INBOX', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.Junk', 'INBOX.Trash');
$rcmail_config['create_default_folders'] = true';

Edit the file /var/www/mail/webmail/config/db.inc.php and change the following :

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

OPTIONAL : You can specify other parameters through webinterface

Edit /var/www/mail/webmail/config/main.inc.php and set $rcmail_config['enable_installer'] to true

Point your browser on http://mailadmin.yourdomain.tld/webmail/installer/ and follow the instructions

You can add some packages for optionnals features :

aptitude install php5-gd php5-mcrypt php5-intl
/etc/init.d/apache2 restart

Just a little cleaning ... and use it !

cd /var/www/mail/webmail
rm -rf installer/ CHANGELOG INSTALL LICENSE README UPGRADING

Point your browser on http://mailadmin.yourdomain.tld/webmail/ ... and use it!

Your server is functionnal now !

You can now proceed with optional tasks


Users comments
Thibs - 25/01/2012 11:21

@Tokie:

This is the typical usage :

1° Configure the server to accept the domain thanks to

http://mailadmin.yourdomain.tld/cgi-bin/vqadmin/vqadmin.cgi

2° Create the e-mail account

http://mailadmin.yourdomain.tld/cgi-bin/qmailadmin

Master account : postmaster

Domain : your_just_configured_domain

Password : your_just_set_password

3° Connect on http://mailadmin.yourdomain.tld/webmail/

Login : account@domain (as created in qmailadmin)

Password : XXXX (as created in qmailadmin)


Tokie - 24/01/2012 17:48

Hi Thibs and thanks for your guide.

I don't understand how to use webmail (roundcube) for qmail??

If I create new user in vqmail and but don't exist in rc!!

How must set up installer's rc??

 

Tks you

Tokie

Mrreaper - 04/12/2011 21:51

When I try to send a mail via Roundcube webmail. it sent with the following address www-data@Myservername.Mydomain.tls and not with my mail addres. how can i fix it?

Dbrandib - 28/11/2011 01:59

Hi,

 

after following all the guide, everything is working fine in my server. Despite, I am trying to process emails with php script. To do that I have created a .qmail file with pipe command but seems to do not work. Could be some process stoping the process? What I am doing wrong?

Thanks in advanced

Thibs - 03/11/2011 23:32

@Mauro : Thanks for the tip ! It's the last thing I've changed in this guide and apparently I've missed something ! It 'll be adapted soon !

Mauro - 01/11/2011 16:28

Congratulations on the guide: I made the mail server in a short time. Only I found an error in the file of roundcube main.inc.php loclahost line 72 instead of localhost. I am not allowed to access the mailbox via the Web, but the tests were okay!

thanks again

Thibs - 13/05/2011 23:28

@Bregtbeer : It seems you 've missed something in http://qmailrocks.thibs.com/daemontools.php

The logs are crashing

 

You've probably missed something in http://qmailrocks.thibs.com/configure-courier.php#courierauthlib too

 

Bregtbeer - 10/05/2011 10:41

Lots of problems here :

 

telnet localhost 25

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

HELO localhost

HELO google.com

 

--> just no response ...

 

telnet localhost 110

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

+OK Hello there.

user test@test.com

+OK Password required.

pass brol2

-ERR Temporary problem, please try again later

Connection closed by foreign host.

 

Roundcube says : connection with imap server failed when trying to login

 

qmailctl stat

/service/qmail-send: up (pid 5254) 1934 seconds

/service/qmail-send/log: up (pid 13691) 1 seconds

/service/qmail-smtpd: up (pid 5256) 1934 seconds

/service/qmail-smtpd/log: up (pid 13693) 1 seconds

/service/qmail-smtpdssl: up (pid 5258) 1934 seconds

/service/qmail-smtpdssl/log: up (pid 13692) 1 seconds

messages in queue: 0

messages in queue but not yet preprocessed: 0

Something obviously wrong here, just can't figure out what ...

Mabiala - 27/10/2010 16:19

Resolved

Mabiala - 27/10/2010 10:25

I can not autenticaty

error Authentication for postmaster@teste.co.ao failed (LOGIN): ""

 

Connection to imap server failled

 

Can you help?


Color Coded Qmail Installation Key
  Regular Black Text     Qmail installation notes and summaries by the author.
  Bold Black Text     Commands to be run by you, the installer.
  Bold/Regular Red Text    Vital and/or critical information.
  Regular Blue text     Denotes helpful tips and hints or hyperlinks.
  Regular Orange Text     Command line output.
  Bold/Regular green text     Denotes the contents of a file or script.