Install roundcubemail webmail interface
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
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
exit;
You should have such response
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
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['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 :
OPTIONAL : You can specify other parameters through webinterface
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 !
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
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
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?
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
@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 !
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
@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
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
Resolved
I can not autenticaty
error Authentication for postmaster@teste.co.ao failed (LOGIN): ""
Connection to imap server failled
Can you help?

@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)