Excluding email originator from the internet headers

Questions and answers about how to do stuff
Post Reply
curibe
Posts: 74
Joined: 26 Feb 2014 22:38

Excluding email originator from the internet headers

Post by curibe »

How can I remove the originating server hostname and IP from the internet headers?

internet headers should only state the EFA server and public ip address.

let me know if this is possible.
thewomble
Posts: 50
Joined: 17 Jan 2017 12:52

Re: Excluding email originator from the internet headers

Post by thewomble »

In headers_check in /etc/postfix add below in, change ExchangeServer to what name your internal server is.

You need to put a # in front of the line "/^Message-ID:/ HOLD"

Code: Select all

/^Received:/ HOLD

/^Received: from ExchangeServer/    IGNORE
/^Received: from 127.0.0.1/	IGNORE
Then issue

postmap /etc/postfix/header_checks

the issue a postfix reload

take backups of the files first and test.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Excluding email originator from the internet headers

Post by shawniverson »

You still need the first line, just move it to the end.
Post Reply