Page 1 of 1
Excluding email originator from the internet headers
Posted: 09 Jun 2017 21:03
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.
Re: Excluding email originator from the internet headers
Posted: 12 Jun 2017 13:12
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.
Re: Excluding email originator from the internet headers
Posted: 12 Jun 2017 21:14
by shawniverson
You still need the first line, just move it to the end.