CentOS 7.2 启动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的过程:中发现具体的问题是:parameter inet_interfaces: no local interface found for ::1
[root@ ~]# systemctl status postfix.service
● postfix.service - Postfix Mail Transport AgentLoaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)Active: failed (Result: exit-code) since 二 2017-04-18 09:34:09 CST; 1min 8s agoProcess: 7683 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)Process: 7680 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)Process: 7677 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75)4月 18 09:34:07 iz2ze3xidelaqr3x4lx0lpz systemd[1]: Starting Postfix Mail Transport Agent...
4月 18 09:34:07 iz2ze3xidelaqr3x4lx0lpz aliasesdb[7677]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
4月 18 09:34:08 iz2ze3xidelaqr3x4lx0lpz aliasesdb[7677]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
4月 18 09:34:08 iz2ze3xidelaqr3x4lx0lpz postfix[7683]: fatal: parameter inet_interfaces: no local interface found for ::1
4月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: postfix.service: control process exited, code=exited status=1
4月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: Failed to start Postfix Mail Transport Agent.
4月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: Unit postfix.service entered failed state.
4月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: postfix.service failed.
解决方法:
修改 /etc/postfix/main.cf的设置inet_protocols = ipv4
inet_interfaces = all
参考: https://forums.opensuse.org/showthread.php/436441-Postfix-error-message
参考: https://forums.opensuse.org/showthread.php/436441-Postfix-error-message