I'm having a problem with Postfix (on Centos 6.5) whereby I have to set myhostname explicitly in main.cf, otherwise local mail is relayed through the relay host.
According to the Postfix main.cf: "The default is to use the fully-qualified domain name from gethostname()."
My /etc/hosts file is:
127.0.0.1 localhost 10.0.0.3 server123.company.org server123
hostname and hostname -f return correctly.
How can I troubleshoot why this isn't working?