安裝後的網址 http://localhost/cgi-bin/openwebmail/openwebmail.pl
1.
yast2 -i postfix perl perl-Compress-Zlib perl-Text-Iconv
perl -MCPAN -e 'install HTML::Template'
perl -MCPAN -e 'install Unix::SetUser'
2. 配合apache安裝openwebmail 網頁
cd /srv/www/
wget http://openwebmail.org/openwebmail/download/current/openwebmail-current.tar.gz
tar zxvf openwebmail-current.tar.gz
rm openwebmail-current.tar.gz
mv /srv/www/data/openwebmail /srv/www/htdocs/
vi /srv/www/cgi-bin/openwebmail/etc/openwebmail.conf
ow_cgidir /srv/www/cgi-bin/openwebmail
ow_htmldir /srv/www/htdocs/openwebmail
default_language zh_TW.Big5
cd /srv/www/cgi-bin/openwebmail/etc/
cp /srv/www/cgi-bin/openwebmail/etc/defaults/dbm.conf /srv/www/cgi-bin/openwebmail/etc/
vi dbm.conf
dbm_ext .pag
dbmopen_ext none
dbmopen_haslock no
cp /srv/www/cgi-bin/openwebmail/etc/defaults/auth_unix.conf /srv/www/cgi-bin/openwebmail/etc/
vi auth_unix.conf
#passwdfile_encrypted /etc/master.passwd
#passwdmkdb /usr/sbin/pwd_mkdb
passwdfile_plaintext /etc/passwd
passwdfile_encrypted /etc/shadow
passwdmkdb none
check_expire no
check_nologin no
check_shell no
check_cobaltuser no
change_smbpasswd no
初始化
/srv/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
chmod 4555 /srv/www/cgi-bin/openwebmail/openwebmail*.pl
chown root.mail /srv/www/cgi-bin/openwebmail/openwebmail*.pl
chmod
----
安裝FAQ
Q1: Can't locate HTML/Template.pm in @INC...
A1: perl -MCPAN -e 'install HTML::Template'
Q2. Cannot read /usr/local/www/cgi-bin/openwebmail/etc/lang! (No such file or directory)
A2:
mkdir /usr/local/www
ln -s /srv/www/cgi-bin /usr/local/www/
ln -s /srv/www/htdocs /usr/local/www/data
Q3./srv/www/cgi-bin/openwebmail/openwebmail.pl must be setuid to root to read the mail spools
vi /srvl/www/cgi-bin/openwebmail/etc/defaults/suid.conf
have_savedsuid_support no
chmod 4555 /usr/bin/perl
之後,登入後就一切正常了。
Q4.
vi openwebmail-prefs.pl line 1794
#sort => $sort,
--
# vi /etc/apache2/default-server.conf
================================================
Alias /openwebmail "/srv/www/htdocs/openwebmail"
ScriptAlias /webmail "/srv/www/cgi-bin/openwebmail/openwebmail.pl"
ScriptAlias /mail "/srv/www/cgi-bin/openwebmail/openwebmail.pl"
================================================
# rcapache2 restart
沒有留言:
張貼留言