RedHat AS 4.1 + Postfix + dovecot + Apache + OpenWebMail 安装笔记
时间:2007-01-04 11:39:44
来源: 作者:whsong 点击:次 出处:技术无忧
关键字:RedH
作者:fandy电子邮箱:cbbc@163.com
QQ:332018422
建立日期:2005年10月01日,最后修改日期:2005年10月03日
在RedHat Enterprise Server 4.1系统中MTA服务的软件有许多,常用“Sendmail、Qmail、Postfix”等软件,本文使用RedHat Enterprise Server 4.1 + Postfix + dovecot + Apache + OpenWebMail制作一个集POP和WebMail等功能的电子邮件系统,希望可以解决大家在同类安装时减少一般不必要的错误啦(注以下的操作请使用root用户来进行):
Step0、实验环境:
域名:easy.com
邮件主机:mail.easy.com
IP地址:192.168.1.253
操作系统:RedHat Enterprise Server 4.1中文版
Step1、安装所需要的软件清单:
postfix-2.1.5-4.2.rhel4.rpm
postfix-pflogsumm-2.1.5-4.2.rhel4.rpm
cyrus-sasl-2.1.19-5.rhel4.i386.rpm
dovecot-0.99.11-2.rhel4.1.rpm
httpd-2.0.52-12.ent.rpm
perl-Text-Iconv-1.4-1.2.el4.rf.i386.rpm
perl-suidperl-5.8.5-12.1.1.i386.rpm
perl-Compress-Zlib-1.34-1.2.el4.rf.i386.rpm
perl-CGI-SpeedyCGI-2.22-1.2.el4.rf.i386.rpm
perl-5.8.5-12.1.i386.rpm
openwebmail-2.51-1.i386.rpm
--------------------------------------------------------------------------------------------------
说明:软件清单中的postfix+cyrus-sasl+dovecot+httpd也可以在安装系统时一起安装。
安装openwebmail 2.51系统所需要的软件可以到下列地址下载:
http://openwebmail.org/openwebmail/...hat/rpm/release
--------------------------------------------------------------------------------------------------
Step2、postfix的安装过程:
#killall sendmail (停止所有的Sendmaail进程)
sendmail: no process killed
# rpm -ivh postfix-2.2.5-3.rhel4.i386.rpm
Preparing... ########################################### [100%]
1:postfix ########################################### [100%]
链接 /usr/share/man/man8/sendmail.8.gz 到从mta-sendmailman(/usr
/share /man /man1/sendmail.1.gz mta-sendmailman)不正确
Step3、启动postfix + dovecot服务过程:
# service postfix start
Starting postfix: [ 确定 ]
# service dovecot start
启动 Dovecot Imap: [ 确定 ]
Step4、修改/etc/dovecot.conf文件:
#protocols = imap imap3
更改为:
protocols = imap imap3 pop3 pop3s
auth_passdb =
更改为:
auth_passdb = shadow
# service dovecot restart(重新启动dovecot服务)
停止 Dovecot Imap: [ 确定 ]
启动 Dovecot Imap: [ 确定 ]
Step5、修改/etc/postfix/main.cf文件:
#myhostname = host.domain.tld
更改为:
myhostname = mail.easy.com
#mydomain = domain.tld
更改为:
mydomain = easy.com
#myorigin = $mydomain
更改为:
Myorigin = easy.com
#inet_interfaces = all
更改为:
Inet_interfaces =all
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain
更改为:
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain,
ftp.$mydomain
#mynetworks = host
更改为:
mynetworks = host
# service postfix restart (重新启动postfix服务)
Shutting down postfix: [ 确定 ]
Starting postfix: [ 确定 ]
Step6、端口测试:
# telnet mail.easy.com 25 (测试25端口)
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.easy.com ESMTP Postfix
quit
221 Bye
Connection closed by foreign host.
# telnet mail.easy.com 110 (测试110端口)
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK dovecot ready.
quit
+OK Logging out
Connection closed by foreign host.
Step7、安装openwebmail 2.51软件:
# 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%]
1:openwebmail ###################################### [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.
Step8、修改 /var/www/cgi-bin/openwebmail/etc/openwebmail.conf 文件:
domainnames auto
更改为:
domainnames easy.com (更改为自己定义的域名)
default_language en
更改为:
default_language zh_CN.GB2312 (更改为简体中文版介面)
default_iconset Cool3D.Englist
更改为:
default_iconset Cool3D.Chinese.Simplified (更改为中文3D按键)
Step9、修改/var/www/cgi-bin/openwebmail/etc/defaults/openwebmail.conf文件:
smtpserver 127.0.0.1
更改为:
smtpserver 192.168.1.253 (更改smtp服务器的地址)
authpop3_server localhost
更改为:
authpop3_server 192.168.1.253 (更改pop3服务器的地址)
Step10、修改/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服务器的地址)
Step11、继续运行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.
Step12、测试webmail方式收发电子邮件:
在ie中输入以下地址:
http://mail.easy.com/cgi-bin/openwebmail/openwebmail.pl
以下为安装记录文件!
附件:

文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面