Назад | Перейти на главную страницу

Удалить локальное имя пользователя exim

Как я могу удалить локальное имя пользователя в заголовках почты с exim4, запущенным на debian 6?

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

Итак, я хочу удалить часть с корнем и локальным именем хоста вместе (?).

Вам нужно изменить received_header_text согласно документация.

По умолчанию:

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}}

После модификации это будет:

  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)