Re: [exim] Please help me with a Exim router condition

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Jeremy Harris
Data:  
Para: exim-users
Asunto: Re: [exim] Please help me with a Exim router condition
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