Re: [exim] Exim 4.94.0.4 works where Exim 4.94 fails with ta…

Página Inicial
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
Para: exim-users
Assunto: Re: [exim] Exim 4.94.0.4 works where Exim 4.94 fails with tainted path 'not permitted'
On 07/11/2020 23:30, Michael Haardt via Exim-users wrote:
> Previously, a single lookup that checked both local part and domain to
> let the router match was popular. Now that's fighting against the design.
>
> Use two lookups, one for local_parts and one for domains, even if both
> perform the same lookup, to set $local_part_data and $domain_data as
> side effect, and things are easy from there.


That's the clean way. It is possible to finesse a single DB lookup,
if you are concerned by lookup costs: use the address_data option
with a lookup returning multiple columns on success and a forced-fail
otherwise (causes the router to decline). Then $address_data will
get a key=value list with column names as keys; you can pull single
items out using ${extract }.

This assumes only zero or one row returns.
--
Cheers,
Jeremy