欢迎来到天天文库
浏览记录
ID:55631720
大小:277.50 KB
页数:49页
时间:2020-05-21
《linux下sendmail的安装与配置.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1.要求利用Linux系统下的Mail服务,能够收发邮件;2.突出邮件服务器的特点,能够用OutLook收发邮件;一.配置DNS1.使用vi/etc/named.conf打开DNS主配文件,然后找到最后一行,并在最后一行上面添加下列内容:zone"yzl.com"IN{typemaster;file"yzl.com.zheng";allow-update{none;};};zone"1.254.10.in-addr.arpa"IN{typemaster;file"10.254.1.fan";allow-update{none;};};2.进入/var/named目录,
2、将该目录下的localhost.zone和named.local分别拷贝为yzl.com.zheng和10.254.1.fan,如下:[root@localhostroot]#cd/var/named/[root@localhostnamed]#lslocalhost.zonenamed.canamed.local[root@localhostnamed]#cplocalhost.zoneyzl.com.zheng[root@localhostnamed]#cpnamed.local10.254.1.fan[root@localhostnamed]#ls10.254.
3、1.fanlocalhost.zonenamed.canamed.localyzl.com.zheng然后编辑yzl.com.zheng和10.254.1.fan两个文件,将这两个文件分别改为如下内容:两文件中yzl.com后面的点(.)不可少[root@localhostnamed]#viyzl.com.zheng$TTL86400@1DINSOAyzl.com.root.yzl.com.(42;serial(d.adams)3H;refresh15M;retry1W;expiry1D);minimum1DINNSns.yzl.com.1DINMX5mail.yzl
4、.com.ns1DINA10.254.1.253mail1DINA10.254.1.253[root@localhostnamed]#vi10.254.1.fan$TTL86400@INSOAyzl.com.root.yzl.com.(;Serial28800;Refresh14400;Retry;Expire86400);MinimumINNSns.yzl.com.253INPTRns.yzl.com.253INPTRmail.yzl.com.3.将/etc/resolv.conf文件中DNS设为本机IP[root@localhostnamed]#vi/etc/re
5、solv.confnameserver10.254.1.253searchlocalhost4.测试DNS,如下图,说明成功。二.配置sendmail1.配置主配文件[root@localhostnamed]#vi/etc/mail/sendmail.cf将#SMTPdaemonoptionsODaemonPortOptions=Port=smtp,Addr=127.0.0.1,Name=MTA改为:#SMTPdaemonoptionsODaemonPortOptions=Port=smtp,Addr=10.254.1.253,Name=MTA[root@soft8n
6、amed]#vi/etc/xinetd.d/ipop3servicepop3{socket_type=streamwait=nouser=rootserver=/usr/sbin/ipop3dlog_on_success+=HOSTDURATIONlog_on_failure+=HOSTdisable=no将这里的yes改为no}[root@soft8named]#vi/etc/xinetd.d/imapserviceimap{socket_type=streamwait=nouser=rootserver=/usr/sbin/imapdlog_on_success+
7、=HOSTDURATIONlog_on_failure+=HOSTdisable=no将这里的yes改为no}[root@soft8named]#servicexinetdrestart[root@localhostmail]#sendmail-btADDRESSTESTMODE(ruleset3NOTautomaticallyinvoked)Enter>$=wlocalhost.localdomainlocalhost[127.0.0.1]>[root@soft8named]#vi/etc/mail/local-
此文档下载收益归作者所有