Linux下Mail服务器应用之Sendmail邮件系统的一个案例(2)

[root@mail ~]# cd /mnt/cdrom/Server/

[root@mail Server]# rpm -ivh bind-9.3.4-10.P1.el5.i386.rpm

[root@mail Server]# rpm -ivh bind-chroot-9.3.4-10.P1.el5.i386.rpm

[root@....Server]# rpm -ivh caching-nameserver-9.3.4-10.P1.el5.i386.rpm

[root@mail Server]# cd /var/named/chroot/etc/

[root@mail etc]# ll

[root@mail etc]# cp -p named.caching-nameserver.conf named.conf

[root@mail etc]# vim named.conf

15         listen-on port 53 { any; };

27         allow-query     { any; };

36         match-clients      { any; };

37         match-destinations { any; };

[root@mail etc]# vim named.rfc1912.zones

增加以下几行:

20 zone "bj.com" IN {

 21         type master;

 22         file "bj.com.db";

 23         allow-update { none; };

 24 };

[root@mail etc]# cd ../var/named/

[root@mail named]# ll

[root@mail named]# cp -p localhost.zone bj.com.db

[root@mail named]# vim bj.com.db

 2 @               IN SOA ns.bj.com.       root (

9 @               IN NS           ns.bj.com.

 10 ns              IN A            10.106.6.254

 11 mail            IN A            10.106.6.254

 12 pop3            IN CNAME        mail

 13 smtp            IN CNAME        mail

 14 @               IN MX 10        mail

Linux下Mail服务器应用之Sendmail邮件系统的一个案例

[root@mail named]# chkconfig named on

[root@mail named]# service named start

Starting named:                                            [ OK ]

③ :客户端测试dns解析,进行简单配置:

Linux下Mail服务器应用之Sendmail邮件系统的一个案例

Linux下Mail服务器应用之Sendmail邮件系统的一个案例

④ :进行配置,并安装接收dovecot服务器:

进行系统配置:

[root@mail named]# vim /etc/resolv.conf

 1 nameserver 10.106.6.254

[root@mail named]# vim /etc/sysconfig/network

 3 HOSTNAME=mail.bj.com

[root@mail named]# vim /etc/hosts

127.0.0.1      mail.bj.com localhost.localdomain localh    ost

[root@mail named]#init 6

[root@mail ~]# yum install -y dovecot

[root@mail ~]# chkconfig dovecot on

[root@mail ~]# service dovecot start

Starting Dovecot Imap:                                     [ OK ] [root@mail ~]# netstat -tupln |grep dovecot

(110,143,993(imaps),995(pop3s))

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/15b0e3a28194937b0e6675c10e0cdc38.html