James Seymour: > On Thu, 01 Dec 2011 13:45:53 -0700 > Philip Prindeville <philipp_s...@redfish-solutions.com> wrote: > > > Sorry about the noob questions, but it's been 12 years or more since > > I stared at Postfix... > > > > First, is there a way to get an out-of-the-box (in my case, Postfix > > 2.6.6 compiled for Centos6/EPEL6) to get $mydomain and $myhostname > > from the canonicalized hostname? > > I thought it did that, by default?
Postfix gets $mydomain and $myhostname from the actual hostname. There is a very large nasty comment in the get_hostname.c source file to discourage idiots who insist on calling network hostname lookup routines from that code. Wietse