Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just installed RoundCube, but I'm having difficulties configuring it. I've dovecot, postfix with MySQL installed and it's all running nice and dandy, but I would like to attach a web-mail to it.

When I visit the RoundCube webmail, I get this:

DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator.

It's most likely because I've this code in /etc/roundcube/debian-db.php, but I know for sure that I don't have such database with such user created:

$dbuser='roundcube';
$dbpass='3e5r6tgulhk4et';
$basepath='';
$dbname='roundcube';
$dbserver='';
$dbport='';
$dbtype='mysql';

What I would like RoundCube to do is to use the existing user mailbox information any everything as it's used with dovecot and postfix. What should I do in RoundCube to make that work? I'm on Linux Debian Lenny.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

How about reading the documentation? Also, the fact that there is a database configuration file is a good hint that you need to create a database if the debian package didn't create one.

share|improve this answer
    
I already read it, but why to create a database when I've a postfix database with the user mailboxes and stuff already? What will this RoundCube database have? How to link it with it? –  Richards Jul 9 '11 at 12:37
1  
Roundcube needs it to store (per user) preferences that cannot be stored via IMAP. If you don't want a MySQL server for this, you can also use SQLite. –  Sven Jul 9 '11 at 13:49
    
Thank you, that and installing correct roundcube mysql package did the trick. –  Richards Jul 9 '11 at 17:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.