blob: 739237be2d5b992928c7dcca8fa2059dc4e97c26 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001if /^\s*Received:.*Authenticated sender.*\(Postcow\)/
2#/^Received: from .*? \([\w-.]* \[.*?\]\)\s+\(Authenticated sender: (.+)\)\s+by.+\(Postcow\) with (E?SMTPS?A?) id ([A-F0-9]+).+;.*?/
3/^Received: from .*? \([\w-.]* \[.*?\]\)(.*|\n.*)\(Authenticated sender: (.+)\)\s+by.+\(Postcow\) with (.*)/
4 REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with $3
5endif
6if /^\s*Received: from.* \(.*dovecot-mailcow.*mailcow-network.*\).*\(Postcow\)/
7/^Received: from.* (.*|\n.*)\((.+) (.+)\)\s+by (.+) \(Postcow\) with (.*)/
8 REPLACE Received: from sieve (sieve $3) by $4 (Postcow) with $5
9endif
10if /^\s*Received: from.* \(.*rspamd-mailcow.*mailcow-network.*\).*\(Postcow\)/
11/^Received: from.* (.*|\n.*)\((.+) (.+)\)\s+by (.+) \(Postcow\) with (.*)/
12 REPLACE Received: from rspamd (rspamd $3) by $4 (Postcow) with $5
13endif
14/^\s*X-Enigmail/ IGNORE
15/^\s*X-Mailer/ IGNORE
16/^\s*X-Originating-IP/ IGNORE
17/^\s*X-Forward/ IGNORE
18# Not removing UA by default, might be signed
19#/^\s*User-Agent/ IGNORE