Jack Damn wrote:
> Hello,
>
> For security reasons, could anyone point me in the right
> direction in order to get rid of the following header line in
> messages locally generated:
>
> Received: from root by host@??? with local (Exim 4.62)
>
> More to that, I would ultimately wish to hide any information from the
> inside SMTP hops within my network, so the recipient sees only
> a Received from line from my internet mail gateway (without disclosing
> exim as the MTA and its's version)
>
> Thank you,
>
> JD
You could put a 'slightly less' informative received header by setting
this in the beginning of your config file:
received_header_text = "Received: \
${if def:sender_fullhost {from ${sender_fullhost}\n\t}\
${if def:sender_helo_name
{(helo=${sender_helo_name})\n\t}}}}\
by ${primary_hostname} \
${if def:received_protocol {with ${received_protocol}}} \
${if def:tls_cipher {($tls_cipher)\n\t}}\
${if def:tls_peerdn {(tls_peerdn ${tls_peerdn})\n\t}}\
id=${message_id}\
${if def:received_for {\n\tfor $received_for}}"