Poppassd 安裝程序
之前安裝 SquirrelMail 有看到 change password 的功能, 但是最近需要讓使用者自己來更改密碼時才發現不見了, 看了 SquirrelMail 相關說明後才瞭解需要安裝 change_pass Plugin 才會有這功能. 本來以為這樣就完成, 實際使用時又發現無法開啟連線的 111 異常訊息. 再去看
, 原來還需要這個 Poppassd 來配合.
下載與安裝設定
cd /usr/share/squirrelmail/plugins/change_pass mkdir poppassd cd poppassd wget ftp://netwinsite.com/pub/poppassd/poppassd.c gcc poppassd.c -o poppassd -lcrypt vi /etc/services
: # (due to a bug in inetd the 3com-tsmux line is disabled) 3com-tsmux 106/tcp poppassd #3com-tsmux 106/udp poppassd :
cd /etc/xinetd.d/ vi poppassd
service poppassd { flags = REUSE socket_type = stream wait = no user = root server = /usr/share/squirrelmail/plugins/change_pass/poppassd/poppassd server_args = log_on_failure += USERID disable = no }
service xinetd restart [root@vm-mail xinetd.d]# netstat -na | grep 106 tcp 0 0 0.0.0.0:106 0.0.0.0:* LISTEN [root@vm-mail xinetd.d]# telnet localhost 106 Trying 127.0.0.1... Connected to mail.ichiayi.com (127.0.0.1). Escape character is '^]'. 200 vm-mail poppassd v1.6a hello, who are you? quit Connection closed by foreign host. [root@vm-mail xinetd.d]#