-
1.搭建邮箱解析服务
我在之前的文章中介绍过如何搭建DNS服务详情参考 因此本篇中就简单介绍。
cp -p named.localhost benet.com.zone
vi benet.benet.com.zone
echo "nameserver 192.168.100.101" > /etc/resolv.conf
启动服务并测试结果
service named start
vi /etc/postfix/main.cf
inet_interfaces = all //监听服务的IP地址//
inet_interfaces = localhost //注释掉这一行
myhostname = mail.benet.com //邮件服务器主机名//
mydomain = benet.com //邮件域名//
myorigin = $mydomain //发件人地址邮件域名//
mydestination = $mydomain, $myhostname //收件人地址邮件域名//
home_mailbox = Maildir/ //邮件存放位置//
vi /etc/hosts
service postfix restart
rpm -ivh /mnt/Packages/dovecot-2.0.9-7.el6.x86_ 64.rpm
vi /etc/dovecot/dovecot.conf
protocols = imap pop3 lmtp //开启协议//
login_trusted_networks = 192.168.100.0/24 //指定服务器所在网段//
!include conf.d/*.conf //默认就有//
mail_location = maildir:~/Maildir
service dovecot start
groupadd mailusers
useradd -g mailusers -s /sbin/nologin apple
passwd apple
useradd -g mailusers -s /sbin/nologin orange
passwd orange
service iptables stop
setenforce 04.2 将客户机DNF设置为服务器地址,然后利用foxmail登录账号。
至此postfix邮件服务就结束了
原文地址:http://blog.51cto.com/13620950/2122534