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
技术笔记

telnet 远程连接 memcached 无法连接主机

2020-2-21 22:00:58

技术笔记

SVN 项目迁址至 Gitlab 完整步骤

2020-3-13 16:57:51

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索