When sending email with Postfix, how can I hide the sender’s IP and username in the Received header?
When sending mail, Postfix inserts the authenticated user’s IP and username into the Received header on the email. While this is useful for tracking down who sent a particular email that was sent from your mail server, it also has privacy implications. In a small-scale situation where I can trust all the users not to get their accounts compromised and turned into spam zombies, I’d rather not broadcast IP addresses and account names for all to read. In short, how do I set up Postfix to not send this:
Received: from [x.x.x.x] (pc1.example.com [x.x.x.x]) (using TLSv1
with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate
requested) (Authenticated sender: user) by mail.example.com
(Postfix) with ESMTPSA id CC77010C148 for ; Fri, 11
Nov 2011 04:55:18 +0000 (UTC)