centos7无法启动postfix

yum安装postfix
yum -y install postfix
保错信息如下:
(cmdb) [root@node1 ~]# systemctl start postfix
Job for postfix.service failed because the control process exited with error code. See “systemctl status postfix.service” and “journalctl -xe” for details.
(cmdb) [root@node1 ~]# journalctl -xe
Jan 21 16:30:01 node1.cn systemd[1]: Starting Session 764 of user root.
– Subject: Unit session-764.scope has begun start-up
– Defined-By: systemd
– Support:  http://lists.freedesktop.org/mailman/listinfo/systemd-devel

▽ Unit session-764.scope has begun starting up.
Jan 21 16:30:01 node1.cn CROND[5943]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jan 21 16:30:21 node1.cn polkitd[450]: Registered Authentication Agent for unix-process:5950:36693241 (system bus name :1.1600 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org
Jan 21 16:30:21 node1.cn systemd[1]: Reloading.
Jan 21 16:30:21 node1.cn systemd[1]: Configuration file /usr/lib/systemd/system/eni.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs witho
Jan 21 16:30:21 node1.cn polkitd[450]: Unregistered Authentication Agent for unix-process:5950:36693241 (system bus name :1.1600, object path /org/freedesktop/PolicyKit1/AuthenticationAgent,
Jan 21 16:30:28 node1.cn polkitd[450]: Registered Authentication Agent for unix-process:5967:36693923 (system bus name :1.1601 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org
Jan 21 16:30:28 node1.cn systemd[1]: Starting Postfix Mail Transport Agent…
– Subject: Unit postfix.service has begun start-up
– Defined-By: systemd
– Support:  http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit postfix.service has begun starting up.
Jan 21 16:30:28 node1.cn aliasesdb[5973]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
Jan 21 16:30:29 node1.cn postfix/sendmail[5975]: fatal: parameter inet_interfaces: no local interface found for ::1
Jan 21 16:30:29 node1.cn aliasesdb[5973]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
Jan 21 16:30:29 node1.cn postfix[5978]: fatal: parameter inet_interfaces: no local interface found for ::1
Jan 21 16:30:30 node1.cn systemd[1]: postfix.service: control process exited, code=exited status=1
Jan 21 16:30:30 node1.cn systemd[1]: Failed to start Postfix Mail Transport Agent.
– Subject: Unit postfix.service has failed
– Defined-By: systemd
– Support:  http://lists.freedesktop.org/mailman/listinfo/systemd-devel

解决方法:
修改 /etc/postfix/main.cf的设置
inet_protocols = ipv4
inet_interfaces = all
重新启动postfix即可
systemctl start postfix.service
-----------------------------------
centos7无法启动postfix服务
https://blog.51cto.com/maoxiaoxiong/2345095

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值