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?
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.
And how can I do that?
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.
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?
I've posted solution here:
https://serverfault.com/questions/1094908/roundcube-does-not-take-password-for-user-at-login