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.


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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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