Openwebmail Installation

Posted in Daily on February 3rd, 2008 by Banbanli

先安裝
perl-suideperl 可以透過Yum install
perl-Text-Iconv 這個要在openwebmail dl 安裝

Download
http://openwebmail.org/openwebmail/download/current/weekly/openwebmail-20080203.tar.gz

這個好像之前沒有出現過~建一個檔案給他
vi /var/www/cgi-bin/openwebmail/etc/dbm.conf
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock no

/var/www/cgi-bin/openwebmail/openwebmail-tool.pl –init

在login 的時候會發生錯誤,說會找不到/etc/master.passwd
Authentication system error! Please go back and try again.
所以先修改
vi /var/www/cgi-bin/openwebmail/auth/auth_unix.pl
my $passwdfile_plaintext = $conf{'passwdfile_plaintext'} || '/etc/passwd';
#my $passwdfile_encrypted = $conf{'passwdfile_encrypted'} || '/etc/master.passwd';
#my $passwdmkdb = $conf{'passwdmkdb'} || '/usr/sbin/pwd_mkdb';
my $passwdfile_encrypted='/etc/shadow';
my $passwdmkdb='none';

搞定