[Pkg-exim4-users] weird rewrite problem - address rewritten to alias then sent as original address

Jens Schüßler jgs at trash.net
Fri Oct 13 17:36:31 UTC 2006


* Roy Bonser <rbonser at umich.edu> wrote:
> Here is the situation, I'm trying to get system messages forwarded off  
> a debian testing box with a stock exim4 setup. I have not made changes  
> to the files in /etc/exim4/conf.d at all.
> 
> The network here, let's call it local.domain, has several subdomains in  
> it. The box is in one I'm calling my.local.domain and the smarthost is  
> in another, mail.local.domain.
> I have the system accounts aliased to root and root is aliased to  
> myname at my.isp.domain.
> 
> What happens is the mail to root is being sent as root at my.local.domain  
> even though the name is being changed to myname at my.isp.domain in the  
> debug output. I can't find where it is being switched back to the  
> original To: address. The log shows the address as =>  alias address  
> <original address> being sent to the smarthost.

Search for rewrit in your log and you can see that theres no change.
The name is only changed for the receiver of the mail. If you want to
rewrite the senders adress to myname at my.isp.domain, you have to put it
in /etc/email-adresses

,----
| root: myname at my.isp.domain
| 
`----

Thats what I get here, when I put root in /etc/email-adresses (only log
snippets)

19:22:37 19796 expanding:
${lookup{$1}lsearch{/etc/email-addresses}{$value}fail}
19:22:37 19796    result: someone at somewhere.com
19:22:37 19796 LOG: address_rewrite MAIN
19:22:37 19796   "root at home.sge.kicks-ass.org" from env-from rewritten
as "someone at somewhere.com" by rule 4
19:22:37 19796 rewritten sender = someone at somewhere.com

HTH
Jens



More information about the Pkg-exim4-users mailing list