Liunx7启动postfix报错Job for postfix.service failed because the control process exited with error code.

📖摘要


今天分享下 —— Liunx7启动postfix报错Job for postfix.service failed because the control process exited with error code. See “systemctl status postfix.service” and “journalctl -xe” for details. 的一些基本知识,欢迎关注!


🌂分享

CentOS7.X 启动 postfix

[root@ ~]# 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.

debug 的过程(systemctl status postfix):中发现具体的问题是:parameter inet_interfaces: no local interface found for ::1

[root@izbp1g7wauly0hkrzcv7b4z ~]# systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2020-03-09 18:55:23 CST; 41min ago

Mar 09 18:55:21 izbp1g7wauly0hkrzcv7b4z systemd[1]: Starting Postfix Mail Transport Agent...
Mar 09 18:55:21 izbp1g7wauly0hkrzcv7b4z aliasesdb[9455]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
Mar 09 18:55:22 izbp1g7wauly0hkrzcv7b4z aliasesdb[9455]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
Mar 09 18:55:22 izbp1g7wauly0hkrzcv7b4z postfix[9463]: fatal: parameter inet_interfaces: no local interface found for ::1
Mar 09 18:55:23 izbp1g7wauly0hkrzcv7b4z systemd[1]: postfix.service: control process exited, code=exited status=1
Mar 09 18:55:23 izbp1g7wauly0hkrzcv7b4z systemd[1]: Failed to start Postfix Mail Transport Agent.
Mar 09 18:55:23 izbp1g7wauly0hkrzcv7b4z systemd[1]: Unit postfix.service entered failed state.
Mar 09 18:55:23 izbp1g7wauly0hkrzcv7b4z systemd[1]: postfix.service failed.
解决方法:

修改 /etc/postfix/main.cf 的设置(搜索并修改他们的值)

inet_protocols = ipv4
inet_interfaces = all

完美启动

[root@izbp1g7wauly0hkrzcv7b4z ~]# systemctl start postfix
[root@izbp1g7wauly0hkrzcv7b4z ~]# systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2020-03-09 19:38:55 CST; 2min 32s ago
  Process: 13295 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 13291 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 13288 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 13368 (master)
   CGroup: /system.slice/postfix.service
           ├─13368 /usr/libexec/postfix/master -w
           ├─13369 pickup -l -t unix -u
           └─13370 qmgr -l -t unix -u

Mar 09 19:38:54 izbp1g7wauly0hkrzcv7b4z systemd[1]: Starting Postfix Mail Transport Agent...
Mar 09 19:38:55 izbp1g7wauly0hkrzcv7b4z postfix/master[13368]: daemon started -- version 2.10.1, configuration /etc/postfix
Mar 09 19:38:55 izbp1g7wauly0hkrzcv7b4z systemd[1]: Started Postfix Mail Transport Agent.

🎉最后

  • 更多参考精彩博文请看这里:《陈永佳的博客》

  • 喜欢博主的小伙伴可以加个关注、点个赞哦,持续更新嘿嘿!

  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

陈永佳

你的鼓励将是我创作的最大动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值