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.
Excluding email originator from the internet headers
Re: Excluding email originator from the internet headers
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"
Then issue
postmap /etc/postfix/header_checks
the issue a postfix reload
take backups of the files first and test.
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
postmap /etc/postfix/header_checks
the issue a postfix reload
take backups of the files first and test.
- shawniverson
- Posts: 3644
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Excluding email originator from the internet headers
You still need the first line, just move it to the end.