From 8958449e76508718c357dac136c26fa54bf4930b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Tue, 16 Oct 2018 20:11:21 +0200 Subject: [PATCH] [Postfix] Remove headers only when mail_name matches --- data/conf/postfix/mailcow_anonymize_headers.pcre | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/conf/postfix/mailcow_anonymize_headers.pcre b/data/conf/postfix/mailcow_anonymize_headers.pcre index da303841..1d678ffa 100644 --- a/data/conf/postfix/mailcow_anonymize_headers.pcre +++ b/data/conf/postfix/mailcow_anonymize_headers.pcre @@ -1,10 +1,9 @@ if /^\s*Received:.*Authenticated sender.*\(Postcow\)/ /^\s*Received:.*Authenticated sender:(.+)/ REPLACE Received: from localhost (localhost [127.0.0.1]) (Authenticated sender:$1 -endif - /^\s*User-Agent/ IGNORE /^\s*X-Enigmail/ IGNORE /^\s*X-Mailer/ IGNORE /^\s*X-Originating-IP/ IGNORE /^\s*X-Forward/ IGNORE +endif