Thanks Philip!
This is temporary rewrite for test purposes only. I've solved this
problem by changing rewrite condition:
[EMAIL PROTECTED] "${if match {$header_To:[EMAIL PROTECTED] \
[EMAIL PROTECTED]" Ff
I have found answer at
http://www.exim.org/eximwiki/FAQ/Rewriting_addresses/Q0807?highlight=%28rewrite%29
WBR,
typus vulgaris
On 9/5/05, Philip Hazel <[EMAIL PROTECTED]> wrote:
> On Mon, 5 Sep 2005, typus vulgaris wrote:
>
> > Hi All.
> >
> > I have task with address rewriting.
> >
> > I have to rewrite address [EMAIL PROTECTED] to address [EMAIL PROTECTED]
> > but only
> > in case if the message sent to third.dom.
> >
> > I suppose that it has to de rule like this:
> >
> > [EMAIL PROTECTED] "${if eq {$domain}{third.dom} \
> > [EMAIL PROTECTED]" Ff
> >
> > But it doesn't work :-(
> >
> > Where is my mistake?
>
> 1. In a rewrite rule, $domain will have the value "first.dom", the
> domain that is being rewritten.
>
> 2. A message may have more than one recipient. What do you want to do in
> that case? If you want to rewrite on the copy that goes to third.com,
> you will have to put the rewriting on the transport, not as a general
> rewrite.
>
>
>
> --
> Philip Hazel University of Cambridge Computing Service,
> [EMAIL PROTECTED] Cambridge, England. Phone: +44 1223 334714.
> Get the Exim 4 book: http://www.uit.co.uk/exim-book
>
--
## 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/