Maybe it's because I've been awake since 1:30 AM, but somehow I am unable to get postfix to strip... head... ers... strip headers. ;)
Ok, heres the setup:
Home Mail Server -> Remote Relay Mail Server Proxy (both postfix)
I want to strip all "Received" headers from all smtp related email forwarded to my remote relay mail server proxy box so the forward relay box will be the originating box, instead of all my local lan IP addresses and amavisd scan headers and such.
I followed a bunch of ideas and guides but nothing has worked for me yet. Not sure what I'm missing.
smtp_header_checks = regexp:/etc/postfix/smtp_header_checks
and in /etc/postfix/smtp_header_checks I have:
I think it could have something to do with the fact that I am relaying a message instead of receiving it? But I logically assume postfix would understand that I am still sending via SMTP to google or whatever... I am confused as to why this doesn't work!
Thanks for any help! I hope there is an easy fix for this solution...