Bug#301559: Re: exim4-config: does not properly root localhost.localdomain (standard debian alias)

Marc Haber Marc Haber <mh+debian-packages@zugschlus.de>, 301559@bugs.debian.org
Wed, 30 Mar 2005 00:49:49 +0200


On Sun, Mar 27, 2005 at 03:46:43AM +0200, Alban browaeys wrote:
> > On Sat, Mar 26, 2005 at 08:48:51PM +0100, browaeys.alban@wanadoo.fr wrote:
> > > In debian localhost.localdomain is always defined as another
> > > localhost alias. So much that nagios use it by default. 
> > 
> > That would be a bug in the nagios package. Please file it.
> > 
> > > 17:04:49 1DFDmL-0000Qu-Tk <= nagios@argos.server.maison U=nagios P=local S=486
> > > 17:04:49 1DFDmL-0000R0-V2 <= nagios@argos.server.maison U=nagios P=local S=537
> > > 17:04:50 1DFDmL-0000Qu-Tk => pagenagios-admin@localhost.localdomain R=smarthost T=remote_smtp_smarthost H=smtp.wanadoo.fr [193.252.22.72]
> > > 17:04:50 1DFDmL-0000Qu-Tk Completed
> > > 17:04:50 1DFDmL-0000R0-V2 => nagios-admin@localhost.localdomain R=smarthost T=remote_smtp_smarthost H=smtp.wanadoo.fr
> > > [193.252.22.74]
> 
> > I cannot reproduce this, on my test system (configured identically to
> > yours), the message is rejected as "unrouteable":
> 
> > [7/7]mh@lefler[chroot sid]:~$ /usr/sbin/exim4 -bt foo@localhost.localdomain
> > R: system_aliases for foo@localhost.localdomain
> > foo@localhost.localdomain is undeliverable
> > [8/8]mh@lefler[chroot sid]:~$
> > 
> > Can you please give the output of exim -bt
> > nagios-admin@localhost.localdomain on your system, and preferably also
> > exim -d -bt nagios-admin@localhost.localdomain? Please verify that no
> > private data is included in the debug output.
> 
> well i found out why it was unreproducible ... i had added
> localhost.localdomain to exim config domains in between :)

exim config domains?

> And sorry for this flood ... everything looks pretty standard to me, 
> (bind9, hosts, exim4 the trinity)
> 
> To resume what follows. 
> If localhost.localdomain is set in exim : unroutable , else (default
> setup it seems) it is routed to my fai.

If localhost.localdomain is set _where_ in exim? And what is a fai?

> so now i have that removed from previous reportbug configuration info:
> dc_other_hostnames='localhost.localdomain'
> 
> 
> with it i had unroutable too for nagios-admin (but works for a valid
> user ... seems like i will have another bug to report today ... missing
> alias) :
> 
> a/ locahost.localdomain in exim conf and not in  /etc/hosts (127.0.0.1
> only bound to localhost):

Sorry, I do not understand at all what you mean. Can you please
re-word? Maybe shell is the universal language. Just give a typescript
of what you do, cat the relevant config files, to give me a chance to
reproduce the error.

(two examples of exim correctly saying "unrouteable" snipped)

> c/ locahost.localdomain not in exim conf and not in  /etc/hosts
> (127.0.0.1 only bound to localhost):
> --------------------------------------------------------------------
> /usr/sbin/exim4 -d  -bt nagios-admin@localhost.localdomain
> Exim version 4.50 uid=0 gid=0 pid=17867 D=fbb95cfd
> --------> hubbed_hosts router <--------
> hubbed_hosts router skipped: domains mismatch
> --------> smarthost router <--------
> local_part=nagios-admin domain=localhost.localdomain
> checking domains
> localhost.localdomain in "@:localhost"? no (end of list)
> localhost.localdomain in "! +local_domains"? yes (end of list)

So you have a message which is neither the local host nor member of
the list of local domains.

> R: smarthost for nagios-admin@localhost.localdomain
> calling smarthost router
> smarthost router called for nagios-admin@localhost.localdomain
>   domain = localhost.localdomain
> route_item = * smtp.wanadoo.fr byname

And exim routes the message to the smarthost.

> d/ locahost.localdomain not exim conf and in  /etc/hosts (127.0.0.1
> bound to localhost and localhost.localdomain):

> --------------------------------------------------------------------
> /usr/sbin/exim4 -d  -bt nagios-admin@localhost.localdomain
> Exim version 4.50 uid=0 gid=0 pid=18130 D=fbb95cfd
> --------> hubbed_hosts router <--------
> hubbed_hosts router skipped: domains mismatch
> --------> smarthost router <--------
> local_part=nagios-admin domain=localhost.localdomain
> checking domains
> localhost.localdomain in "@:localhost"? no (end of list)
> localhost.localdomain in "! +local_domains"? yes (end of list)

Can you give the complete contents of your /etc/hosts file for this
case please?

What does getent hosts localhost.localdomain say?

> PS2: it seems /etc/hosts does not matter if localhost.localdomain is
> setted as a local domain in exim conf :

Yes, that is correct. The key is what the @ in local_domains gets
expanded to, and I suspect that is only expanded to the unqualified
host name.

Frankly, I think that it should be okay to set localhost.localdomain
as a local domain if you want locally delivered mail. I am inclined to
either close this bug report or to set it wontfix.

Please comment.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835