Re: [Exim] Conditional router

Top Pagina
Delete this message
Reply to this message
Auteur: Steve Karlsen
Datum:  
Aan: dwmw2
CC: exim-users
Onderwerp: Re: [Exim] Conditional router
David,

That's excellent, many thanks for yr help, much appreciated.

Steve


>From: David Woodhouse <dwmw2@???>
>To: Steve Karlsen <steve_karlsen@???>
>CC: exim-users@???
>Subject: Re: [Exim] Conditional router
>Date: Wed, 25 Feb 2004 12:38:15 +0000
>
>On Wed, 2004-02-25 at 07:21 +0000, Steve Karlsen wrote:
> > My questions are :
> >
> > a)    can I pick out this rather specialist header X-mms-message-ID: with
>the
> > header_ option?

>
>Yes. $h_x-mms-message-id: should give it to you.
>
> > b)    There are two To: headers in the message, one qualified (in the
> > envelope) and one in the body, which is unqualified, which one gets
>picked
> > up by the header_to option, or do they both, that then leaves me with a
> > problem

>
>No. There is one To: header in the message. Its contents are given to
>you by $h_to:
>
>Do not look at the To: header for its contents are not of interest to
>you. You should look at the contents of the envelope. The address is
>available, at routing time, in $local_part and $domain.
>
> > c)    The fail option at the end of the match, I take it, is a forced fail
>if
> > the condition fails, which will then move it to the next router?

>
>I believe so, but a simple '{0}' instead of your 'fail' will suffice to
>make the condition succeed, but be untrue, which will _also_ move it to
>the next router.
>
>It sounds like you probably want something like:
>
>mms_redirect:
> domains = certain.domain
> condition = ${if match {$h_X-MMS-Message-Id}{^.*@???} {1}}
> driver = manualroute
> transport = remote_smtp
> route_data = certain.mailgate
>
>
>
>--
>dwmw2
>
>
>--
>
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
>details at http://www.exim.org/ ##
>


_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger