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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: 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