步骤
实现此案例需要按照如下步骤进行。
步骤一:安装 postfix 软件包
[root@mail ~]# yum -y install postfix
.. ..
[root@mail ~]# rpm -q postfix
postfix-2.6.6-2.2.el6_1.x86_64
步骤二:简化、调整主配置文件,启动 postfix 服务
1)简化main.cf配置文件
[root@mail ~]# cd /etc/postfix/
[root@svr5 postfix]# postconf -n > tmp.txt
[root@svr5 postfix]# mv main.cf main.cf.origin
[root@svr5 postfix]# mv tmp.txt main.cf
2)修改main.cf配置,以满足tedu.cn邮件域要求
[root@mail ~]# vim /etc/postfix/main.cf
.. ..
#inet_interfaces = localhost //注释掉此行
myhostname = mail.tedu.cn
mydomain = tedu.cn //邮件域
myorigin = $mydomain //显示的发件域
mydestination = $mydomain, $myhostname //本地投递域
home_mailbox = Maildir/ //邮箱类型
.. ..
3)启动postfi