Hi there, I'm a Postfix newb playing my way with FreeBSD 7 port named
postfix-current-2.6.20080814,4. In http://www.postfix.org/ADDRESS_REWRITING_README.html
it says that:

Postfix never rewrites message header addresses from remote SMTP
clients when the remote_header_rewrite_domain parameter value is empty
(the default setting).

Nevertheless when I connect to Postfix SMTP from another machine and
attempt to relay through it, mail eventually arrives with domain name
appended:

[EMAIL PROTECTED]:~$ telnet nigar 25
Trying 192.168.0.248...
Connected to nigar.localnet.
Escape character is '^]'.
220 nigar.localnet ESMTP Postfix
mail from: foo
250 2.1.0 Ok
rcpt to: [EMAIL PROTECTED]
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: hi
fi
.
250 2.0.0 Ok: queued as 7F5EB2EC4E
quit
221 2.0.0 Bye
Connection closed by foreign host.

that is both From: and Return-Path: headers contain [EMAIL PROTECTED]
and not just foo.

local_header_rewrite_clients presumably only applies to local
connections:

local_header_rewrite_clients = permit_inet_interfaces
remote_header_rewrite_domain =
myhostname = nigar.localnet
mydomain = localnet
mynetworks_style = subnet

Have I misinterpreted the docs? Why is @nigar.localnet being appended
for email being relayed?

Thanks.

Reply via email to