Tested
Configuring Roundcube to allow changing passwords in vmail
- enable the password plugin in Roundcube
- change dir to your roundcube installation directory, e.g.
/var/www/roundcube - copy the default config for password:
cp plugins/password/config.inc.php.dist plugins/password/config.inc.php - change the value of
$['password_algorithm']to'dovecot' - uncomment the
$config['password_dovecotpw']line for dovecot-2.x and comment the line for dovecot-1.x - change the value of
$config['password_dovecotpw']to'/usr/bin/doveadm pw' - change the value of
$config['password_dovecotpw_method']toSHA512-CRYPT - set
$config['password_dovecotpw_with_method']totrue - in
$config['password_db_dsn']insert the DSN of your vmail db/user, e.g.'mysql://vmail:password1234@localhost/vmail'Note: the given user has to have write access to the vmail database - set
$config['password_query']'UPDATE accounts SET password=%P WHERE username=%l AND domain=%d LIMIT 1'
That’s it! You should change the name of the database if you used an other name than vmail.