-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1d480b
commit 1f04d41
Showing
3 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
modoboa_installer/scripts/files/postfix/anonymize_headers.pcre.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
if /^\s*Received:.*Authenticated sender.*\(Postfix\)/ | ||
/^Received: from .*? \([\w\-.]* \[.*?\]\)(.*|\n.*)\(Authenticated sender: (.+)\)\s+by.+\(Postfix\) with (.*)/ | ||
REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with $3 | ||
endif | ||
if /^\s*Received: from .*rspamd.localhost .*\(Postfix\)/ | ||
/^Received: from.* (.*|\n.*)\((.+) (.+)\)\s+by (.+) \(Postfix\) with (.*)/ | ||
REPLACE Received: from rspamd (rspamd $3) by $4 (Postfix) with $5 | ||
endif | ||
/^\s*X-Enigmail/ IGNORE | ||
/^\s*X-Originating-IP/ IGNORE | ||
/^\s*X-Forward/ IGNORE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters