Subject: Re: sendmail inappropriately tries to externally relay local mail
To: Christian Hattemer <>
From: Todd Vierling <>
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 "" appeared in
> DNS. Since that sendmail tries to relay local mail (e.g. reports from
> /etc/daily) via "". It seems the name is built from my
> hostname "" 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 <> <> <>