首页 » Linux » centos 7 postfix启动报错

centos 7 postfix启动报错

 

 

└─[0] <> systemctl status postfix.service 
● postfix.service - Postfix Mail Transport Agent
 Loaded: loaded (/usr/lib/systemd/system/postfix.service; disabled; vendor preset: disabled)
 Active: failed (Result: exit-code) since Wed 2016-08-24 23:08:55 CST; 11min ago
 Process: 11496 ExecStop=/usr/sbin/postfix stop (code=exited, status=1/FAILURE)
 Process: 11519 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
 Process: 11516 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
 Process: 11511 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75)
 Main PID: 11248 (code=killed, signal=TERM)

Aug 24 23:08:53 iZ94hfh9ssuZ systemd[1]: Starting Postfix Mail Transport Agent...
Aug 24 23:08:53 iZ94hfh9ssuZ aliasesdb[11511]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
Aug 24 23:08:54 iZ94hfh9ssuZ aliasesdb[11511]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
Aug 24 23:08:54 iZ94hfh9ssuZ postfix[11519]: fatal: parameter inet_interfaces: no local interface found for ::1
Aug 24 23:08:55 iZ94hfh9ssuZ systemd[1]: postfix.service: control process exited, code=exited status=1
Aug 24 23:08:55 iZ94hfh9ssuZ systemd[1]: Failed to start Postfix Mail Transport Agent.
Aug 24 23:08:55 iZ94hfh9ssuZ systemd[1]: Unit postfix.service entered failed state.
Aug 24 23:08:55 iZ94hfh9ssuZ systemd[1]: postfix.service failed.

解决方法:

vi /etc/postfix/main.cf然后更改

把inet_interfaces = localhost改为

inet_interfaces = all就可以了。或者把/etc/hosts下的ipv6那栏注释掉。

 

 

 

 

原文链接:centos 7 postfix启动报错,转载请注明来源!

0