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

Roy Bonser rbonser at umich.edu
Fri Oct 13 20:37:17 UTC 2006


I am not trying to change the from. I want the email to be from: 
root at my.local.domain and forwarded to: myname at my.isp.domain.

What is happening now is that the smarthost is getting a message from: 
root at my.local.domain to root at my.local.domain even though, according to 
the debug output, the /etc/aliases file is being consulted.

Thanks,
   --Roy

On Oct 13, 2006, at 1:36 PM, Jens Schüßler wrote:

> * 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
>
> _______________________________________________
> Pkg-exim4-users mailing list
> Pkg-exim4-users at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
>
>




More information about the Pkg-exim4-users mailing list