From 5954b3b88988a888242c95f800e48eb414f26bb5 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 1 Jun 2019 08:33:42 +0200 Subject: [PATCH] remove old file --- docs/u_e-postfix-anonym_headers.md | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 docs/u_e-postfix-anonym_headers.md diff --git a/docs/u_e-postfix-anonym_headers.md b/docs/u_e-postfix-anonym_headers.md deleted file mode 100644 index 6d76ae0b1..000000000 --- a/docs/u_e-postfix-anonym_headers.md +++ /dev/null @@ -1,25 +0,0 @@ -**As of October the 15th, 2018 this is enabled by default.** - -To disguise your users details like IP, email client, etc. we have to create a new file in `data/conf/postfix/mailcow_anonymize_headers.pcre` and insert the following: - -``` -/^\s*Received:.*Authenticated sender:(.+)/ - REPLACE Received: from localhost (localhost [127.0.0.1]) (Authenticated sender:$1 -/^\s*User-Agent/ IGNORE -/^\s*X-Enigmail/ IGNORE -/^\s*X-Mailer/ IGNORE -/^\s*X-Originating-IP/ IGNORE -/^\s*X-Forward/ IGNORE -``` - -Next we need to add the following to `data/conf/postfix/main.cf`: - -``` -smtp_header_checks = pcre:/opt/postfix/conf/mailcow_anonymize_headers.pcre -``` - -Then restart Postfix: - -``` -docker exec -it $(docker ps -qf name=postfix-mailcow) postfix reload -```