[exim] Problem with RCPT TO: Rewriting

Top Page
Delete this message
Reply to this message
Author: Matthias-Christian Ott
Date:  
To: exim-users
Subject: [exim] Problem with RCPT TO: Rewriting
Hi,

I have the following config:

local_interfaces = <; 127.0.0.1 ; ::1

acl_smtp_rcpt = accept

begin routers

shadow_redirect:
driver = redirect
data = ott@???, example@???
unseen

manual_route:
driver = manualroute
domains = *
route_list = * server1.example.com
transport = remote_smtp

begin transports

remote_smtp:
driver = smtp
return_path = example@???

begin retry

* * F,2h,15m; G,16h,1h,1.5; F,4d,6h

As far as I understood it, Exim should rewrite "MAIL FROM:"
to example@??? and "RCPT TO:" to ott@??? and
example@???.

If I now send a message to root@??? (the server that
runs with the above configuration), it there seems to be an additional
"RCPT TO:" to root@???:

Apr 24 03:10:04 server2 exim[20205]: 2010-04-24 03:10:04 1O5Vko-0005Ft-5f <= root@??? U=root P=local S=5702
Apr 24 03:10:04 server2 exim[20269]: 2010-04-24 03:10:04 1O5Vko-0005Ft-5f => example@??? <root@???> R=manual_route T=remote_smtp H=server1.example.com [198.51.100.1] X=TLSv1:DHE-RSA-AES256-SHA:256
Apr 24 03:10:04 server2 exim[20269]: 2010-04-24 03:10:04 1O5Vko-0005Ft-5f -> ott@??? <root@???> R=manual_route T=remote_smtp H=server1.example.com [198.51.100.1] X=TLSv1:DHE-RSA-AES256-SHA:256
Apr 24 03:10:04 server2 exim[20269]: 2010-04-24 03:10:04 1O5Vko-0005Ft-5f -> root@??? R=manual_route T=remote_smtp H=server1.example.com [198.51.100.1] X=TLSv1:DHE-RSA-AES256-SHA:256

How can I avoid that each message is also send to the original
recipient (in this case root@???)?

Thanks!

Regards,
Matthias-Christian