[root@desktop0 yum.repos.d]# yum -y install postfix
已加载插件:langpacks
软件包 2:postfix-2.10.1-6.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@desktop0 postfix]# vim /etc/postfix/main.cf
[root@desktop0 postfix]# systemctl restart postfix
[root@desktop0 postfix]# systemctl enable postfix
[root@server0 yum.repos.d]# yum -y install postfix
已加载插件:langpacks
软件包 2:postfix-2.10.1-6.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@server0 postfix]# vim /etc/postfix/main.cf
[root@desktop0 postfix]# nslookup smtp0.example.com
Server: 172.25.254.254
Address: 172.25.254.254#53
smtp0.example.com canonical name = desktop0.example.com.
Name: desktop0.example.com
Address: 172.25.0.10
[root@server0 ~]# echo 123 | mail -s haha -r student student
[root@server0 ~]# mail -u student #server0接收不到邮箱
No mail for student
[root@desktop0 postfix]# mail -u student #desktop0接收到邮箱
Heirloom Mail version 12.5 7/5/10. Type ? for help.
"/var/mail/student": 2 messages 2 new
>N 1 student@desktop0.exa Sun Feb 17 20:19 18/604 "haha"