欢迎来到天天文库
浏览记录
ID:39465416
大小:689.50 KB
页数:14页
时间:2019-07-04
《linuxPostfix邮件服务器安装配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、:Postfix邮件服务器的安装与配置一、先安装配置Apache、DNS1.挂载光盘镜像;Mount/dev/cdrom/mntCd/mnt/Server2.安装Apacherpm-ivhhttpd-2.2.3-43.el5.i386.rpmapr-1.2.7-11.el5_3.1.i386.rpmapr-util-1.2.7-11.el5.i386.rpmpostgresql-libs-8.1.18-2.el5_4.1.i386.rpm查看有否安装:[root@localhostServer]#rpm-qa
2、grephttphttpd-2.2.3-43.el5启动Apache:Servi
3、cehttpdstart3.安装DNS用rpm分别安装以下包:bind-9.3.6-4.P1.el5_4.2.i386.rpmbind-chroot-9.3.6-4.P1.el5_4.2.i386.rpmbind-devel-9.3.6-4.P1.el5_4.2.i386.rpmbind-libbind-devel-9.3.6-4.P1.el5_4.2.i386.rpmbind-libs-9.3.6-4.P1.el5_4.2.i386.rpmbind-sdb-9.3.6-4.P1.el5_4.2.i386.rpmbind-utils-9.3.6-4.P1.el5_4.2.i386.rpmD
4、NS有两个配置文件:主配置文件:/var/named/chroot/etc/named.conf用来设置DNS全局命令的DocumentRoot“/var/www/html”:定义网页文件存放的目录数据库文件:sina.com.zone记录哪个域名IP是多少的。装完后启动DNSServicenamedstart编辑DNS主配置文件(默认是空的)如下:命令:vim/var/named/chroot/etc/named.conf从模版拷贝一个DNS配置文件的zone文件cp/usr/share/doc/bind-9.3.6/sample/var/named/localdomain.zone/v
5、ar/named/chroot/var/named/sina.com.zone编辑sina.com.zone文件:重启DNS服务:servicenamedrestart清空DNS缓存文件:echo“”>/etc/resolv.conf验证DNS解析:hostmail.sina.commail.sina.comhasaddress192.168.18.72一、安装PostfixRedHatEnterpriseLinux提供了sendmail和postfix两种STMP邮件服务软件,安装程序默认安装了sendmail,如果使用postfix,就必须先将sendmail服务停止,然后再安装pos
6、tfix服务,具体步骤如下:1)、检查sendmail服务是否已经开启Netstat–nutlp
7、grep:25[root@localhost~]#netstat-nutlp
8、grep:25tcp00127.0.0.1:250.0.0.0:*LISTEN3783/sendmail:ace2)、关闭sendmail服务及开机时自动启动3)、在RedHatEnterpriseLinux5中,提供了更加方便的E-mail服务器切换方法,它提供了一个图形界面的切换工具system-switch-mail。不过,这个软件在默认情况下并没有安装,所以需要先加载RedHatEnterpriseLinux
9、5安装盘,再切换到光盘上的Server目录下,执行以下命令安装:rpm-ivhsystem-switch-mail-0.5.25-12.noarch.rpmrpm-ivhsystem-switch-mail-gnome-0.5.25-12.noarch.rpm4)、安装postfix服务:将RedHatEnterpriseLinux5的光盘镜像挂载到/mnt下Mount/dev/cdrom/mnt在/mnt/Server目录下找到postfix的RPM安装包文件postfix-2.3.3.2.i386.rpm,然后使用一下命令安装:Rpm–ivhpostfix-2.:3.3.2.i386.
10、rpm或者用yum安装:Mount/dev/cdrom/mntcd/mnt/ServerYuminstallpostfix[root@localhostServer]#rpm-qa
11、greppostfixpostfix-2.3.3-2.1.el5_2postfix邮件服务器已安装成功修改Postfix服务基本配置文件main.cf:vim/etc/postfix/main.cf进入主配置文件分别对以下几行内容修改并取消注
此文档下载收益归作者所有