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

Issue

  • You are note able to restart / start postfix and getting the below error.

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

Solution

    • Edit the file /etc/postfix/main.cf
      vim /etc/postfix/main.cf
    • search for the line inet_interfaces = all
    • And change it to:
      inet_interfaces = 127.0.0.1, 10.10.11.12 10.10.11.12 is your local IP address
    • :wq! Save and exit
  • restart postfix.
    service postfix restart
  • Updates:
      • If you dont want to use IPv6 on the server, you can simply comment the below line from /etc/hosts
        ::1 

Please Comment and share if this post was able to fix your issue 🙂

0 0 votes
Article Rating
Subscribe
Notify of
guest
13 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Igor Belyaev
Igor Belyaev
5 years ago

Thank you very mach! It’s help me to quickly resolve this problem.
But I made next changes:
….
inet_interfaces = localhost
inet_protocols = ipv4

farhan
farhan
4 years ago
Reply to  Igor Belyaev

Thanks Working

Mike
Mike
4 years ago

all weel said, but email is looking for local host, it could be that localhost is not defined in the local host then it goes to dns looking for the local host , and if localhost is defined to IP then you will get this error.

Bruno Tartaro
4 years ago

Solved that issue on sendmail simply removing ::1 from /etc/hosts (recommended only when you don’t use IPv6)

stephan frank
stephan frank
4 years ago

Hallo Jobin,
i’ve done what Bruno said. Removing the ::1 from /etc/hosts and postfix is working fine. With the command systemctl status postfix you’ll see, that postfix don’t want this entry in /etc/hosts if you aren’t using IPv6.

Greetings from Germany
ruebenmaster

breddy
breddy
4 years ago

Thanks. It helped.

sravan
sravan
4 years ago

Its worked by removing ::1 in /etc/hosts entry
Thanks a ton

Simon Brown
Simon Brown
4 years ago

Worked perfectly Thank you

David V
David V
3 years ago

This solved my issue, thank you. Should be higher on google searches 🙂

Kaio Gomesq
Kaio Gomesq
3 years ago

Show! Obrigado man!!!

Django Developer
Django Developer
2 years ago

Thanks, it worked

13
0
Would love your thoughts, please comment.x
()
x
Scroll to Top