View Single Post
  #7 (permalink)  
Old 04-16-2008, 07:46 AM
mlpw mlpw is offline
Junior Member
 
Posts: 6
Default

Quote:
Originally Posted by uxbod View Post
Unfortunately I do not believe you can do that with the header checks. You can do things like :-

/^Received:/ ignore <- this would skip the header from being written on the SMTP pipe
/^Received:/ hold <- this would drop the email in the hold queue where it could then be pre-processed before being injected back into the queue

Postfix Address Rewriting
Postfix manual - header_checks(5)
No, REPLACE is a valid action, as I found examples of REPLACE in action where people had rewritten the "Received:" string with just the parts they wanted. I just wasn't able to write the correct REGEX to parse the original string and output just the parts I want.

I'm surprised that no one else has asked this before. The way the "Received:" header is written by default, it exposes your internal network information to the outside world and creates a potential privacy breach.

So, if someone could help me that would be great. Otherwise, I will continuing to research this elsewhere and if I find the answer I will post it here.
Reply With Quote