Jonny_77, 2009-07-15 10:18: > Due to privacy issues I want to change IP address of some users from the > received header to 127.0.0.1. I want to make it only for some users. I have > found received_header_text variable, but I do not understand how to change > this variable for defined users. Thanks.
Here's what I use: > received_header_text = Received: \ > ${if !def:authenticated_id \ > {${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 $smtp_active_hostname \ > ${if def:received_protocol {with $received_protocol}} \ > ${if def:tls_cipher {($tls_cipher)\n\t}}\ > (Exim $version_number)\n\t\ > id $message_exim_id The key part is the "${if !def:authenticated_id ...}", i.e. if the sender is authenticated, the complete "from ..." is skipped. You can replace the condition by some lookup and add whatever text you want if the lookup succeeds, e.g. received_header_text = Received: \ ${lookup {$authenticated_id} lsearch {/etc/exim/users_with_hidden_ip} \ {by 127.0.0.1} \ {${if def:sender_rcvhost \ ... } \ ... -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/