Debian 6でexim4を実行しているメールヘッダーのローカルユーザー名を削除するにはどうすればよいですか?
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
だから私はrootとローカルホスト名のある部分を一緒に削除したい(?)。
ドキュメント に従って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)