From 8608ded0ed4c87f40960751c9ad7a9b9eca029e6 Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 6 Sep 2019 08:02:52 +0200 Subject: [PATCH] [Postfix] Replace Postcow header, remove authed user --- data/conf/postfix/anonymize_headers.pcre | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/conf/postfix/anonymize_headers.pcre b/data/conf/postfix/anonymize_headers.pcre index d1ad005d..28cc73d7 100644 --- a/data/conf/postfix/anonymize_headers.pcre +++ b/data/conf/postfix/anonymize_headers.pcre @@ -1,6 +1,7 @@ if /^\s*Received:.*Authenticated sender.*\(Postcow\)/ -/^\s*Received:.*Authenticated sender:(.+)/ - REPLACE Received: from localhost (localhost [127.0.0.1]) (Authenticated sender:$1 +#/^Received: from .*? \([\w-.]* \[.*?\]\)\s+\(Authenticated sender: (.+)\)\s+by.+\(Postcow\) with (E?SMTPS?A?) id ([A-F0-9]+).+;.*?/ +/^Received: from .*? \([\w-.]* \[.*?\]\)\s+\(Authenticated sender: (.+)\)\s+by.+\(Postcow\) with (.*)/ + REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with $2 endif /^\s*X-Enigmail/ IGNORE /^\s*X-Mailer/ IGNORE