Make Postfix use IPv4 only (no local interface found for ::1)
Make Postfix use IPv4 only (fixing: no local interface found for ::1)
A while back, I wrote a post on adding E-Mail notifications to FreePBX.
I recently made a call to the USA using my phone system and noticed I didn't receive the usual Outbound Route notification.
To do some diagnostics, I searched the logs for Postfix...
Nov 15 15:19:50 pbx postfix/pickup[12091]: fatal: parameter inet_interfaces: no local interface found for ::1
Nov 15 15:19:51 pbx postfix/master[1673]: warning: process /usr/libexec/postfix/pickup pid 12091 exit status 1
Sure enough, there was the issue.
As this machine operates in an IPv4 only network (yes, yes, I know, it's on the list), there was no local IPv6 interface.
I would have thought Postfix would have failed a little more gracefully and defaulted to IPv4.
To resolve this issue...
- Use your text editor of choice to open
/etc/postfix/main.cf
. - Locate the line with
inet_protocols = all
. - Change
all
toipv4
. - Save and quit.
service postfix restart
- Test again.
- Pour yourself a hot / cold one.