Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | if /^\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 |
| 5 | endif |
| 6 | if /^\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 |
| 9 | endif |
| 10 | if /^\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 |
| 13 | endif |
| 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 |