4-21 20,919 views
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 Fri 2017-04-21 21:32:59 CST; 5s ago
Process: 8785 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
Process: 8783 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
Process: 8780 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75)
Apr 21 21:32:57 iZd2ibnn6ajh9jZ systemd[1]: Starting Postfix Mail Transport Agent...
Apr 21 21:32:57 iZd2ibnn6ajh9jZ aliasesdb[8780]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
Apr 21 21:32:58 iZd2ibnn6ajh9jZ aliasesdb[8780]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
Apr 21 21:32:58 iZd2ibnn6ajh9jZ postfix[8785]: fatal: parameter inet_interfaces: no local interface found for ::1
Apr 21 21:32:59 iZd2ibnn6ajh9jZ systemd[1]: postfix.service: control process exited, code=exited status=1
Apr 21 21:32:59 iZd2ibnn6ajh9jZ systemd[1]: Failed to start Postfix Mail Transport Agent.
Apr 21 21:32:59 iZd2ibnn6ajh9jZ systemd[1]: Unit postfix.service entered failed state.
Apr 21 21:32:59 iZd2ibnn6ajh9jZ systemd[1]: postfix.service failed.
解决方法:
修改 /etc/postfix/main.cf的设置
inet_protocols = ipv4
inet_interfaces = all