Roundcube Community Forum

Release Support => Pending Issues => Topic started by: kishon on February 25, 2022, 05:50:43 AM

Title: Roundcube + docker - no way to change the login password
Post by: kishon on February 25, 2022, 05:50:43 AM
Roundcube in docker with docker-mailserver:

What have I done:

1. Installed docker-mailserver, roundcube and mysql in docker.
2. Configured roundcube with plugin 'password'.
3. Configured roundcube with mysql database in other container in the same docker-compose.yml.
4. Everything I run by docker-compose.
5. Made table 'mailbox' in mysql for roundcube and added columns 'username' and 'password'.
6. Changing password works.
7. Login by new, changed password does not work - seems like roundcube is still getting passwords from file '/config/postfix-accounts.cf' as it logins user by password from this file.
8. Mail incoming and outgoing works fine.

Seems like roundcube does not want to take user's passwords from database and currently is taking passwords from this mentioned file.

Any ideas?
Title: Re: Roundcube + docker - no way to change the login password
Post by: SKaero on February 25, 2022, 08:13:01 PM
Roundcube will never check the password from a database, if you want to store the password in a database you need to configure your mail server to check account passwords from that database.
Title: Re: Roundcube + docker - no way to change the login password
Post by: kishon on February 26, 2022, 05:45:46 AM
And how can I do that?
Title: Re: Roundcube + docker - no way to change the login password
Post by: SKaero on February 26, 2022, 01:49:17 PM
It would very depending on what mail server you're using. The other option would be to use a different driver in the password plugin to change the users password.
Title: Re: Roundcube + docker - no way to change the login password
Post by: kishon on February 26, 2022, 03:32:48 PM
I am using dockerized docker-mailserver. Password plugin is working properly currently - it is changing password in MySQL database (table 'mailbox'), but at logging in the passwords are taken from /config/postfix-accounts.cf...

So how can be roundcube configured to check login passwords in this database/table?
Title: Re: Roundcube + docker - no way to change the login password
Post by: kishon on February 28, 2022, 02:38:56 PM
I've posted solution here:

https://serverfault.com/questions/1094908/roundcube-does-not-take-password-for-user-at-login