Monday, November 15, 2010

poppassd + roundcube on FreeBSD

最近因為被roundcube的美貌所吸引,所以正在考慮是否拿它來當webmail。roundcube最大的特點就是: 相當美+相當陽春。

紀錄一下poppassd跟roundcube怎麼搭配,讓使用者可以在web介面上直接改密碼,而不需要登入freebsd系統.. roundcube的安裝部分就不介紹了,直接來poppassd的部分。

Environment:
OS: FreeBSD 8.1-RELEASE-p1
roundcube: 0.4.2
poppassd: 4.0_3

STEP1: Install poppassd

# cd /usr/ports/mail/poppassd/
# make install clean

By default, you can find the binary in /usr/local/libexec

STEP2: Startup setting

# man poppassd

Modify /etc/inetd.conf AND /etc/services AND /etc/syslog.conf as describe in the man page.

STEP3: Auto-start inetd when reboot
Modify /etc/rc.conf AND add:

# inetd

inetd_enable="YES"

STEP4: restart inetd

# /etc/rc.d/inetd restart

 

STEP5: Config roundcube plugin
Modify /usr/local/www/roundcube/plugins/password/config.inc.php

// Select a driver to use, see README for more driver name

$rcmail_config['password_driver'] = 'poppassd';

STEP6: Add roundcube plugin
Modify /usr/local/www/roundcube/config/main.inc.php

// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array('password');

STEP FINAL: Restart roundcube and apache

 

Ref:

  1. [FRESH ports] poppassd
  2. Poppassd – Installation and Management Guide
  3. roundcube wiki – plugins/password

Tags