Saturday, January 23, 2010

SquirrelMail Change Password Howto

SkyHi @ Saturday, January 23, 2010

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

SquirrelMail
2. Connect to your SquirrelMail server and note down its version.
SquirrelMail
3. Download the Change Passwd 4.2f and Compatibility 2.0.x plugins.
SquirrelMail
4. Extract the downloaded files and put them into the /usr/share/squirrelmail/plugins directory.
NoteThe SquirrelMail Change Password and Compatibility archives has to be extracted directly into the SquirrelMail plugin directory to enable Linux to apply the proper SELinux Context into the files. See the SquirrelMail RetrieveUserData plugin if you need help on how to do it.
SquirrelMail Configuration
5. From a Terminal window, type in /usr/share/squirrelmail/config/conf.pl and press Enter. This will launch the SquirrelMail Configuration utility.
NoteIf your Terminal window has a white background, make sure that the colors are off by looking for the command Turn color on. If the command is Turn color off, type in C and press Enter to turn the colors off. This will ensure that you will be able to read all of the text.
SquirrelMail Configuration
6. Type in 8 and press Enter to list the Plugins submenu.
SquirrelMail Configuration
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.
Terminal
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/
patch -p0 < patches/compatibility_patch-1.4.8.diff
Replace 1.4.8 with your SquirrelMail version.
GEdit
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

SquirrelMail
1. Login to SquirrelMail and go to the Options page. You should see the new Change Password section.
SquirrelMail
2. Click the Change Password link to view the new Change Password page.

REFERENCE

http://www.linuxmail.info/squirrelmail-change-password-howto/