Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10454534
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-07-08 09:33:07

[root@redhatlinux9 root]# rpm -q httpd
httpd-2.0.40-21
[root@redhatlinux9 root]# rpm -q sendmail
sendmail-8.12.8-4
[root@redhatlinux9 openwebmail]# pstree|grep httpd
       |-httpd---9*[httpd]
[root@redhatlinux9 openwebmail]# pstree|grep sendmail
       |-2*[sendmail]
# 因为OPENWEBMAIL基于APACHE和SENDMAIL, 所以先检查它们的状态.
[root@redhatlinux9 root]# cd /brus/openwebmail/
# 进入准备好安装文件的目录, 大家可以先到 下载.
[root@redhatlinux9 openwebmail]# rpm -ivh perl-CGI-2.81-88.i386.rpm
warning: perl-CGI-2.81-88.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                  ########################################### [100%]
     1:perl-CGI                 ########################################### [100%]
[root@redhatlinux9 openwebmail]# rpm -ivh perl-Compress-Zlib-1.21-RH9.i386.rpm
Preparing...                  ########################################### [100%]
     1:perl-Compress-Zlib       ########################################### [100%]
[root@redhatlinux9 openwebmail]# rpm -ivh perl-suidperl-5.8.0-88.i386.rpm
warning: perl-suidperl-5.8.0-88.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                  ########################################### [100%]
     1:perl-suidperl            ########################################### [100%]
[root@redhatlinux9 openwebmail]# rpm -ivh perl-Text-Iconv-1.2-RH80.i386.rpm
Preparing...                  ########################################### [100%]
     1:perl-Text-Iconv          ########################################### [100%]
[root@redhatlinux9 openwebmail]# rpm -ivh openwebmail-2.50-1.i386.rpm
warning: openwebmail-2.50-1.i386.rpm: V3 DSA signature: NOKEY, key ID cfb164d8
Preparing...                  ########################################### [100%]
     1:openwebmail              ########################################### [100%]
# 以上安装的是其所需的PERL包和OPENMAIL-2.50版本. 请大家去下载相应文件.
You may login with non-root account from

# 最后提示可以通过以上路径在浏览器中访问, 注意你们的计算机名和我的不一样.
/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
# 在浏览器中访问后提示, 需要先初始化OPENWEBMAIL的服务!
[root@redhatlinux9 openwebmail]# cd /var/www/cgi-bin/openwebmail/
# 进入相应位置(根据浏览器的提示).
[root@redhatlinux9 openwebmail]# ./openwebmail-tool.pl --init
# 根据浏览器的提示初始化OPENWEBMAIL.
Please change './etc/dbm.conf' from
dbm_ext                   .db
dbmopen_ext               none
dbmopen_haslock           no
to
dbm_ext                   .db
dbmopen_ext               .db
dbmopen_haslock           no

And execute './openwebmail-tool.pl --init' again!
ps: If you are running openwebmail in persistent mode,
      don't forget to 'touch openwebmail*.pl', so speedycgi
      will reload all scripts, modules and conf files in --init.
# 而以上结果告诉我们需要修改DBM.CONF文件.
[root@redhatlinux9 openwebmail]# vi ./etc/defaults/dbm.conf
# 根据提示修改, 将 dbmopen_ext               none 改为 .db
[root@redhatlinux9 openwebmail]# ./openwebmail-tool.pl --init
# 再次初始化!
creating db /var/www/cgi-bin/openwebmail/etc/maps/b2g ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/g2b ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/lunar ...done.
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-8 i686
Perl: 5.008
WebMail: Open WebMail 2.50 20050106
Send the site report?(Y/n)
sending report...
Thank you.
# 得到成功提示并发送回馈信息成功.

# 在浏览器中访问以上地址, 发现可以使用了.
#注意: 2.51版本存在提示PERL组件版本低的问题. 以下是错误提示内容:
[root@my openwebmail]# ./openwebmail-tool.pl --init
Base64.pm                 /usr/lib/perl5/5.8.0/i386-linux-thread-multi/MIME/Base64.pm
Your MIME::Base64 module is too old (2.12),
please update to 3.00 or later.

And execute './openwebmail-tool.pl --init' again!
ps: If you are running openwebmail in persistent mode,
      don't forget to 'touch openwebmail*.pl', so speedycgi
      will reload all scripts, modules and conf files in --init.
#当然可以升级PERL-MIME到3.0, 简单命令如下:
[root@www root]# wget
[root@www root]# tar zxvf MIME-Base64-3.01.tar.gz
[root@www root]# cd MIME-Base64-3.01
[root@www root]# perl Makefile.PL
[root@www root]# make
[root@www root]# make install
#其实有更简单的办法: 先安装OPENWEBMAIL的2.50版本,再用 rpm -Uvh 升级到2.51即可解决.
###############################################################################################
#附录-配置说明:
#(在其它版本的LINUX下可能需要):
壹、 OpenWebMail簡介:
OpenWebMail是套WebBase的電子郵件收發系統,它發展自Neomail,可以說是Neomail的加強版,而具最主要的目的在於可以很平順地從Outlook 或 Outlook Express 轉移至OpenWebMail上。
貳、 OpenWebMail套件的下載:
1. 檢查sendmail與imap是否安裝與設定正確。
2. 確認DNS上設定好這台Server是台郵件主機。
3. 檢查perl版本是否大於5.0
perl -version
4. 檢查是否安裝以下之perl附屬套件
perl-CGI-2.752
perl-libnet-1.0901
perl-MIME-Base64-2.12
perl-suidperl-5.6.1
5. 以上附屬套件若尚未安裝,則由RedHat 7.3安裝光碟安裝:
perl-CGI, perl-libnet, perl-MIME-Base在第一片光碟片
perl-suidperl在第三片光碟片
或至下載安裝。
欲取得最新版本,請至。
6. 下載OpenWebMail最新套件:
若您需要最新的rpm套件,請至下載最新檔。
若您需要穩定的rpm套件版本,請至最得openwebmail-x.xx-x.i386.rpm檔案。
7. 下載Sendmail設定檔:

參、 OpenWebMail的設定:
1. 安裝perl相關套件:
rpm –Uvh perl-CGI-2.752* perl-libnet-1.0901* perl-MIME-Base64-2.12* perl-suidperl-5.6.1*
2. 修改sendmail設定檔:
cp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.default
cp /etc/sendmail.cf /etc/sendmail.cf.default
cp /root/open/sendmail.mc /etc/mail/sendmail.mc
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
/etc/rc.d/init.d/sendmail restart
3. 安裝OpenWebmail系統:
rpm –Uvh openwebmail-x.xx-x.i386.rpm
4. 修改系統記錄檔的相關設定,讓openwebmail的記錄檔定期地清理:
vi /etc/logrotate.d/syslog
在檔尾加入以下數行:
/var/log/openwebmail.log {
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
5. 設定信件自動回覆系統採用OpenWebMail之設定:
ln -s /var/www/cgi-bin/openwebmail/vacation.pl /etc/smrsh/vacation.pl
6. 設定完成後,請打開流覽器,在網址列中輸入:
http://您的網址/cgi-bin/openwebmail/openwebmail.pl
若您看到以下的畫面,就表示您己經安裝成功了!
您可試試使用系統上的帳號與密碼來測試一下您的WebMail系統!
7. 若您還是沒有看到正確的畫面,請參考以下之記錄檔,以便除錯:
/var/log/openwebmail.log
/var/log/httpd/error.log
阅读(2166) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~