Re: [Exim] Conditional router

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: David Woodhouse
Ημερομηνία:  
Προς: Steve Karlsen
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Conditional router
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