Re: [exim] Exim lsearch lookup in multiple files at the same time

2017-04-19 Thread Mike Brudenell via Exim-users
Hi, Rustam - Can I check your setup? Is it that: - You have a number of files, one per domain — /etc/exim/d1.example.com /etc/exim/d2.example.com /etc/exim/d3.example.com and so on - You want to look up the $sender_address to find the value for *client_send* to use Is there a

Re: [exim] Exim lsearch lookup in multiple files at the same time

2017-04-19 Thread Jasen Betts
On 2017-04-18, Jeremy Harris wrote: > On 18/04/17 19:36, Rustam via Exim-users wrote: >> So my proposal is to allow a* list of files* as an argument to lsearch. Of >> if there is an easier solution, I'm open to suggestions. > > Wrap the lookup in one of the list-handling

Re: [exim] Exim lsearch lookup in multiple files at the same time

2017-04-18 Thread Jeremy Harris
On 18/04/17 19:36, Rustam via Exim-users wrote: > So my proposal is to allow a* list of files* as an argument to lsearch. Of > if there is an easier solution, I'm open to suggestions. Wrap the lookup in one of the list-handling expansion items - reduce or map, probably. The problem will be

[exim] Exim lsearch lookup in multiple files at the same time

2017-04-18 Thread Rustam via Exim-users
I often need to have exim do a lookup in multiple files at the same time. For example, to send a plain auth based on per-domain data: PLAIN: driver = plaintext client_send = ${lookup{$sender_address}lsearch{/etc/exim/domain1}} The way I solve it for now is to wrap a subsequent lookup into