From ce94ef38b2dac392ae4621e0cf6925ea737a8ccb Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 3 May 2015 14:03:57 +0000 Subject: [PATCH] anonymize X-Pgp-Agent, Mime-Version outgoing mail headers; fixes #342 I don't have a mail client that sets Mime-Version with a user agent string so I couldn't really test. --- conf/postfix_outgoing_mail_header_filters | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/postfix_outgoing_mail_header_filters b/conf/postfix_outgoing_mail_header_filters index 4848c01..a15d4af 100644 --- a/conf/postfix_outgoing_mail_header_filters +++ b/conf/postfix_outgoing_mail_header_filters @@ -8,3 +8,7 @@ /^\s*X-Enigmail:/ IGNORE /^\s*X-Mailer:/ IGNORE /^\s*X-Originating-IP:/ IGNORE +/^\s*X-Pgp-Agent:/ IGNORE + +# The Mime-Version header can leak the user agent too, e.g. in Mime-Version: 1.0 (Mac OS X Mail 8.1 \(2010.6\)). +/^\s*(Mime-Version:\s*[0-9\.]+)\s.+/ REPLACE $1