[Mimedefang] X-Scanned-By: MIMEDefang 2.48 on 127.0.0.1

David F. Skoll dfs at roaringpenguin.com
Sat Oct 30 00:20:55 EDT 2004


On Fri, 29 Oct 2004, Mike Atkinson wrote:

> 2 of them are adding an X-Scanned-By header with 127.0.0.1 showing as
> the IP in the header while the other 2 are showing the correct IP that
> the message was received on.

Do the two that think they're 127.0.0.1 have proper host names that resolve
to a real IP address?

The algorithm that adds the IP address works like this:

1) If the Sendmail macro ${if_addr} is not 127.0.0.1, use that.

2) Otherwise, use whatever gethostbyname(gethostname()) returns as the
   machine's IP address.

--
David



More information about the MIMEDefang mailing list