postfix no local interface found

When starting postfix it failed with following error

[root@cloud1 etc]# service postfix start
Redirecting to /bin/systemctl start postfix.service
Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.
[root@cloud1 etc]# service postfix status
Redirecting to /bin/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 Mon 2017-12-04 09:13:07 UTC; 4s ago
  Process: 21324 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
  Process: 21322 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 21319 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75)

Dec 04 09:13:05 cloud1.serverok.in systemd[1]: Starting Postfix Mail Transport Agent...
Dec 04 09:13:05 cloud1.serverok.in aliasesdb[21319]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
Dec 04 09:13:06 cloud1.serverok.in aliasesdb[21319]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
Dec 04 09:13:06 cloud1.serverok.in postfix[21324]: fatal: parameter inet_interfaces: no local interface found for ::1
Dec 04 09:13:07 cloud1.serverok.in systemd[1]: postfix.service: control process exited, code=exited status=1
Dec 04 09:13:07 cloud1.serverok.in systemd[1]: Failed to start Postfix Mail Transport Agent.
Dec 04 09:13:07 cloud1.serverok.in systemd[1]: Unit postfix.service entered failed state.
Dec 04 09:13:07 cloud1.serverok.in systemd[1]: postfix.service failed.
[root@cloud1 etc]#

To fix, edit /etc/postfix/main.cf

Find

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

Replace with

inet_interfaces = all

See postfix

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *