1安装redhat AS3
2安装apache,sendmail安装AS3时选上该软件包
3安装prel-CGI语言包,如果你安装了MYSQL就不用装这个包了
代码:
wget http://openwebmail.showhappy.net/download/redhat/rpm/packages/rhel3/perl-CGI-2.81-88.4.i386.rpm
#rpm -ivh perl-CGI-2.81-88.4.i386.rpm
4安装AS3必需需要的perl语言包
代码:
wget http://openwebmail.showhappy.net/download/redhat/rpm/packages/rhel3/perl-Compress-Zlib-1.21-RH9.i386.rpm
wget http://openwebmail.showhappy.net/download/redhat/rpm/packages/rhel3/perl-Text-Iconv-1.2-RH80.i386.rpm
wget http://openwebmail.showhappy.net/download/redhat/rpm/packages/rhel3/perl-suidperl-5.8.0-88.i386.rpm
#rpm -ivh *
5安装openwebmail
代码:
wget http://openwebmail.showhappy.net/download/redhat/rpm/daily-build/SRPM/openwebmail-2.30-20040131.src.rpm
rpm -ivh openwebmail*
5设置apache本来默认的apache已经支持cgi-bin
代码:
ScriptAlias /webmail/ "/var/www/cgi-bin/openwebmail/openwebmail.pl"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
其他采用默认就可以了,想必大家基本的配置还会吧
6配置sendmail
代码:
#vi /etc/mail/sendmail.mc
把DAEMON_OPTIONS(`Port=smtp,ipaddr=127.0.0.1,Name=MTA')dnl
改为DAEMON_OPTIONS(`Port=smtp,Name=MTA')dnl
#vi access
加入你允许使用sendmail服务的主机
mydomain@123.com (这里你添你自给的余名) OK
保存推出
#make
#service sendmail restart
打开pop3服务
#chkconfig pop3 on
7配置openwebmail
代码:
#cd /var/www/cgi-bin
#./opwebmail-tool.pl --init
#cd etc
#vi dbm.conf.default
将dbm_ext .db
dbmopen_ext none
dbmopen_haslock no
改成
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock yes
保存
#cd ..
#./openwebmail-tool.pl --init
好了,现在重起www服务
http://localhost/webmail/openwebmail.pl
试试吧,声明此设置没有任何安全措施!,纯属娱乐
例子在此http://wangjian.8800.org/cgi-bin/openwebmail/openwebmail.pl