linux下postfix openwebmail邮局服务器完美搭建.doc_第1页
linux下postfix openwebmail邮局服务器完美搭建.doc_第2页
linux下postfix openwebmail邮局服务器完美搭建.doc_第3页
linux下postfix openwebmail邮局服务器完美搭建.doc_第4页
linux下postfix openwebmail邮局服务器完美搭建.doc_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

基于linux 系统下安装postfix,dovecot,opwebmail 邮局服务器1、实验原理拓扑2、实验要求,1台liunx 服务器,1台xp客户端 要求必须可以连上internet。 先卸载sendmainrootser # yum remove sendmail安装postfix ,dovecot, rootser # yum -y install postfixrootser # yum -y install dovecot修改postfix的配置文件rootser # vim /etc/postfix/main.cf#myhostname = host.domain.tld 更改为: myhostname = (指定运行Postfix邮件系统的主机名称) #mydomain = domain.tld 更改为: mydomain = (指定Postfix邮件系统使用的域名) #myorigin = $mydomain 更改为: myorigin = (指定发件人所在的域名) #inet_interfaces = all 更改为: Inet_interfaces =all (指定Postfix邮件系统监视的网络接口) #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain 更改为: mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain(指定Postfix接收邮件时收件人的域名) #mynetworks = host 更改为: mynetworks = host (指定您所在的网络地址20)重启postfix 服务rootser # service postfix restartShutting down postfix: OK Starting postfix: OK rootser # chkconfig postfix on rootser # chkconfig dovecot on 修改dovecot的配置文件vim /etc/dovecot.confprotocols = imap imaps pop3 pop3slisten = *在iptables里开放,110,143端口rootser # vim /etc/sysconfig/iptables-A RH-Firewall-1-INPUT -m state -state NEW -m tcp -p tcp -dport 110 -j ACCEPT-A RH-Firewall-1-INPUT -m state -state NEW -m tcp -p tcp -dport 25 -j ACCEPT-A RH-Firewall-1-INPUT -m state -state NEW -m tcp -p tcp -dport 143 -j ACCEPT重启iptablesrootser # service iptables restartFlushing firewall rules: OK Setting chains to policy ACCEPT: filter OK Unloading iptables modules: OK Applying iptables firewall rules: OK Loading additional iptables modules: ip_conntrack_netbios_n OK ntrack_ftp 测试服务是否正常启动。netstat ntlp |grep 25 检查smtp是否正常启动 - postfixnetstat ntlp |grep 110 检查pop3是否正常启动 - dovecot三、安装openwebmail.1、yum -y install perl、2、到/openwebmail/download/处下载如下文件包:openwebmail-2.53.tar.gz1 CGI.pm-3.05.tar.gz 2 Text-Iconv-1.2.tar.gz3 Digest-1.08.tar.gz 4 libiconv-1.9.1.tar.gz (非必须) 5 libnet-1.19.tar.gz6 Digest-MD5-2.33.tar.gz7 MIME-Base64-3.01.tar.gz分别对于他们进行编译安装:rootlinux CGI.pm-3.05# perl Makefile.PLChecking if your kit is complete.Looks goodWriting Makefile for CGIrootlinux CGI.pm-3.05# make; make installWriting /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/CGI/.packlistAppending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.podrootlinux openwebmail# tar zvxf libnet-1.19.tar.gzrootlinux openwebmail# cd libnet-1.19rootlinux libnet-1.19# perl Makefile.PLChecking for Socket.okChecking for IO:Socket.okChecking if your kit is complete.Looks goodAh, I see you already have installed libnet before.Do you want to modify/update your configuration (y|n) ? no no这里提示要不要对原有网络配置进行更新修改,我们选择noThis script will prompt you to enter hostnames that can be used asdefaults for some of the modules in the libnet distribution.To ensure that you do not enter an invalid hostname, I can perform alookup on each hostname you enter. If your internet connection is viaa dialup line then you may not want me to perform these lookups, asit will require you to be on-line.Do you want me to perform hostname lookups (y|n) ? yesThe following questions all require a list of host names, separatedwith spaces. If you do not have a host available for any of theservices, then enter a single space, followed by . To accept thedefault, hitEnter a list of available NNTP hosts : Enter a list of available SMTP hosts : Enter a list of available POP3 hosts : Enter a list of available SNPP hosts : Enter a list of available PH Hosts : Enter a list of available TIME Hosts : Enter a list of available DAYTIME Hosts : Do you have a firewall/ftp proxy between your machine and the internetIf you use a SOCKS firewall answer no(y|n) ? noNormally when FTP needs a data connection the client tells the servera port to connect to, and the server initiates a connection to the client.Some setups, in particular firewall setups, can/do not work using thisprotocol. In these situations the client must make the connection to theserver, this is called a passive transfer.Should all FTP connections be passive (y|n) ? yesWhat is your local internet domain name : If you specified some default hosts above, it is possible for me todo some basic tests when you run make testThis will cause make test to be quite a bit slower and, if yourinternet connection is via dialup, will require you to be on-lineunless the hosts are local.Do you want me to run these tests (y|n) ? yesTo allow Net:FTP to be tested I will need a hostname. This hostshould allow anonymous access and have a /pub directoryWhat host can I use : Writing libnet.cfgWriting Makefile for Netmake install:同样提示(目前看来是perl编译器有些问题,但不知道会不会对他有影响)Writing /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/Net/.packlistAppending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod同上安装Digest-MD5-2.33正常同上安装MIME-Base64-3.01正常同上安装Text-Iconv-1.2正常同上安装Digest-1.08正常安装:libiconv-1.9.1时,解压缩后进入libiconv-1.9.1目录,里面没有Makefile.PL文件。这时运行./configure进行编译检测。然后在make;make install。第三步:以上编译安装完成后开始安装openwebmail主文件包。首先我们将openwebmail-2.53.tar.gz复制到/usr/local/www/中进行解压缩。rootlinux www# tar -zvxBpf openwebmail-2.53.tar.gz后生成了cgi-bin 和data文件夹修改 /var/www/cgi-bin/openwebmail/etc/openwebmail.conf 文件: domainnames auto 更改为: domainnames (更改为自己定义的域名) default_language en 更改为: default_language zh_CN.GB2312 (更改为简体中文版介面) default_iconset Cool3D.Englist 更改为: default_iconset Cool3D.Chinese.Simplified (更改为中文3D按键)11、修改/var/www/cgi-bin/openwebmail/etc/defaults/openwebmail.conf文件: smtpserver 更改为: smtpserver 20 (更改smtp服务器的地址) authpop3_server localhost 更改为: authpop3_server 20 (更改pop3服务器的地址) 12、修改/var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf文件: dbmopen_ext none 更改为: dbmopen_ext .db dbmopen_haslock no 更改为: dbmopen_haslock yes smtpserver (添加smtp服务器的地址) 13、继续运行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.安装好3个软件后把Postfix+Dovecot+Openwebmail 三者个格式统一下就行了1.postfix 配置 main.cfmail_spool_directory = /var/spool/mail2.Dovecot 配置 Dove

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论