<>desktop0主机配置

* 步骤一:安装postfix [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
* 99行域后缀补全

* 116行允许所有邮箱

* 164行服务器

* 步骤三:重启服务 [root@desktop0 postfix]# systemctl restart postfix [root@desktop0
postfix]# systemctl enable postfix
<>server0主机操作(做为空邮箱服务器)

* 步骤一:安装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
* 99行域后缀补全

* 116行只允许本机

* 164行值为空,不允许其它服务器接收邮箱

* 317允许接收邮箱的IP
* 可以先通过命令解析IP [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"

友情链接
ioDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信