From 4b22bd1dea1e6e4c2fc6f86b70a560cde3577fd6 Mon Sep 17 00:00:00 2001 From: Dmitriy Alekseev Date: Wed, 20 May 2020 12:51:00 +0300 Subject: [PATCH] Update anonymize_headers.pcre (#3553) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update anonymize_headers.pcre Change Received by for Rspamd with Dmarc Reporting module enabled. * Update anonymize_headers.pcre Co-authored-by: André Peters --- data/conf/postfix/anonymize_headers.pcre | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/conf/postfix/anonymize_headers.pcre b/data/conf/postfix/anonymize_headers.pcre index ae0850b2..2d1fe704 100644 --- a/data/conf/postfix/anonymize_headers.pcre +++ b/data/conf/postfix/anonymize_headers.pcre @@ -3,6 +3,10 @@ if /^\s*Received:.*Authenticated sender.*\(Postcow\)/ /^Received: from .*? \([\w-.]* \[.*?\]\)(.*|\n.*)\(Authenticated sender: (.+)\)\s+by.+\(Postcow\) with (.*)/ REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with $3 endif +if /^\s*Received: from rspamd \(.*mailcow-network.*\).*\(Postcow\)/ +/^Received: from rspamd (.*|\n.*)\((.+) (.+)\)\s+by (.+\(Postcow\)) with (.*)/ + REPLACE Received: from rspamd (RSPAMD_HOST $3) by $4 with $5 +endif /^\s*X-Enigmail/ IGNORE /^\s*X-Mailer/ IGNORE /^\s*X-Originating-IP/ IGNORE