打印

AS3+Apache+Sendmal+openwebmail+CGI笔记(绝对简便快洁)

AS3+Apache+Sendmal+openwebmail+CGI笔记(绝对简便快洁)

1安装redhat AS3

2安装apache,sendmail安装AS3时选上该软件

3安装prel-CGI语言包,如果你安装了MYSQL就不用装这个包了

wget http://openwebmail.showhappy.net ... -2.81-88.4.i386.rpm
#rpm -ivh perl-CGI-2.81-88.4.i386.rpm

4安装AS3必需需要的perl语言包

wget http://openwebmail.showhappy.net ... b-1.21-RH9.i386.rpm

wget http://openwebmail.showhappy.net ... v-1.2-RH80.i386.rpm


wget http://openwebmail.showhappy.net ... l-5.8.0-88.i386.rpm
#rpm -ivh *


5安装openwebmail

wget http://openwebmail.showhappy.net ... 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

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-10-16 11:19 京ICP证060528 号

Designed By 17DST