acl_smtp_data condition

Jim Pazarena via Exim-users <[email protected]> Mon, 8 Jun 2026 14:45:59 -0700
Newsgroups gmane.mail.exim.user
Message-ID <[email protected]>
I would much appreciate some advice in what I am doing wrong.

There is something I am not understanding in the "condition if match" 
syntax.

I want to compare the From: content against a list of email address 
which I store in a flat text file named me.senders

Here is my condition:
  condition = ${if match {${address:$header_From}} 
{lsearch;ETCDIR/me.senders}}

here is the logged error message:
  temporarily rejected after DATA: failed to expand ACL string
  "${if match {${address:$header_From}} 
{lsearch;/u/exim/etc/me.senders}}": missing 2nd string in {} after "match"

does the "second string" refer to the lsearch; ?


-- 
Jim Pazarena         [email protected]
Nanaimo - British Columbia - Canada


-- 
## 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 https://www.exim.org/
## Please use the Wiki with this list - https://code.exim.org/exim/wiki/wiki