Subject: Re: sendmail inappropriately tries to externally relay local mail
To: None <netbsd-users@NetBSD.org>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-users
Date: 09/04/2005 08:39:54
In article <340a0c1045f.616bf6f1@postman.arcor.de>,
	Christian Hattemer <c.hattemer@arcor.de> writes:
> Everything was fine, until lately the name "localhost.myisp.de" appeared in
> DNS. Since that sendmail tries to relay local mail (e.g. reports from
> /etc/daily) via "localhost.myisp.de".

That's really a bug in their DNS. "localhost.t-link.de" resolves to
an IP address != 127.0.0.1 which is very wrong. From RFC 1912
(Common DNS Operational and Configuration Errors):

	The "localhost" address is a "special" address which always refers to
	The local host.  It should contain the following line:

           localhost.      IN      A       127.0.0.1

You should ask your ISP to fix their setup or work arround it by not
chaning your "/etc/resolv.conf" not use their domain. You can e.g.
use "netbsd.org" which has the correct "localhost" entry.

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/