[Bug 180551] Re: Postfix myhostname defaults to uname() not gethostname().
Robie Basak
180551 at bugs.launchpad.net
Tue Apr 21 12:31:43 UTC 2015
So...
gethostname(2) is supposed to return an unqualified name (on Debian and
Ubuntu at least).
The Postfix docs say that "The default is to use the fully-qualified
domain name from gethostname()." but gethostname() on Debian and Ubuntu
will never return a fully-qualified name.
hostname -f returns the result of getaddrinfo(2) on gethostname(2), as
defined in hostname(1).
Postfix, when $mydomain is not set and when the result of gethostname(2)
is unqualified, appends ".localdomain", when you instead expect it to
use what "hostname -f" returns and thus to use the result of
getaddrinfo(2) on gethostname(2).
Sounds like a question for upstream to resolve to me. Can someone check
this issue is still current upstream and check for and/or file a bug
upstream as appropriate, please?
** Tags added: needs-upstream-report
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to postfix in Ubuntu.
https://bugs.launchpad.net/bugs/180551
Title:
Postfix myhostname defaults to uname() not gethostname().
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/180551/+subscriptions
More information about the Ubuntu-server-bugs
mailing list