Autor: Marilyn Davis
Data:
Dla: exim-users
Temat: [exim] domainlist question
Hi again,
Is there a way to inspect a domainlist other than in a domains
precondition?
To save a lookup, I'd like to make a call like:
$readsocket{SOCKET_NAME}{... IS_DOMAIN_LOCAL ...}}
where:
IS_DOMAIN_LOCAL = ${if match{local_domains}{$domain}{yes}{no}}
but, on expansion, this looks like:
expanding: local_domains
result: local_domains
expanding: $domain
result: send2cbd.com
condition: match{local_domains}{$domain}
result: false
Yes, local_domains has been defined as a domainlist and works as it
should in a domains precondition, expanding to:
result: @ : localhost : 127.0.0.1 : send2cbd.com
I know I can do this by using 2 routers and hard-coding 'yes' or 'no',
but it seems so inelegant.
Thanks for any ideas.
Marilyn Davis
--