fatal: parameter inet_interfaces: no local interface found for ::1

Error:  fatal: parameter inet_interfaces: no local interface found for ::1

[root@Centos7 postfix]# systemctl restart postfix
Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.
[root@Centos7 postfix]# 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 2018-01-02 16:50:43 IST; 4s ago
  Process: 12908 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
  Process: 12905 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 12901 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75)

Jan 02 16:50:41 Centos7.windows.local systemd[1]: Starting Postfix Mail Transport Agent...
Jan 02 16:50:41 Centos7.windows.local aliasesdb[12901]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interf...r ::1
Jan 02 16:50:42 Centos7.windows.local aliasesdb[12901]: newaliases: fatal: parameter inet_interfaces: no local interface foun...r ::1
Jan 02 16:50:42 Centos7.windows.local postfix[12908]: fatal: parameter inet_interfaces: no local interface found for ::1
Jan 02 16:50:43 Centos7.windows.local systemd[1]: postfix.service: control process exited, code=exited status=1
Jan 02 16:50:43 Centos7.windows.local systemd[1]: Failed to start Postfix Mail Transport Agent.
Jan 02 16:50:43 Centos7.windows.local systemd[1]: Unit postfix.service entered failed state.
Jan 02 16:50:43 Centos7.windows.local systemd[1]: postfix.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Solution is straightforward:

1. Disable IPv6 in network file.
2. Comment the ipv6 entry in /etc/hosts
#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
3.open /etc/postfix/main.cf
4.comment out inet_interfaces: all
5. add inet_protocol: ipv4

Comments

Popular Posts

Install and configure rsyslog Centralized logging server in CentOS

How to fix postfix/smtp Network is unreachable error

Could not join realm: Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli