For those who installed ISPConfig 3 and want to give users the ability to change their email password from SquirrelMail, there is a guide on Howtoforge.com which describes the necessary steps in order to install, configure and activate change_sqlpass plugin for SquirrelMail. For me the steps described there were not enough to get it to work.
Complete steps :
- Download and install change_sqlpass plugin
- Patch functions.php (BUG with md5crypt)
- Create new config.php with some content
- Download and install compatibility plugin
- Install pear DB
- Activate the plugin in SquirrelMail
- Modify SquirrelMail include path
- Patch change_sqlpass functions.php file to get rid of “This page request could not be verified and appears to have expired.” error message
Steps 1-6 can be found here : ISPConfig Squirrelmail plugin for changing password
The problem i encountered :
Could not find Pear DB library
after trying to change password in SquirrelMail.
To get it to work :
Make sure you have Pear DB installed :
apt-get install php-pear php-db
Step 7 : Edit :
Comment line :
php_value include_path .
Comment line :
php_admin_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname:/var/spool/squirrelmail
Change it to :
php_admin_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname:/usr/share/php
After that , the password was changed but i got a new error :
This page request could not be verified and appears to have expired.
To solve this one, you need to patch :
/usr/share/squirrelmail/plugins/change_sqlpass/functions.php with the method described here :
Step 8 : Patch change_sqlpass
Tested on :
Squirrelmail : 1.4.22
SQLpass plugin : 3.3.12
Ubuntu Server 12.04.1 LTS x64