Objective:
- To change user's password on SquirrelMail, based on
/etc/passwdfile - To help those who are facing "ERROR:Connection refused (111)" problem.
Related Information:
- OS: Red Hat Enterprise Linux 4 (ES)
- SquirrelMail: squirrelmail-1.4.8-4.0.1.el4 (official package from Red Hat)
How-To:
- Download change_pass plugin. If you're a Debianista, consider to use APT.
- Extract the tarball into SquirrelMail's plugin directory.
[root@kuli plugins]# tar xzvf /tmp/change_pass-2.7a-1.4.x.tar.gz - Download poppassd and compile the source code.
- Put it into
/usr/sbin/
[root@kuli Temporary]# gcc poppassd.c -o poppassd -lcrypt
[root@kuli Temporary]# cp poppassd /usr/sbin - Create poppassd service under xinetd. Restart xinetd service.
CODE:
-
[root@kuli xinetd.d]# cat /etc/xinetd.d/poppassd
-
# default: off
-
# description: The POPPASSD service allows remote users to change their
-
# password remotely via Eudora or NUPOP using a network
-
# protocol on port 106.
-
#
-
service poppassd
-
{
-
disable = no
-
socket_type = stream
-
wait = no
-
user = root
-
server = /usr/sbin/poppassd
-
log_on_success += USERID
-
log_on_failure += USERID
-
}
-
- Test the poppassd service. Below is several examples,
CODE:
-
[root@kuli ~]# telnet localhost 106
-
Trying 127.0.0.1...
-
Connected to localhost.localdomain (127.0.0.1).
-
Escape character is '^]'.
-
200 kuli.magnifix.com.my poppassd v1.6a hello, who are you?
-
-
500 Username required.
-
Connection closed by foreign host.
-
[root@kuli ~]# nmap localhost
-
-
Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2007-09-05 12:10 MYT
-
Interesting ports on localhost.localdomain (127.0.0.1):
-
(The 1651 ports scanned but not shown below are in state: closed)
-
PORT STATE SERVICE
-
25/tcp open smtp
-
80/tcp open http
-
106/tcp open pop3pw
-
110/tcp open pop3
-
139/tcp open netbios-ssn
-
143/tcp open imap
-
443/tcp open https
-
445/tcp open microsoft-ds
-
993/tcp open imaps
-
-
Nmap run completed -- 1 IP address (1 host up) scanned in 0.246 seconds
-
[root@kuli ~]# netstat -tupan | grep 106
-
tcp 0 0 0.0.0.0:106 0.0.0.0:* LISTEN 15558/xinetd
-
tcp 0 0 127.0.0.1:106 127.0.0.1:43277 TIME_WAIT -
-
tcp 0 0 127.0.0.1:106 127.0.0.1:43279 TIME_WAIT -
-
tcp 7 0 127.0.0.1:106 127.0.0.1:43228 CLOSE_WAIT 15362/passwd
-
tcp 7 0 127.0.0.1:106 127.0.0.1:43230 CLOSE_WAIT 15363/poppassd
-
tcp 7 0 127.0.0.1:106 127.0.0.1:43247 CLOSE_WAIT 15420/passwd
-
tcp 7 0 127.0.0.1:106 127.0.0.1:43249 CLOSE_WAIT 15422/passwd
-
tcp 7 0 127.0.0.1:106 127.0.0.1:43251 CLOSE_WAIT 15423/poppassd
-
- Activate the plugin.
CODE:
-
SquirrelMail Configuration : Read: config.php (1.4.0)
-
---------------------------------------------------------
-
Plugins
-
Installed Plugins
-
1. delete_move_next
-
2. squirrelspell
-
3. newmail
-
4. abook_take
-
5. change_pass
-
-
Available Plugins:
-
6. filters
-
7. translate
-
8. message_details
-
9. calendar
-
10. sent_subfolders
-
11. bug_report
-
12. mail_fetch
-
13. administrator
-
14. spamcop
-
15. fortune
-
16. info
-
17. listcommands
-
-
R Return to Main Menu
-
C Turn color off
-
S Save data
-
Q Quit
-
-
Command>
-
- Test it on SquirrelMail. Done!
{ 5 } Comments
thanks, very handy!
UsingI get 500 Old password is incorrect error, but I know for sure my password is correct. What is wrong. Thanks!
UsingHi Sir,
I did all the things above mention but it’ shows error
Password change was not successful!
tell me were i did mistake
UsingHi Sir,
Now the change password error is not coming but password is not changed ..
what can i do
UsingHi.
I’m getting the error when i try to use telnet localhost 106.
I’m able to successfully connect to telnet but for some reason, it is not allowing me to change my password. Please find the log below
telnet localhost 106
telnet: system library bug? getaddrinfo returns numeric address
as canonical name of localhost
Trying 127.0.0.1…
Connected to localhost (127.0.0.1).
Escape character is ‘^]’.
200 mail.goldscape.net poppassd v1.6a hello, who are you?
user muzammil.m
200 your password please.
pass welcome
200 your new password please.
newpass p@ssw0rd
500 ‘Enter new UNIX password:’.
for some reason it stuck at UNIX password. Looking forward to your support.
UsingPost a Comment