From LedHed's Wiki
Jump to: navigation, search

Reference: http://roundcubeforum.net/forum/index.php?topic=9.0

Download the Patch

cd /var/www/roundcube wget http://www.poison.be/wp-content/uploads/2006/05/roundcubemail-0.1beta-changepassword.patch

If the above link is broken please refer to this topic on the RoundCube Forum or get it Here


Apply The Patch

patch -p1 < roundcubemail-0.1beta-changepassword.patch


Configure Settings

cd ext/

  • Read & Edit the Change Password Function

vi change_password_function.inc


// The host of the database
define ('RCUBE_EXT_CHANGE_PASS_HOST', 'localhost');

// The username to connect to the database
define ('RCUBE_EXT_CHANGE_PASS_USER', 'postfix');

// The password to connect to the database
define ('RCUBE_EXT_CHANGE_PASS_PASS', 'Your-Postfix-MySQL-User-Password-Here');

// The name of the database
define ('RCUBE_EXT_CHANGE_PASS_NAME', 'postfix');



(If you are using Clear Text Passwords change this line)

define ('RCUBE_EXT_CHANGE_PASS_UPDATEQUERY', 'UPDATE mailbox SET password = "%md5%" WHERE username = "%user%" AND password = "%oldmd5%"');

to

define ('RCUBE_EXT_CHANGE_PASS_UPDATEQUERY', 'UPDATE mailbox SET password = "%clear%" WHERE username = "%user%" AND password = "%old%"');