I have a mailserver with postfix installed and configured as in http://flurdy.com/docs/postfix/index.html.
I use a mysql database maildb
with a table users
with two fileds id
='[email protected]'
and crypt
='salted_md5_hash'
. Password is updated with a query like this:
UPDATE users SET crypt = ENCRYPT('apassword', CONCAT('$5$', MD5(RAND()))) WHERE id = '[email protected]';
Roundcube 1.0-RC is installed according http://trac.roundcube.net/wiki/Howto_Install
Howto setup roundcube password plugin to work with the above installation?
Edit roundcube main
config.inc.php
and add the plugin name 'password' to the plugins array() as shown below, to activate the plugin:You may also note down the DSN used by roundcube to connect to the 'roundcube' mysql database
$config['db_dsnw'] = 'mysql://user:pass@localhost/roundcube'
cd into
.../roundcube_www_root/plugins/password/
and createconfig.inc.php
Edit the following lines in the password plugin's
config.inc.php
:To use
SHA-512
password hashes instead ofSHA-256
, set the$id$
to$6$
(see alsoman 3 crypt
):See
.../plugins/password/README
and.../plugins/password/config.inc.php.dist
for more info.Assuming you will use the same mysql user for the password plugin to update the password, you have to GRANT SELECT and UPDATE privileges on the table 'users' in 'maildb' to the 'roundcube' mysql user:
That's it. If you encounter problems, tail the roundcube error log: