Okay, I remember getting caught like this before. I thought the -d was for 'display' when it means 'defaults' I thought I was listing the current settings. I quickly read the man page, saw the word 'Print' and thought "BINGO!!! That's my parameter"
> 07.04.2014 16:34, Timothy D. Legg: > >> On my system, lets say the /etc/hostname is assigned to be 'example'. >> This is not a FQDN, which would require $myhostname to be set as >> something >> more exact. In my main.cf, I have a line: >> >> myhostname = example.com >> >> but when I run postconf -d myhostname, I get an output that I didn't >> expect: >> >> myhostname = example.localdomain >> >> >> My question is where did the word localdomain come from and what exactly >> does it mean? On this machine, the domain name it hosts (example.com) >> happens to also be the machine hostname (example) in this case. Because >> of this, I'm not sure with 'example' is being returned by postconf. >> >> Anybody willing to help clarify this for me? > > From man 5 postconf: > > | mydomain (default: see postconf -d output) > | The internet domain name of this mail system. The default is > | to use $myhostname minus the first component, or "localdomain" > | (Postfix 2.3 and later). > > together with > > | myhostname (default: see postconf -d output) > | The internet hostname of this mail system. The default is to > | use the fully-qualified domain name (FQDN) from gethostname(), > | or to use the non-FQDN result from gethostname() and append > | ".$mydomain". > > seems to explain the default value of $myhostname in your case quite well. > > -- > Regards > mks > > > >