Re: [Exim] Router condition lookup: line-delimited file cont…

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: sheldonh
CC: exim-users
Subject: Re: [Exim] Router condition lookup: line-delimited file contains
Sheldon Hearn <sheldonh@???> wrote:
>
>Is there some foo I can do in a router condition that resolves to true
>if a line-delimited file contains some string? Something like
>
> condition = ${lookup{${local_part}@${domain}}XXX{/path/to/addrfile}{1}}
>
>where addrfile contains a line-delimited list of email addresses.


Have you tried

  condition = ${lookup {$local_part@$domain} lsearch{/path/to/file} \
                  {yes} {no} }


Tony.
--
f.a.n.finch <dot@???> http://dotat.at/
NORTH FORELAND TO SELSEY BILL: SOUTH 2 OR 3 GRADUALLY BACKING EAST, LATER
INCREASING 3 OR 4. RISK OF MIST PATCHES EARLY AND LATER. MODERATE OR GOOD, BUT
POOR IN MIST. SLIGHT.