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

Top Pagina
Delete this message
Reply to this message
Auteur: Jeremy Harris
Datum:  
Aan: exim-users
Onderwerp: 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