Re: [Exim] Exim 4.24 lsearch lookup problems

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: listuser
CC: exim-users
Sujet: Re: [Exim] Exim 4.24 lsearch lookup problems
"Michael Ludwig" <listuser@???> wrote:
>
>In a router condition, I made the following statement:
>
>outgoing_smtp_router_dnslookup_without_disclaimer:
>  driver = dnslookup
>  domains = ! +local_domains
>  condition = ${if eq {$sender_address}{${lookup \
>                      {$sender_address}lsearch \
>                      {/etc/exim/senders_without_disclaimer}}} \
>                      {ye}{no}}
>  transport = smtp_dnslookup_without_disclaimer


try condition = ${lookup {$sender_address}lsearch{/etc/exim/senders_without_disclaimer}
                  {yes} {no} }


>12:40:59 3823 search_open: lsearch "/etc/exim/senders_without_disclaimer"
>12:40:59 3823 cached open
>12:40:59 3823 search_find: file="/etc/exim/senders_without_disclaimer"
>12:40:59 3823 key="listuser@???" partial=-1 affix=NULL starflags=0
>12:40:59 3823 LRU list:
>12:40:59 3823 9/etc/exim/senders_without_disclaimer
>12:40:59 3823 End
>12:40:59 3823 internal_search_find: file="/etc/exim/senders_without_disclaimer"
>12:40:59 3823 type=lsearch key="listuser@???"
>12:40:59 3823 cached data used for lookup of listuser@???
>12:40:59 3823 in /etc/exim/senders_without_disclaimer
>12:40:59 3823 lookup yielded:


Note that the result of the lookup is empty.

Tony.
--
f.a.n.finch <dot@???> http://dotat.at/
ST DAVIDS HEAD TO COLWYN BAY, INCLUDING ST GEORGES CHANNEL: NORTHEAST
GRADUALLY BACKING NORTH 6 TO GALE 8, LATER BACKING NORTHWEST TO NORTH 5 OR 6.
CLOUDY, PERIOD RAIN, HEAVY AT TIMES, DRY, FAIR LATER. MODERATE BECOMING GOOD.
ROUGH LATER DECREASING MODERATE.