Re: [exim] Exim 4.94 - error linear search

Top Page
Delete this message
Reply to this message
Author: Mikhail Golub
Date:  
To: exim-users
Subject: Re: [exim] Exim 4.94 - error linear search
In config it second router.

######################################################################
#                      ROUTERS CONFIGURATION                         #
#            Specifies how remote addresses are handled              #
######################################################################


autoreply_hr***:
...
unseen

# SRS
forwarding_router:
domains = +virtual_domains
require_files = EXIMDIR/domains/$domain_data
driver = redirect
srs = forward
data = ${lookup{$local_part_data}lsearch*{EXIMDIR/domains/$domain_data}}
allow_fail




./exim -C /usr/local/etc/exim/configure-494 -d+all -bt test@???

14:02:18 58064 --------> forwarding_router router <--------
14:02:18 58064 local_part=test domain=domain.com
14:02:18 58064 checking domains
14:02:18 58064 domain.com in "mx.mydomain :
/usr/local/etc/exim/acl/virtual_domains"? yes (matched "domain.com" in
/usr/local/etc/exim/acl/virtual_domains)
14:02:18 58064 data from lookup saved for cache for +virtual_domains:
key 'domain.com' value ''
14:02:18 58064 domain.com in "+virtual_domains"? yes (matched
"+virtual_domains")
14:02:18 58064 checking require_files
14:02:18 58064 ╭considering: /usr/local/etc/exim/domains/$domain_data
14:02:18 58064 ├──expanding: /usr/local/etc/exim/domains/$domain_data
14:02:18 58064 ╰─────result: /usr/local/etc/exim/domains/
14:02:18 58064 file check: /usr/local/etc/exim/domains/$domain_data
14:02:18 58064 expanded file: /usr/local/etc/exim/domains/
14:02:18 58064 stat() yielded 0
14:02:18 58064 calling forwarding_router router
14:02:18 58064 SRS initialized
14:02:18 58064 SRS (forward): Sender 'root@???' rewritten to
'SRS0=f5aPM=7W=mx.mydomain=root@???'
14:02:18 58064 rda_interpret (string):
'${lookup{$local_part_data}lsearch*{/usr/local/etc/exim/domains/$domain_data}}'
14:02:18 58064 ╭considering:
${lookup{$local_part_data}lsearch*{/usr/local/etc/exim/domains/$domain_data}}
14:02:18 58064 ╭considering:
$local_part_data}lsearch*{/usr/local/etc/exim/domains/$domain_data}}
14:02:18 58064 ├──expanding: $local_part_data
14:02:18 58064 ╰─────result:
14:02:18 58064 ╭considering: /usr/local/etc/exim/domains/$domain_data}}
14:02:18 58064 ├──expanding: /usr/local/etc/exim/domains/$domain_data
14:02:18 58064 ╰─────result: /usr/local/etc/exim/domains/M
14:02:18 58064 search_open: lsearch "/usr/local/etc/exim/domains/M"
14:02:18 58064 ├failed to expand:
${lookup{$local_part_data}lsearch*{/usr/local/etc/exim/domains/$domain_data}}
14:02:18 58064 ╰───error message: failed to open
/usr/local/etc/exim/domains/M for linear search: No such file or directory
14:02:18 58064 forwarding_router router: defer for test@???
14:02:18 58064 message: failed to expand
"${lookup{$local_part_data}lsearch*{/usr/local/etc/exim/domains/$domain_data}}":
failed to open /usr/local/etc/exim/domains/M for linear search: No such
file or directory
test@??? cannot be resolved at this time: failed to expand
"${lookup{$local_part_data}lsearch*{/usr/local/etc/exim/domains/$domain_data}}":
failed to open /usr/local/etc/exim/domains/M for linear search: No such
file or directory



09.06.2020 13:45, Jeremy Harris via Exim-users пишет:
> On 09/06/2020 11:24, Mikhail Golub via Exim-users wrote:
>> forwarding_router:
>>   domains = +virtual_domains
>>   require_files = EXIMDIR/domains/$domain_data
>>   driver = redirect
>>   srs = forward
>>   data = ${lookup{$local_part_data}lsearch*{EXIMDIR/domains/$domain_data}}
>>   allow_fail
>>
>> After run:
>> ./exim -C /usr/local/etc/exim/configure-494 -d-all+route -bt test_address
>> I get:
>> message: failed to expand
>> "${lookup{$local_part_data}lsearch*{/usr/local/etc/exim/domains/$domain_data}}":
>> failed to open /usr/local/etc/exim/domains/M for linear search: No such
>> file or directory
>
> Looks like the data returned by your successful lookup using
> the "virtual_domains" list, which you didn't show us, returns "M".
>
> However, the require_files should have meant the lookup
> was not reached - so perhaps something else happened.
> Please give the full debug output (-d+all) from the start of
> routing.
>