Re: [exim] Target host lookups on redirect routers

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tony Finch
Ημερομηνία:  
Προς: Edward St Pierre
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Target host lookups on redirect routers
On Fri, 25 Feb 2005, Edward St Pierre wrote:
>
> I was wondering if it is posible to do a target host lookup in redirect
> routers. Similar to the domain lookups etc.


I'm not sure exactly what you are trying to do, so the following might not
be useful.

You could try using the ignore_target_hosts feature with a dnslookup
router to cause the router to decline if all of the MX hosts are on the
list. Then a subsequent router can deal with the address in a different
way.

Recent versions of Exim are better at handling multiple lookups in a dnsdb
query. For example, the following creates a | separated list consisting of
all the IP addresses of the MXs of the domain. However there isn't yet a
match_host expansion condition so doing anything with this list in a
router is not very easy. You can be perverse and use match_domain so long
as you are happy putting only single IP addresses in the list and using
regexes for anything more complicated.

    <|${lookup dnsdb {>|a=<|\
      ${lookup dnsdb {>|mxh=\
                      $domain} }} }


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}