postfix 报错 See “systemctl status postfix.service” and “journalctl -xe”

Linux 中安装邮件服务器:Postifx

yum -y install postfix

开启并启动

enable postfix && 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.

查看它的状态

systemctl status postfix.service

postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2020-02-25 21:22:26 CST; 24s ago
  Process: 1732 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
  Process: 1729 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 1725 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75)

Feb 25 21:22:24 iZwz94m5o5nyhszcx7k9kzZ systemd[1]: Starting Postfix Mail Transport Agent...
Feb 25 21:22:24 iZwz94m5o5nyhszcx7k9kzZ aliasesdb[1725]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
Feb 25 21:22:25 iZwz94m5o5nyhszcx7k9kzZ aliasesdb[1725]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
Feb 25 21:22:25 iZwz94m5o5nyhszcx7k9kzZ postfix[1732]: fatal: parameter inet_interfaces: no local interface found for ::1
Feb 25 21:22:26 iZwz94m5o5nyhszcx7k9kzZ systemd[1]: postfix.service: control process exited, code=exited status=1
Feb 25 21:22:26 iZwz94m5o5nyhszcx7k9kzZ systemd[1]: Failed to start Postfix Mail Transport Agent.
Feb 25 21:22:26 iZwz94m5o5nyhszcx7k9kzZ systemd[1]: Unit postfix.service entered failed state.
Feb 25 21:22:26 iZwz94m5o5nyhszcx7k9kzZ systemd[1]: postfix.service failed.

我们关注这个就可以了

fatal: parameter inet_interfaces: no local interface found for ::1

解决方法:

vim /etc/postfix/main.cf

#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = all

# Enable IPv4, and IPv6 if supported
inet_protocols = all

人已赞赏
数据库开发运维笔记

Docker 安装 Mysql Redis 等镜像

2019-8-15 13:53:31

技术笔记运维笔记

SVN 项目迁址至 Gitlab 完整步骤

2020-2-29 14:33:59

2 条回复 A文章作者 M管理员
  1. 你折腾邮件服务器干嘛?

    • gitlab 环境需要;将公司的项目迁到云上面去

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
有新消息 消息中心
搜索