14 元月, 2010 16:32
環境:RoundCube 0.3 ,CentOS 5.4,Postfix (maildir) ,php 5.3
-- 不使用 SQL 認證,蠻麻煩的..還要重新安裝 Postfix 以支援 mysql.. 放棄!
-- 改用較簡單設定的 Poppassd 方式.
下載安裝 Poppassd ****轉貼*** 來源網頁
1. Download and install the Razor’s Edge Repository rpm package.# rpm -ivh xxx
2. Install poppassd using the command below. # yum install poppassd
3. Enable the poppassd service. Learn how to enable services here. 預設為 xinetd 啟動,vi /etc/xinetd.d/poppassd -> disable = no
4. Edit the file /etc/pam.d/poppassd and replace the content with the lines below.
auth required /lib/security/pam_unix.so
account required /lib/security/pam_unix.so
password required /lib/security/pam_cracklib.so #密碼複雜度檢查,可 #
password required /lib/security/pam_unix.so
5. In a Terminal window, type in the highlighted commands below.
Sample poppassd session. Replace johndoe, secret and p@ssw0rd with your own valid user account, old password and new password respectively.
[root@mail ~]# telnet localhost 106
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
200 poppassd v1.8.5 hello, who are you?
user johndoe
200 Your password please.
pass secret
200 Your new password please.
newpass p@ssw0rd
200 Password changed, thank-you.
quit
200 Bye.
***********************************************************************
2.cp /var/www/html/rcwebmail/plugins/password/config.inc.php.dist to config.inc.php
3.vi /../password/config.inc.php
$rcmail_config['password_driver'] = 'poppassd';
4.vi /var/www/html/rcwebmail/config/main.inc.php
//載入 password Plugin
$rcmail_config['plugins'] = array('password');
5. /etc/init.d/xinetd restart
6.登入 RoundCube 個人設定->密碼修改.
推文( 0 )