Go to your roundcubemail directory.
cd plugins/password
cp config.inc.php.dist config.inc.php
vi config.inc.php
> $rcmail_config[‘password_driver’] = ‘sql’;
$rcmail_config[‘password_db_dsn’] = ‘mysql://dbuser:dbpass@localhost/vpopmail’;
$emailuser=$SESSION[‘username’];
$domain=split(“@”,$emailuser);
$dom_table=str_replace(“.”,””,$domain[1]);
$rcmail_config[