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
- Edit the file /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
- search for the line
- 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Â
- If you dont want to use IPv6 on the server, you can simply comment the below line from /etc/hosts
-
Please Comment and share if this post was able to fix your issue 🙂
Thank you very mach! It’s help me to quickly resolve this problem.
But I made next changes:
….
inet_interfaces = localhost
inet_protocols = ipv4
…
It looks like you just want to use postfix from localhost only. Thanks a lot Igor for sharing your workaround as comment.
Thanks Working
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.
well… that also could be a reason in some scenarios.
But if you are getting the error as in the title, ie ::1 means loopback IP in IPv6, and this could be the resolution for most of the users.
Solved that issue on sendmail simply removing ::1 from /etc/hosts (recommended only when you don’t use IPv6)
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
Thanks. It helped.
Its worked by removing ::1 in /etc/hosts entry
Thanks a ton
Worked perfectly Thank you
This solved my issue, thank you. Should be higher on google searches 🙂
Show! Obrigado man!!!
Thanks, it worked