环境信息: CentOS7,MySQL5.7
问题: 在 CentOS 7 系统中,开启 postfix 邮件服务,执行命令
[root@hzuwei ~] systemctl start postfix
等待很长时间之后,提示服务启动失败!失败提示信息如下所示:
[root@hzuwei ~] Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.
依据错误提示,执行journalctl -xe命令获得如下信息:
解决方案如下:
- 修改
/etc/postfix/main.cf
文件中的
修改为:inet_interfaces = localhost inet_protocols = all
上述修改可以解决外部ip访问和传输协议的限制。修改后,依旧无法启动 postfix 服务时,执行下面的操作。inet_interfaces = all inet_protocols = all