How to enable the plugin "Password" on Roundcube
In this article we are going to teach you how to enable the plugin Password in the Roundcube settings.
apt-get install -y roundcube-plugins-extra roundcube-plugins
First we need to edit the plugin configuration file.
copy /usr/share/roundcube/plugins/password/config.inc.php.dist /usr/share/roundcube/plugins/password/config.inc.php
You need to set some parameters as showed below:
$config['password_driver'] = 'sql';
$config['password_confirm_current'] = true;
$config['password_minimum_length'] = 5;
$config['password_db_dsn'] = 'mysql://mailserver.com:12345678@localhost/mailserverdatabase';
$config['password_query'] = 'UPDATE Email SET password = %p WHERE emailAddress = %u';
You need to pay attention in the last two lines. In this two lines you need to put the address that the plugin will use to connect to the mail server database and the query that will be executed to update the password. The parameters %p and %u are the new password and the user email address, respectively.
Look for the text $config['plugins'] and add the text password as one of the parameters of the array.
// List of active plugins (in plugins/ directory)
$config['plugins'] = array(
If you don't know how the password plugin work's, the following article explains everything.