On 14/07/2022 18:59, Sam via Exim-users wrote:
I wish to use a "condition ="  for my router section which should evaluate to 
true if either of $sender_address_domain or $original_domain exist in the file 
/etc/mydomains.

If the domains are one-per-line in that file:

${if or { \
 {bool {${lookup {$sender_address_domain} lsearch (/etc/mydomains} {true} }} \
 {bool {${lookup {$original_domain}       lsearch (/etc/mydomains} {true} }} \
}}

--
Cheers,
  Jeremy

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to