[exim] Problem Rewriting 'Received: from...' and 'From:...'

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Kunter Agan
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Problem Rewriting 'Received: from...' and 'From:...'
Hello,



the following question seems to be of interest for a lot of people, as I
found many similar questions in the net - but until now I couldn't find a
solution to the problem.



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: john.doe@???



When typing :



echo "mycontent" | mail -s "mysubject" john@???



at the prompt as user root local user 'john' receives the following mail:



Return-path: <john.doe@???>

Envelope-to: john@???

Delivery-date: Mon, 13 Nov 2006 14:31:52 +0100

Received: from root by mydomain.de with local (Exim 4.63)

            (envelope-from <john.doe@???>)


            id 1Gjbuh-0002Xu-Gc


            for john@???; Mon, 13 Nov 2006 14:31:51 +0100


To: john@???

Subject: mysubject

Message-Id: <E1Gjbuh-0002Xu-Gc@???>

From: root <john.doe@???>

Date: Mon, 13 Nov 2006 14:31:51 +0100



mycontent



In the exim.conf file I put the following rewriting-rule:



*@+local_domains "${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?



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



(System is Debian Sarge, Exim4)