Re: [exim] User filters with file lookups in file from domai…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy Harris
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] User filters with file lookups in file from domain
On 02/01/2023 11:52, Chris Emerson via Exim-users wrote:
> A "dsearch with default on fail"
> would help.


${lookup {$original_domain-bounce} dsearch,ret=full \
    {$home/.mail/alias} \
    {$home/.mail/alias/default-bounce} \
  }


> Am I missing some better way to do this?


If this is being done for all of your users,
or for some large class, you could move the
processing into your mainline config rather
than needing a filter?

Or, you could set up a suitable variable
with this lookup result, done once in the
mainline config, for use by the filter.
You said "user filter" so presumably this
is being called by a redirect router; if
so then a $r_<foo> variable created by a
"set" option on that router seems ideal.
--
Cheers,
Jeremy