Subject: Re: daily (& security) mail not delivered
To: William Allen Simpson <>
From: Alan Barrett <>
List: tech-security
Date: 06/28/2003 15:35:48
On Sat, 28 Jun 2003, William Allen Simpson wrote:
> OK, let's try it:
> dreamer: {1} echo test | mail root
> dreamer: {2} echo testlocal | mail root@localhost


> H?F?From: current
> H?M?Message-Id: <>
> H??To: root@localhost
> .
> No, he's wrong!  The localhost piece IS NOT "replaced with my fully 
> qualified hostname."

You were looking at a file in the queue.  Final delivery had not yet
taken place.  So you can't yet be sure what sendmail will do during
delivery.  My tests suggest that "localhost" in the "To:" line will be
changed to the local machine's hostname some time before or during final

> The delivery is attempted to "". 

I think you mean "sendmail's logs and queue files imply that delivery is
attempted to".  I think you'll find that that
name is not really used for delivery.

At least, when I tried adding an /etc/hosts entry for
localhost.${domain} with an IP address other than, and sent
mail to "root@localhost", sendmail did not connect to the other IP
address, and eth mail was delivered to root's mailbox on teh local

--apb (Alan Barrett)