Roundcube Community Forum

 

Roundcube + docker - no way to change the login password

Started by kishon, February 25, 2022, 05:50:43 AM

Previous topic - Next topic

kishon

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?

SKaero

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.


SKaero

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.

kishon

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?