This is returning an error:
R=listserv T=listserv_transport defer (0) DT=0s: Expansion of "${lookup
{$local_part}.list dsearch, ret=key,filter=file {/opt/lsoft/listserv/home}
{${sg {$value}{.txt$}{}}}fail}" from command
"/opt/lsoft/listserv/bin/lsv_amin /opt/lsoft/listserv/spool "${lookup
{$local_part}.list dsearch, ret=key,filter=file {/opt/lsoft/listserv/home}
{${sg {$value}{\.txt$}{}}}fail}"" in listserv_transport transport failed:
missing lookup type
On Thu, Dec 11, 2025 at 3:30 PM Jeremy Harris via Exim-users <
[email protected]> wrote:
> On 2025/12/11 8:56 PM, Johnnie Adams via Exim-users wrote:
> > Is it possible to write a lookup for an [email protected] and
> > untaint the local part depending on a file foo.txt existing in a given
> > directory?
>
> You're making life difficult with that ".txt" element,
>
> Assuming you want this in a router,
> something along the lines of
>
> address_data = ${lookup {${local_part}.txt} \
> dsearch,ret=key,filter=file \
> {GIVEN_DIRECTORY} \
> {${sg {$value}{\.txt\$}{}}} \
> fail \
> }
>
> with the verified value arriving in $address_data ?
>
>
> Note that the address_data option is evaluated after the rest of the
> router preconditions, so you can't use it's result in the local_part
> option. So that "fail" is needed, to do the work of the local_part
> option test.
> --
> Cheers,
> Jeremy
>
> --
> ## subscription configuration (requires account):
> ##
> https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
> ## unsubscribe (doesn't require an account):
> ## [email protected]
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>
--
John Adams
Senior Linux/Middleware Administrator | Information Technology Services
+1-501-916-3010 | [email protected] | http://ualr.edu/itservices
*UA Little Rock*
Reminder: IT Services will never ask for your password over the phone or
in an email. Always be suspicious of requests for personal information that
come via email, even from known contacts. For more information or to
report suspicious email, visit IT Security
<http://ualr.edu/itservices/security/>.
--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/