How to Update Roundcube & Enable Roundcube password plugin on CWP
Part 1 Update Roundcube Step 1 Backup old Roundcube Config
# mkdir /home/roundcube_backup
# cp -R /usr/local/apache/htdocs/roundcube/* /home/roundcube_backup
Step 2 Download latest version of Roundcube & Extract file
# cd /tmp
# wget
https://github.com/roundcube/roundcubemail/releases/download/1.1.5/roundcubemail-1.1.5-complete.tar.gz # tar xvzf roundcubemail-1.1.5-complete.tar.gz
Step 3 Proceed with the installation.
# cd roundcubemail-1.1.5
# bin/installto.sh /usr/local/apache/htdocs/roundcube
Step 4 Change to correct permission.
# chown -R nobody:nobody /usr/local/apache/htdocs/roundcube
Part 2 Enable Roundcube password plugin Step 1 Enable password plugin on Roundcube
# nano /usr/local/apache/htdocs/roundcube/config/config.inc.php
Edit the line following
$config['plugins'] = array('password');
Step 2 Check & Note down Password from Postfix Database Information
# more /usr/local/cwpsrv/htdocs/resources/admin/include/postfix.php
Step 3 Create & Edit Roundcube Configuration
# cd /usr/local/apache/htdocs/roundcube/plugins/password
# cp config.inc.php.dist config.inc.php
# nano config.inc.php
Edit the line following
$config['password_driver'] = 'sql';
$config['password_db_dsn'] = 'mysql://postfix:xxxxx@localhost/postfix';
Replace Password from Postfix Database Information to '
xxxxx'
$config['password_query'] = 'UPDATE mailbox SET password=%c,modified=NOW() WHERE username=%u LIMIT 1';
End