2018-10-15 21:53:22 +02:00
**As of 15.10.2018 this is enabled by default.**
2017-05-09 17:36:16 +02:00
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:
2017-05-06 00:22:26 +02:00
```
2018-05-31 10:01:56 +02:00
/^\s*Received:.*Authenticated sender:(.+)/
REPLACE Received: from localhost (localhost [127.0.0.1]) (Authenticated sender:$1
2017-05-06 00:22:26 +02:00
/^\s*User-Agent/ IGNORE
/^\s*X-Enigmail/ IGNORE
/^\s*X-Mailer/ IGNORE
/^\s*X-Originating-IP/ IGNORE
/^\s*X-Forward/ IGNORE
```
2017-05-09 17:36:16 +02:00
Next we need to add the following to `data/conf/postfix/main.cf` :
2017-05-06 00:22:26 +02:00
```
smtp_header_checks = pcre:/opt/postfix/conf/mailcow_anonymize_headers.pcre
```
2018-02-08 23:03:08 +01:00
Then restart Postfix:
```
2018-08-31 20:46:41 +02:00
docker exec -it $(docker ps -qf name=postfix-mailcow) postfix reload
2018-02-08 23:03:08 +01:00
```