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.,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com

📖摘要


今天分享下 —— 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.

🎉最后

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

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/97464.html

(0)
小半的头像小半

相关推荐

极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!