RHEL7.2怎么配置postfix空客户端

这篇文章主要介绍“RHEL7.2怎么配置postfix空客户端”,在日常操作中,相信很多人在RHEL7.2怎么配置postfix空客户端问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”RHEL7.2怎么配置postfix空客户端”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

1、 安装 Postfix:

# yum update && yum install postfix

2、 启动服务并启用开机自动启动:

# systemctl start postfix
# systemctl enable postfix

[root@testserver ~]# postconf -e inet_interfaces=loopback-only
[root@testserver ~]# postconf -e mynetworks="127.0.0.0/8"
[root@testserver ~]# postconf -e myorigin=ldap.example.com
[root@testserver ~]# postconf -e "mydestination="
[root@testserver ~]# postconf -e "local_transport=error: local delivery disabled"

[root@testserver ~]# systemctl restart postfix.service
[root@testserver ~]# firewall-cmd --permanent --add-service=smtp
[root@testserver ~]# firewall-cmd --reload

到此,关于“RHEL7.2怎么配置postfix空客户端”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!