If you are using Linux system accounts as your mail accounts, you can install the change_passwd plugin to enable SquirrelMail to provide a password change utility using the background service poppassd to reliably and securely change a user’s password.
Install the SquirrelMail Change Password Plugin



5. From a Terminal window, type in /usr/share/squirrelmail/config/conf.pl and press Enter. This will launch the SquirrelMail Configuration utility.



7. Install the change_passwd plugin by typing in the number corresponding to it and press Enter. When you are done, type in q and press Enter to quit then type in y and press Enter to save your changes.


8. If your version of SquirrelMail is not 1.4.13 and higher or 1.5.1 and higher, you need to patch your SquirrelMail source. Go to /usr/share/squirrelmail/plugins/compatibility and apply the compatibility patch by typing in the commands below.
cd /usr/share/squirrelmail/plugins/compatibility/Replace 1.4.8 with your SquirrelMail version.
patch -p0 < patches/compatibility_patch-1.4.8.diff


9. In the /usr/share/squirrelmail/plugins/change_passwd directory, copy the file config.php.sample and save it as config.php. Edit config.php and review the default settings.
Below are settings in config.php you may wish to change
- $minimumPasswordLength - Minimum length of the password.
- $changePasswdInLogin - Change password from the login form.
Test the SquirrelMail Change Password


1. Login to SquirrelMail and go to the Options page. You should see the new Change Password section.
REFERENCE
http://www.linuxmail.info/squirrelmail-change-password-howto/