Page 1 of 1

MASQUERADE (localhost.localdomain [127.0.0.1])

Posted: Thu Oct 11, 2007 12:31 am
by jaime.pinto
I get several messages whose headers show something like this (outside the parenthesis coincides with the inside):
Received: from mail.otherdomain.com (mail.otherdomain.com [200.200.200.200])

On the other hand, messages from our scalix server always get at the recipient with this discrepancy:
Received: from mail.mydomain.com (localhost.localdomain [127.0.0.1])

Question: How can I force (localhost.localdomain [127.0.0.1] to disappear, and instead show the legitimate information?

Our RHEL5 sendmail.mc already has the following:
LOCAL_DOMAIN(`mail.mydomain.com')dnl
MASQUERADE_AS(`mydomain.com')dnl
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl

no smart host

/etc/hosts
127.0.0.1 localhost.localdomain localhost
300.300.300.300 mail.mydomain.com mail # the scalix server

What am I missing? Is this possible to be accomplished in scalix/sendmail/RHEL5? Is this even a MASQUERADE issue or something else?

Thanks

Posted: Thu Oct 11, 2007 4:16 am
by Valerion
CentOS 5 does the same thing.

It does make sense to an extent, though, as Scalix submits it to the sendmail MSA, who then passes it on to the sendmail MTA via 127.0.0.1, and it is probably this hop that is logged in the Received header.

The next hop shows the machine's IP correctly.