Remove nome de usuário local exim

2

Como posso remover o nome de usuário local nos cabeçalhos de correio com o exim4 em execução no debian 6?

Received: from root by host.domain.com with local (Exim 4.72)
(envelope-from <[email protected]>)
id 123123123
for [email protected]; Tue, 03 Jan 2012 13:08:17 +0100

Por isso, quero remover a peça com raiz e o nome do host local juntos (?).

    
por Gustav 03.01.2012 / 13:19

1 resposta

4

Você precisa modificar received_header_text conforme a documentação .

O padrão é:

received_header_text = Received: \
  ${if def:sender_rcvhost {from $sender_rcvhost\n\t}\
  {${if def:sender_ident \
  {from ${quote_local_part:$sender_ident} }}\
  ${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}}\
  (Exim $version_number)\n\t\
  ${if def:sender_address \
  {(envelope-from <$sender_address>)\n\t}}\
  id $message_exim_id\
  ${if def:received_for {\n\tfor $received_for}}

Após a modificação, será:

  received_header_text = Received: \
  by $primary_hostname \
  ${if def:received_protocol {with $received_protocol}} \
  ${if def:tls_cipher {($tls_cipher)\n\t}}\
  (Exim $version_number)\n\t\
  ${if def:sender_address \
  {(envelope-from <$sender_address>)\n\t}}\
  id $message_exim_id\
  ${if def:received_for {\n\tfor $received_for}}

  (IT IS WORKING CODE)
    
por 03.01.2012 / 14:38