On 11/4/2010 11:25 AM, Joe Wong wrote:
Hello,
Postfix write the Received header like this:
Received: from HELO.HOSTNAME (*HOSTNAME_OF_CONNECTING_IP*
[CONNECTING_IP])
by HOSTNAME_OF_POSTFIX (Postfix) with SMTP id 0ABBCCDDEE
for <[email protected]
<mailto:[email protected]>>; Wed, 1 Nov 2010 00:00:00
+0000 (GMT)
is there a way to tell postfix not to write the
HOSTNAME_OF_CONNECTING_IP, or disable the reverse DNS lookup
so that is always 'unknown' ?
Best regards,
- Joe
To disable the lookup, see:
http://www.postfix.org/postconf.5.html#smtpd_peername_lookup
Caution: setting this to "no" causes postfix to treat all
clients as "unknown". As a result, name-based
check_client_access tables will not work, and if you use
reject_unknown_client_hostname or
reject_unknown_reverse_client_hostname they will reject every
connection as "unknown".
If you only want to suppress the header, you can use a
header_check that matches the offending header with an action
of IGNORE or REPLACE.
http://www.postfix.org/header_checks.5.html
-- Noel Jones