Remove/hide client sender ip from postfix?

Is there a predifined/simple way to remove/hide client sender ip from mail sent from the LAN using the postfix MTA of NS that is the FW/GW of the LAN?
Or I need to search some hack for the postfix config?
The problem is due to the storical use of not private IP in the LAN that are in RBL … :frowning:

Thanks, P

You need to use a custom template to add header checks.
I can share my config if needed.

Very appreciated,
Thanks, P.

# cat /etc/e-smith/templates-custom/etc/postfix/header_checks 
/^Received:.*with ESMTPSA/              IGNORE
/^X-Originating-IP:/    IGNORE
/^X-Mailer:/            IGNORE
/^Mime-Version:/        IGNORE
# cat /etc/e-smith/templates-custom/etc/postfix/main.cf/90header-checks 
#
# 90header-checks
#
mime_header_checks = regexp:/etc/postfix/header_checks
header_checks = regexp:/etc/postfix/header_checks
1 Like