歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> openwebmail的安裝

openwebmail的安裝

日期:2017/3/6 15:29:24   编辑:關於Unix
事先做好sendmail和httpd的安裝,並正常運行。 到openwebmail的網站下載下面的軟件包: http://openwebmail.com/openwebmail/download/redhat/rpm/packages/rh9/ perl-suidperl-5.8.0-88.i386.rpm perl-Text-Iconv-1.2-RH80.i386.rpm perl-Compress-Zlib-1.2

事先做好sendmail和httpd的安裝,並正常運行。

到openwebmail的網站下載下面的軟件包:http://openwebmail.com/openwebmail/download/redhat/rpm/packages/rh9/

perl-suidperl-5.8.0-88.i386.rpm
perl-Text-Iconv-1.2-RH80.i386.rpm
perl-Compress-Zlib-1.21-RH9.i386.rpm
perl-CGI-2.81-88.i386.rpm
以及optional裡面的
perl-CGI-SpeedyCGI-2.21-RH9.i386.rpm
MIME-Base64-3.01.tar.gz(注意這個,在後面運行初始化openwebmail的時候可能會提示這個軟件的版本不夠用,所以把這個裝上)

分別安裝上面的軟件
下載openwebmail的rpm包:
http://openwebmail.com/openwebmail/download/redhat/rpm/release/
openwebmail-2.51-1.i386.rpm
安裝:rpm -ivh openwebmail-2.51-1.i386.rpm
安裝目錄會在/var/www/下面出現兩個目錄:/cgi-bin和/data

將/cgi-bin/openwebmail/etc/defaults/auth_unix.conf拷貝到/etc目錄下,並修改
a. passwdfile_encrypted /etc/shadow
b. passwdmkdb none

在/cgi-bin/openwebmail/etc/defaults/dbm.conf目錄下修改dbm.conf文件,內容如下:
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock yes

在/cgi-bin/openwebmail/etc目錄下修改openwebmail.conf文件,內容如下:
a. mailspooldir /var/spool/mail
b. ow_cgidir /var/www/cgi-bin/openwebmail
c. ow_cgiurl /cgi-bin/openwebmail
d. ow_htmldir /var/www/data/openwebmail
e. ow_htmlurl /data/openwebmail
f. default_language zh_CN.GB2312
g. default_iconset Cool3D.Chinese.Simplified

然後運行/home/www/httpd/cgi-bin/openwebmail/openwebmail-tool.pl --init

[root@proxy openwebmail]# ./openwebmail-tool.pl --init

Welcome to the Open WebMail!

This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:

OS: Linux 2.4.20-8smp i686
Perl: 5.008
WebMail: Open WebMail 2.51 20050228

Send the site report?(Y/n) y
sending report...

Thank you.

[root@proxy openwebmail]#
出現上面的結果說明已經正確初始化了,這個時候也就安裝完了,現在想起來好像很簡單,但當時裝的時候還是費了很大功夫的。運行下面的

http://100.100.100.100/cgi-bin/openwebmail/openwebmail.pl

就會出現openwebmail的登陸界面了。不過進入以後裡面的圖標都是英文的,進入data/openwebmail/images/iconsets裡將相應的簡體中文圖標都拷到Cool3D.English 這個目錄下面,就全部OK了。

寫下來與大家共享!

Copyright © Linux教程網 All Rights Reserved