Bug#833296: exim4-config: dpkg-reconfigure exim4-config: misleading message

Mauro Salvini mauro.salvini at smigroup.net
Wed Aug 3 08:26:57 UTC 2016


Hi Marc,

> > > If uname() returns a single-component name, Exim calls gethostbyname()
> > > (or getipnodebyname() where available) in an attempt to acquire a
> > > fully qualified host name.
> > > 
> > > Can you check what your gethostbyname/getipnodebyname returns?
> 
> > hostname by uname(): myhostname
> > hostname by gethostbyname(): myhostname.mydomain.local
> 
> Hm.
> 
> What does hostname --fqdn say?

It says myhostname.mydomain.local

> What does exim -bP | grep ^primary_hostname say?

It says myhostname

Checked /var/lib/exim4/config.autogenerated for primary_hostname:

.ifdef MAIN_HARDCODE_PRIMARY_HOSTNAME
primary_hostname = MAIN_HARDCODE_PRIMARY_HOSTNAME
.endif

MAIN_HARDCODE_PRIMARY_HOSTNAME never defined

> > > I guess that there is something not right with your /etc/hosts which
> > > misguides gethostbyname. I have never fully understood what to do with
> > > /etc/hosts if one does not have a static IP address, and since all my
> > > hosts do have static IP addresses, I have neve had a problem like that.
> > > 
> > > For starters, I'd try to add an entry with your full host name for
> > > the IP address your network interface actually has.
> > 
> > I tried with a /etc/hosts like this:
> > 
> > 127.0.0.1 localhost
> > 192.168.0.10 myhostname.mydomain.local myhostname
> > 
> > but behavior is the same.
> 
> and 192.168.0.10 is your local IP address on the network?

No , I obfuscate it, sorry. It actually is 10.0.xx.xx

> Is your "myhostname.mydomain.local" the literal host name? If so, are
> you actually using the .local TLD or is that just obfuscated? Please
> consider using a different TLD as .local may cause interference with
> avahi (the .local TLD is reserved for use with mDNS).

Yes, domain ends with .local (this name comes from IT&C office
configuration).

Just for a try, I changed /etc/hosts and /etc/mailname to have a .net
TLD:
- exim -bP | grep ^primary_hostname says
  myhostname
- exim -bt -d+all username says
  10:13:17  5455 local_part=username domain=myhostname.mydomain.net
  10:13:17  5455 checking domains
  10:13:17  5455 myhostname.mydomain.net in "@:localhost"? no (end of
list)

Thanks again

Greetings
Mauro



More information about the Pkg-exim4-maintainers mailing list