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
Poppassd should be installed on the same server where dovecot is installed. And if it is not on the same server as SquirrelMail, then open the poppassd port 106.
The 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.
5. From a Terminal window, type in /usr/share/squirrelmail/config/conf.pl and press Enter. This will launch the SquirrelMail Configuration utility.
If 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.
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/ patch -p0 < patches/compatibility_patch-1.4.8.diffReplace 1.4.8 with your SquirrelMail version.

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.
If you encounter a blank page, check the log file at /var/log/httpd/error_log.Visit the forum to ask for help or to give a comment.
***
Posted on 7/19/2009 and last updated on 4/22/2011
Filed under SquirrelMail






July 24th, 2009 at 1:51 pm
Hi Sir, If I install both RetrieveUserData plugin and Change Password plugin ,then change password is not working and getting error.
Warning: require_once(../config/config.php) [function.require-once]: failed to open stream: No such file or directory in /usr/share/squirrelmail/plugins/retrieveuserdata/passwd.php on line 16
Fatal error: require_once() [function.require]: Failed opening required ‘../config/config.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /usr/share/squirrelmail/plugins/retrieveuserdata/passwd.php on line 16
July 24th, 2009 at 2:13 pm
Hi Sir,
If I change the password length in config.php
its not taking effect.If I want put a small password then what is the procedure.Please help me.
Thanks
July 25th, 2009 at 9:58 am
Hi Jayesh,
I’ve updated the Poppassd Setup Howto article, please check it out.
July 25th, 2009 at 9:40 pm
Hi Jayesh,
Please download the RetrieveUserData plugin. I have corrected the issue you have encountered. Thanks for informing me.
July 27th, 2009 at 3:19 pm
Hi Sir,
I have installed new RetrieveUserData plugin. but the same problem.When I click on option button one notice is coming.Notice: Constant SM_PATH already defined in /usr/share/squirrelmail/plugins/change_passwd/functions.php on line 17.
After that if I click on change password.
Warning: require_once(../config/config.php) [function.require-once]: failed to open stream: No such file or directory in /usr/share/squirrelmail/plugins/retrieveuserdata/passwd.php on line 16
Fatal error: require_once() [function.require]: Failed opening required ‘../config/config.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /usr/share/squirrelmail/plugins/retrieveuserdata/passwd.php on line 16
July 31st, 2009 at 5:01 pm
hi,
how can i force my users to change password & send them a mail for same during the warning days & if they don’t change their password during that period their account will be diabled
August 4th, 2009 at 12:52 pm
hi,
How can I increase the inbox size of users? can i set different size for different users
August 4th, 2009 at 2:22 pm
hi sarika you can do his by implementing user quota.
August 4th, 2009 at 2:49 pm
Hi Sir!, I followed the step by step procedure on how to Install the SquirrelMail Change Password Plugin by when I change my password, my password did not change. How can I troubleshoot this issue?
Please! help me…
Thanks!
August 5th, 2009 at 10:40 pm
Hi Anshul,
Please see my new article Password Expiration Setup Howto.
August 6th, 2009 at 12:38 pm
Hi Consultant,
Please suggest how can i increase the size of inbox folder I am using squirellmail 1.4.15 on suse linux 9.0
August 6th, 2009 at 8:55 pm
hi guys!, i found a solution for my problem.. I just want it to share with you.. If you could not change password try to go to terminal then type /usr/share/squirrelmail/config/config.pl then choose 8 for plugins then try to uninstall RetrieveUserData plugin then save it and quit… then restart the httpd… Test it bye changing now your password…
hope it can help you a lot..
thanks!
August 9th, 2009 at 7:41 pm
Hi sarika,
I was thinking along the same lines as Anshul. Anyway, what do you mean by size of inbox folder? SquirrelMail does not limit the inbox folder.
August 10th, 2009 at 6:28 pm
Hi Sir,
Do u have any docs for sendmail with Ldap Authentication, I want all the users to be authenticated by Ldap User name & password in sendmail & dovecot for receiving & sending mails.
August 10th, 2009 at 8:42 pm
Hi Anshul,
Sorry but I’m not familiar with sendmail, I use Postfix exclusively.
August 15th, 2009 at 8:11 pm
squirrelmail problem
why i get error connecting in IMAP server:localhost
32 permission denied
go to the login page
August 16th, 2009 at 6:17 am
Hi oms,
Its probably an SELinux issue, please try disabling it
August 30th, 2009 at 3:51 am
Sir,
I have installed the plugin :-change_passwd2.0-1.2.8.tar.gz,on squirrelmail-1.4.3a-11.EL3 running on RHEL…
while changing the pasdswd i got the error:-
Warning: main(SM_PATHfunctions/global.php): failed to open stream: No such file or directory in /usr/share/squirrelmail/functions/strings.php on line 33
Fatal error: main(): Failed opening required ‘SM_PATHfunctions/global.php’ (include_path=’.:/usr/share/pear’) in /usr/share/squirrelmail/functions/strings.php on line 33.
I tried to seeoutput=1, but there is no such option in config.php..
permisions are:-
-rwxr-xr-x 1 root root 120K Aug 5 2005 conf.pl
-rw-r–r– 1 root root 23K Aug 5 2005 config_default.php
lrwxrwxrwx 1 root root 39 Aug 28 20:39 config.php -> ../../../../etc/squirrelmail/config.php
lrwxrwxrwx 1 root root 45 Aug 28 20:39 config_local.php -> ../../../../etc/squirrelmail/config_local.php
September 9th, 2009 at 5:56 pm
Hi sir!
I installed plugin and it’s work but i input old pass that ok . New pass is not .
September 11th, 2009 at 9:12 pm
Hi mrthinh,
The new password was not accepted probably due to some password policy applied to your server like minimum password length, password should be complicated etc.
September 12th, 2009 at 2:02 am
Hi sir !
i think password policy applied is not . Because i login webmail to change pass , i input old pass , input newpass and confirm newpass . That’s all ok . But i logout webpage , then login with new pass ,it’s not work . Old pass is ok .
Thanks sir.
September 13th, 2009 at 1:53 am
Hi sir !
i can’t login into my account .although i changed sucessful pass, But i logout webpage , then login with new pass ,it’s not work . Old pass is ok .
i hope consultant help me
thanks sir
September 13th, 2009 at 6:24 am
Hi mrthinh and ms sanaly,
Try changing the password from poppassd and login to SquirrelMail. If it does not use the new password, it means you are not using system accounts.