Subject: Re: sendmail inappropriately tries to externally relay local mail
To: Christian Hattemer <c.hattemer@arcor.de>
From: Todd Vierling <tv@duh.org>
List: netbsd-users
Date: 09/01/2005 11:23:32
On Thu, 1 Sep 2005, Christian Hattemer wrote:
> 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". It seems the name is built from my
> hostname "mybox.myisp.de" by taking "localhost" and appending the hostname
> minus the first part.
Did you put a "MAILTO=user@localhost" line in root's crontab or something
like that? Where feasible, you should never address mail explicitly to
@localhost; rather, if you want the mail local, don't append a @domain to
the address at all (use "MAILTO=user" rather than "MAILTO=user@localhost").
I can't currently comment on the rest of the question, but the above is a
common mistake that no one else pointed out....
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>