Author Topic: Roundcube + docker - no way to change the login password  (Read 3775 times)

Offline kishon

  • Newbie
  • *
  • Posts: 6
Roundcube + docker - no way to change the login password
« 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?
« Last Edit: February 25, 2022, 07:56:34 AM by kishon »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube + docker - no way to change the login password
« Reply #1 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.

Offline kishon

  • Newbie
  • *
  • Posts: 6
Re: Roundcube + docker - no way to change the login password
« Reply #2 on: February 26, 2022, 05:45:46 AM »
And how can I do that?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube + docker - no way to change the login password
« Reply #3 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.

Offline kishon

  • Newbie
  • *
  • Posts: 6
Re: Roundcube + docker - no way to change the login password
« Reply #4 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?
« Last Edit: February 27, 2022, 04:38:44 AM by kishon »