差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

下次修改
前次修改
tech:poppassd [2008/10/22 07:25] – 建立 jonathantech:poppassd [2021/01/16 14:38] (目前版本) – 更換 plugin jonathan
行 1: 行 1:
 +======  Poppassd 安裝程序 ======
 +之前安裝 SquirrelMail 有看到 change password 的功能, 但是最近需要讓使用者自己來更改密碼時才發現不見了, 看了 SquirrelMail 相關說明後才瞭解需要[[tech:mail:squirrelmail|安裝 change_pass Plugin]] 才會有這功能. 本來以為這樣就完成, 實際使用時又發現無法開啟連線的 111 異常訊息. 再去看 ++++change_pass Plugin 內的說明|<code>/usr/share/squirrelmail/plugins/change_pass/INSTALL</code>++++, 原來還需要這個 Poppassd  來配合.
 +===== 下載與安裝設定 =====
 +<cli>
 +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 
 +</cli>
 +<file>
 +:
 +# (due to a bug in inetd the 3com-tsmux line is disabled)
 +3com-tsmux      106/tcp         poppassd
 +#3com-tsmux     106/udp         poppassd
 +:
 +</file>
 +<cli>
 +cd /etc/xinetd.d/
 +vi poppassd 
 +</cli>
 +<file>
 +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
 +}
 +</file>
 +<cli>
 +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]# 
 +</cli>
 +
 +
 +===== 參考網址 =====
 +  * [[http://www.netwinsite.com/poppassd/|Poppassd - Installation and Management Guide]]
 +
 +
 +{{tag>poppassd password squirrelmail}}