Hello,

On Mon, Nov 13, 2006 at 03:58:31PM +0100, Kunter Agan wrote:
> I want to change the senders identity completely - when user root sends an
> email, addresses are rewritten - ok - but if you take a nearer look at the
> mail, you'll find out very fast who's the real sender of the mail.
> 
> Here is an example:
> 
> Content of file /etc/email-addresses:
> 
> root: [EMAIL PROTECTED]
> 
> When typing : 
> 
> echo "mycontent" | mail -s "mysubject" [EMAIL PROTECTED] 
> 
> at the prompt as user root local user 'john' receives the following mail: 
> 
> Return-path: <[EMAIL PROTECTED]>
> Envelope-to: [EMAIL PROTECTED]
> Delivery-date: Mon, 13 Nov 2006 14:31:52 +0100
> Received: from root by mydomain.de with local (Exim 4.63)
>             (envelope-from <[EMAIL PROTECTED]>)
>             id 1Gjbuh-0002Xu-Gc
>             for [EMAIL PROTECTED]; Mon, 13 Nov 2006 14:31:51 +0100
> ...
>  
> 
> In the exim.conf file I put the following rewriting-rule:
> 
> [EMAIL PROTECTED] "${lookup{${local_part}}lsearch{/etc/email-addresses}\
>                    {$value}fail}" Eh
> 
> MY QUESTIONS: 
> 
> What can I do if I absolutely don't want to see the 'root' in the 'Received:
> from ...' and 'From: ...' lines?

The problem is that 'root' is the value of $sender_ident and this
variable is not subject to address rewriting, it simply is no address.

You can get rid of the line by changing the Received: line Exim adds
to the message using the main option received_header_text. For details
see
http://www.exim.org/exim-html-4.63/doc/html/spec_html/ch14.html#id2597806

> Or even more important - is the solution of this problem within the range of
> possibilties of exim?

Absolutely.

-- 
Gruss / Best regards   |  LF.net GmbH        |  fon +49 711 90074-411
Matthias Waffenschmidt |  Ruppmannstr. 27    |  fax +49 711 90074-33
[EMAIL PROTECTED]              |  D-70565 Stuttgart  |  http://www.lf.net

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to