On Thu, Jun 03, 2010 at 07:44:58PM +0200, Moe wrote: > I was the guy complaining on IRC, so I'd like to jump in and clarify: > > * The bug is still present in 2.7.0, which is not 8 years old
There is no bug. Postfix is working *exactly* as designed. And the design has been given much thought. > The problem boils down to postfix expecting 'gethostname()' to return > a FQDN. This not the case on a properly configured linux host, > regardless of the distribution (this is not debian specific). No, Postfix does not expect this. Rather Postfix defaults the mydomain setting from gethostname() if possible, but otherwise uses "localdomain". > If postfix goes to guess the FQDN when it isn't hardcoded in > main.cf then it could just as well do it right, no? Postfix does the right thing. > The right way, as explained by Mike Paul in that ticket, would be to > call gethostbyname() on the return value of gethostname() and then split > the result of *that* into hostname and domainname. No, that would in fact be wrong, for reasons long ago considered and settled. -- Viktor.