Re: [EXIM] mail priority

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Daniel ANDRE
Υ/ο: EXIM users list
Αντικείμενο: Re: [EXIM] mail priority
On Fri, 8 Jan 1999, Daniel ANDRE wrote:

> I don't use queue_remote
>
> > If you are letting it examine the addresses and just fail when the link
> > is down, then you could perhaps use the embedded Perl feature of Exim
> > 2.10 to run a command to establish the link, via a "condition" option on
> > an appropriate router that runs the Perl if the priority is high.
>
> Is there an alternative to Perl embedded?My system is able to bring the link
> up on events such as DNS lookup, external address pinging, ...


Off the top of my head ... you could set up a condition that examined
the priority, and if it was high, did an arbitrary DNS lookup using the
dnsdb (see 6.2) lookup method (for something on your local nameserver,
so it is cheap) and then allowed the router to proceed. It wouldn't
matter whether the lookup succeeded or failed. Something along
the lines of

  condition = "${if eq{$h_priority:}{high}\
              {${lookup dnsdb{some.domain}{yes}{yes}}}\
              {no}}"


I haven't tried this - well, not having the kind of system you have, I
*can't* try this. :-)

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***