实验步骤:一、DNS服务器的配置1、IP的设置#service networkrestart2、安装DNS,过程省略3、主配置文件的配置#vi /var/named/chroot/etc/named.conf4、正向区域文件的配置#cd /var/named/
一、DNS服务器的配置
1、IP的设置
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032025035-0.jpg)
2、安装DNS,过程省略
3、主配置文件的配置
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/203202ES-1.jpg)
4、正向区域文件的配置
#cd
#cp
#vi
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/20320263L-2.jpg)
5、反向区域文件的配置
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032022509-3.jpg)
6、配置本地DNS文件
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/203202A28-4.jpg)
7、启动服务
8、验证
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032021954-5.jpg)
二 、Sendmail服务器的配置
1、IP的设置
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/203202I94-6.jpg)
2、配置本地DNS文件
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032023438-7.jpg)
3、验证是否能够解析
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/20320253H-8.jpg)
4、查看是否安装了sendmail包
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032023548-9.jpg)
默认已安装了两个
5、安装
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/203202B28-10.jpg)
#rpm
#ll
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032024U7-11.jpg)
#rpm
6、配置
1)为用户指定服务器域名
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032024333-12.jpg)
2)设置对邮件的操作
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032024122-13.jpg)
导入数据库
3)配置主配置文件的可编辑文件,开启SMTP认证
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032023605-14.jpg)
启动认证服务
生成sendmail.cf文件
4)建立普通用户
5)启动sendmail服务
三、邮局配置
1、查看是否安装dovecot
2、默认未安装,安装dovecot
![[转载]Linux搭建sendmail服务器 [转载]Linux搭建sendmail服务器](https://www.chinastor.cn/uploads/allimg/140713/2032022X2-15.jpg)
3、配置主配置文件

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。