RoundCube Password Plugin for virtualmin 1

RoundCube Password Plugin for virtualmin

Roundcube password plugin for Virutalmin hosting panel is a great feature for your users, if you don’t want them to use Usermin as mail client, and be able to change their password. After long time I decided to research and solve the problem for Roundcube password plugin. At the end of the article you will find sources helped me solve this issue.

Users in virtualmin are unix users so roundcube uses a php driver for virtualmin which calls a C wrapper to run the command on the system (/usr/sbin/virtualmin modify-user). You need to modify some configuration files to enable password plugin on roundcube, change two lines (73,74) in virtualmin.php and compile the C wrapper in order to be able to run. Read below…

Steps to setup the RoundCube Password Plugin

Install RoundCube via Virtualmin Install Script (we’ll assume that it’s being installed into the sub-dir “roundcube”. The current version, as of these instructions, is 1.1.2.

Log into the server over SSH. Go into the “roundcube” directory you just installed RoundCube into. For example,

Edit config/, and change this line:

To read:

$rcmail_config[‘plugins’] = array( ‘password’);

Setup password plugin config file with this command (or via FTP):

Enable Virtualmin driver. To do that, edit “plugins/password/”, and change this line:

Compile C wrapper with this command (gcc must be installed for this to work):

Setup permissions:

Modify virtualmin.php driver:


This is my version of virtualmin.php driver, it’s slightly different than the original. It works for roundcube v1.1.2

Lines changed: 73,74

You should now be able to log into RoundCube, go into Settings -> Password, and change your user’s password.

Originally taken from these Sources:


This site uses Akismet to reduce spam. Learn how your comment data is processed.