You have to customize the following lines
I'm not sure that you've the same system. I don't now how BlueHost is working...
Were are your password stocked ?
+function rcmail_save_passwd($curpassword, $newpassword){
+ global $DB, $CONFIG, $OUTPUT;
+
+ $DB->query('select password from postfix.mailbox where username=\''.$_SESSION['username'].'\'');
+ $row = $DB->fetch_assoc();
+ $actualCryptedPassword = md5($curpassword);
+
+ if ($actualCryptedPassword != $row['password'])
+ return false;
+ else {//ok, we can proceed
+ $DB->query('update postfix.mailbox set password=\''.md5($newpassword).'\',modified=NOW() where username=\''.$_SESSION['username'].'\'');
+ if (!$DB->is_error()) {
+ $_SESSION['password'] = encrypt_passwd($newpassword); //save the new password in the session
+ return true;
+ } else
+ return false;
+
+ }