

linux下open webmail服务器的架设
架设open webmail服务器,要安装sendmail和Apache2个服务哦,这个就不多说了。
准备所需的软件:
CGI.pm-3.05.tar.gz
MIME-Base64-3.01.tar.gz
libnet-1.19.tar.gz
Text-Iconv-1.2.tar.gz
Digest-1.08.tar.gz
Digest-MD5-2.33.tar.gz
perl-suidperl-5.8.8-27.el5.i386.rpm
所需软件可以去官方找,地址是http://openwebmail.org/openwebmail/download/packages/
安装软件的格式如下所示
tar -zxvf CGI.pm-3.05.tar.gz
cd CGI.pm-3.05
perl Makefile.PL
make
make install
其他一样的安装,按照上面软件包的顺序安装
安装openmail
tar -zxvf openwebmail-2.53.tar.gz
cp data/openmail /var/www/html
cp cgi-bin/openwebmail /var/www
然后是配置openmail
现在来看看我们的OpenWebMail是否安装完成,打开浏览器,输入:
http://localhost/cgi-bin/openwebmail/openwebmail.pl
如果出现登录OpemWebMail的界面,则说明安装成功,出现错误请反正检查,包括
你的cgi-bin目录在Apache是配置是否合理,看我的Apache中cgi-bin目录的配置:
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory "/var/www/cgi-bin">
AllowOverride None
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
1.修改:vi cd /var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf
把里面内容改成这样:
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock yes
保存退出。然后在执行:
2.修改:/usr/httpd/cgi-bin/openwebmail/etc/defaults/auth_unix.pl文件:
my $unix_passwdfile_plaintext="/etc/passwd";
my $unix_passwdfile_encrypted="/etc/shadow";
my $unix_passwdmkdb="none";
2、修改 /usr/httpd/cgi-bin/openwebmail/etc/openwebmail.conf (我的文件内容如下)
domainnames auto
auth_module auth_unix.pl
mailspooldir /var/spool/mail
dbm_ext .db
dbmopen_ext %dbm_ext%
dbmopen_haslock no
ow_cgidir /usr/httpd/cgi-bin/openwebmail
ow_cgiurl /cgi-bin/openwebmail
ow_htmldir /usr/httpd/htdocs/openwebmail
ow_htmlurl /openwebmail
logfile /var/log/openwebmail.log
spellcheck /usr/bin/ispell
*本站禁止HTML标签噢* ;
--
Open WebMail Project (http://openwebmail.org)
</default_signature>;
然后运行/usr/httpd/cgi-bin/openwebmail/openwebmail-tool.pl --init
并启动apache:
/usr/httpd/bin/apachectl start
到此,你可以浏览一下看安装是否成功:http://localhost/cgi-bin/openwebmail/openwebmail.pl
PS:安装过程可能会出现错误提示,这个以后我会出更详细的文字教程,后续……


1.在DNS里面设置转发功能 vim /var/named/chroot/etc/named.conf
forwarders { 172.18.0.6;}; 设置公网的DNS服务器
2.设置sendmail的转发功能 vim /etc/mail/access
# by default we allow relaying from localhost...
Connect:localhost.localdomain RELAY
Connect:localhost RELAY
Connect:127.0.0.1 RELAY
Connect:mail.qq.com RELAY 注明:这个是可以转发的公网mail服务器
~
3.测试结果如下
[查看全文]