Message
Close
Login
*E-mail
*Password
Forgot your password?
Sign up
Login
Changing password
*New password
*Check password
cancel
Save
Info Help
 
 
How to enable the plugin "Password" on Roundcube
01/20/2016 13:03

In this article we are going to teach you how to enable the plugin Password in the Roundcube settings.

If you are using Ubuntu you can install the Password plugin with the following command:

apt-get install -y roundcube-plugins-extra roundcube-plugins


If you are using another operating system you can download the Password plugin from the Roundcube website and save it in the folder /usr/share/roundcube/plugins/.

Let's configure the plugin, so it can talk with your mail server database.

First we need to edit the plugin configuration file.

If the file /usr/share/roundcube/plugins/password/config.inc.php does not exists yet, you can use the default configuration file "config.inc.php.dist" to create a new one with the command below:

copy /usr/share/roundcube/plugins/password/config.inc.php.dist  /usr/share/roundcube/plugins/password/config.inc.php


To start editing the configuration file use the command below:

vim /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.


Now, we just need to enable the plugin password in the Roundcube settings file. To do that, you need to edit the file 

/var/lib/roundcube/config/config.inc.php.

vim /var/lib/roundcube/config/config.inc.php

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(

        'password'

);


Now, you just need to check if everything is working in the Roundcube interface.

If you don't know how the password plugin work's, the following article explains everything.
How to change your password in Roundcube (Webmail)

Suggestions
Send
Spread the word