Hi Albrecht,

tested it and it works as it shoud.

big thanks

2017-05-25 14:41 GMT+02:00 <spamv...@googlemail.com>:

> Interesting..
>
> smtp_header_checks did the trick, header_checks did not.
>
> 2017-05-25 14:26 GMT+02:00 Albrecht Dreß <albrecht.dr...@arcor.de>:
>
>> Am 25.05.17 14:20 schrieb(en) spamv...@googlemail.com:
>>
>>> since three days I'm trying to remove my internal and external IP from
>>> the Message header when I'm sending mails. But no solution has worked so
>>> far.
>>>
>>> What I did:
>>> created a new service in master.cf
>>>
>>
>> A simpler solution (working for me) for all outgoing messages is to add
>>
>> <snip>
>> smtp_header_checks = pcre:/etc/postfix/clean_outgoing_headers
>> </snip>
>>
>> to /etc/postfix/main.cf.  The file /etc/postfix/clean_outgoing_headers
>> contains
>>
>> <snip>
>> # drop mail application information
>> /^X-Mailer:.*/                                          IGNORE
>> /^User-Agent:.*/                                        IGNORE
>> /^X-Enigmail-Version:.*/                                IGNORE
>> # drop all received stuff
>> /^Received:.*/                                          IGNORE
>> </snip>
>>
>> which additionally removes information about the MUA which may be used by
>> an attacker to craft a targeted attack.
>>
>> Hth,
>> Albrecht.
>
>
>

Reply via email to