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.

Attachment: pgpuP97RQLj7E.pgp
Description: PGP signature

Reply via email to