main.cf:
smtp_header_checks = pcre:/etc/postfix/header_checks_smtp
/etc/postfix/header_checks_smtp:
/^Received:/ IGNORE
/^X-Originating-Ip:/ IGNORE
That's a rather radical "solution". More typically one would just drop
"Received" headers known to be added by the local MTA (matching the
hostnname in "by" clause explicitly).
I assumed smtp_header_checks is not used by smtpd "incoming from the world". Is it
possible to include the smtp_header_check in the submission settings in master.cf to make sure it
is only applied to "outgoing to the world" email?
As for "X-Originating-Ip:", if you're the one not adding it, why remove it?
And if you are adding it, then why, if only to remove it?
Because the webmail software im using adds it, so I use postfix to strip it
back out.