Any one the settings to remove hostname and IP address in mail headers sent from Postfix mail server.
Tried, myhostname=domain.com in main.cf but now working as expected.
Any config pls share
You cannot remove the hostname or IP. However, you can change them if you don't want to expose the actual hostname.
Create a virtual NIC with it's own IP (eg eth0:0). Edit
Do you mean that you want to amend or remove the Received: entry placed into an email header by your mail server? If so, note that section 4.4 of RFC 2821 says clearly that
and moreover that your
In other words, what you ask is an RFC violation. Don't do it, no matter who else thinks it's a good idea.
The Received-Header which contains the ip/helo/reverse dns of your postfix server is written by the RECEIVING mail server, not by your postfix, so there is no way to remove this. you could only remove received headers which contain information about the submitting mail client (header checks IGNORE rule)