Hide IP Local mail server relay to SMTP Proxy

Hello
I have two system, Mail server and SMTP Proxy(Nethserver) and I try to hide IP from Local mail server, it means when I sent to gmail.com as shown Original Message, there is show my local IP like a
1x.xx.xxx.xxx
Here is information

Received: from mail.xxxx.xxx (unknown [1x.xx.xxx.xxx]) by xxxx.xxxx.com (Postfix) with ESMTP id xxxx03 for

Please advice to hide the Local IP

Thank you

Take a look at: http://www.postfix.org/header_checks.5.html

@giacomo Thank you and how to hide outgoing X-Spamd-Result

Maybe @stephdl and @davidep can be more useful than me on this.
I only could say that removing the header could lead to some unexpected issues for sieve and other things.

1 Like

X-Spamd-Result: default: False [-2.54 / 19.90];

when you want to remove this (and all matched scores)

create a file /etc/rspamd/override.d/milter_headers.conf

extended_spam_headers = false;

then
systemctl restart rspamd

1 Like

@stephdl thank you so much, for extended_spam_headers = false; it means the rspamd runing and filter, right ?

Yes, filtering should still work, it’s only about the headers:

https://rspamd.com/doc/modules/milter_headers.html#options

1 Like

Thank you