2008年8月20日 星期三

OpenWebMail

1、安装openwebmail 2.51软件:
安裝環境:RH4 + Sendmail + Apach + Openwebmail
# service httpd restart (启动httpd服务)
停止 httpd: [ 确定 ]
启动 httpd: [ 确定 ]

# rpm -ivh perl-5.8.5-12.1.i386.rpm
# rpm -ivh perl-CGI-SpeedyCGI-2.22-1.2.el4.rf.i386.rpm
# rpm -ivh perl-Compress-Zlib-1.34-1.2.el4.rf.i386.rpm
# rpm -ivh perl-suidperl-5.8.5-12.1.1.i386.rpm
# rpm -ivh perl-Text-Iconv-1.4-1.2.el4.rf.i386.rpm

# rpm -ivh openwebmail-2.51-1.i386.rpm

warning: openwebmail-2.51-1.i386.rpm: V3 DSA signature: NOKEY, key ID cfb164d8
Preparing... ######################################### [100%]
1penwebmail ###################################### [100%]

You may login with non-root account from
http://mail.easy.com/cgi-bin/openwebmail/openwebmail.pl

# cd /var/www/cgi-bin/openwebmail/

# ./openwebmail-tool.pl --init

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.
2、修改 /var/www/cgi-bin/openwebmail/etc/openwebmail.conf 文件:

domainnames auto
更改为:
domainnames zoomsky.com (更改为自己定义的域名)

default_language en
更改为:
default_language zh_CN.GB2312 (更改为简体中文版介面)

default_iconset Cool3D.Englist
更改为:
default_iconset Cool3D.Chinese.Simplified (更改为中文3D按键)

3、修改/var/www/cgi-bin/openwebmail/etc/defaults/openwebmail.conf文件:

smtpserver 127.0.0.1
更改为:
smtpserver 192.168.0.77 (更改smtp服务器的地址)

authpop3_server localhost
更改为:
authpop3_server 192.168.0.77 (更改pop3服务器的地址)

4、修改/var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf文件:

dbmopen_ext none
更改为:
dbmopen_ext .db

dbmopen_haslock no
更改为:
dbmopen_haslock yes

smtpserver 192.168.1.253 (添加smtp服务器的地址)
5、继续运行openwebmail-tool.pl文件:

# ./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.6.9-11.EL i686
Perl: 5.008005
WebMail: Open WebMail 2.51 20050228

Send the site report?(Y/n) y (输入y,然后按回车键)
sending report...

Thank you.


6、测试webmail方式收发电子邮件:

在ie中输入以下地址:

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


以上資料截自 http://www.ixpub.net/redirect.php?fid=223&tid=672660&goto=nextnewset

沒有留言: