I'm configuring postfix on CentOS. When I set
inet_interfaces = all
mail recieving works. But when I change it to
inet_interfaces = $myhostname, localhost
mail is not recieved. What's wrong here?
It needs to resolve to the IP address that you need to listen on the internet with. i.e. most likely the primary IP of the machine as shown by
if you do a
You may have multiple interfaces defined and myhostname is not the right interface to listen on.
What is the value of $myhostname? It might not contain a valid value.
Have a look at this page.