Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:


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:


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
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? – Rihards Jul 9 '11 at 12:37
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. – Rihards Jul 9 '11 at 17:21

Your Answer


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.