OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Confusing 'Received' Header

From: Andrew Boothman (andrewmux.org.uk)
Date: Tue Jun 01 2004 - 18:32:55 CDT


Hi!

For some reason connections to a postfix 2.1.1 box running on my lan
from a host called spatula.flat seem to have a confusing Received header
added.

Once such example is:

Received: from [127.0.0.1] (spatula.flat [192.168.0.2])
        by myriad.flat (Postfix) with ESMTP id D0BE2D8
        for <andrewmux.org.uk>; Tue, 1 Jun 2004 22:06:39 +0100 (BST)

Why does the initial IP address 127.0.0.1 show up? The connection wasn't
from 127.0.0.1, the correct hostname and IP are shown in brackets after.

Here is the relevent part of my maillog:

Jun 1 22:06:40 myriad postfix/qmgr[9553]: D0BE2D8: removed
Jun 1 22:06:40 myriad postfix/smtp[12512]: D0BE2D8:
to=<andrewmux.org.uk>, relay=mail.mux.org.uk[212.42.8.35], delay=1,
status=sent (250 Ok: queued as A18961007F87)
Jun 1 22:06:39 myriad postfix/qmgr[9553]: D0BE2D8:
from=<andrewmux.org.uk>, size=559, nrcpt=1 (queue active)
Jun 1 22:06:39 myriad postfix/cleanup[12511]: D0BE2D8:
message-id=<40BD0EA9.5070907mux.org.uk>
Jun 1 22:06:39 myriad postfix/smtpd[12510]: D0BE2D8:
client=spatula.flat[192.168.0.2]
Jun 1 22:06:39 myriad postfix/smtpd[12510]: 81807D8:
client=spatula.flat[192.168.0.2]
Jun 1 22:06:39 myriad postfix/smtpd[12510]: connect from
spatula.flat[192.168.0.2]

Here's a postconf -n in case it's relevent:

alias_maps = hash:/etc/aliases
command_directory = /usr/local/sbin
config_directory = /etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
delay_warning_time = 4h
home_mailbox = Maildir/
html_directory = no
inet_interfaces = 192.168.0.254, 127.0.0.1
mail_owner = postfix
mailq_path = /usr/local/bin/postfix-mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, localhost.$mydomain
mynetworks = 192.168.0.0/24, 127.0.0.0/8
myorigin = $myhostname
newaliases_path = /usr/local/bin/postfix-newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/postfix
sample_directory = /etc/postfix
sendmail_path = /usr/local/sbin/postfix-sendmail
setgid_group = postdrop
smtp_helo_name = 82-41-27-32.cable.ubr04.edin.blueyonder.co.uk
smtpd_banner = $myhostname ESMTP $mail_name+FreeBSD
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 450

Am I confused about something here or is postfix?

Thanks!

Andrew