[exim] Sporadic lsearch errors in 4.33

Pàgina inicial
Delete this message
Reply to this message
Autor: Eric Bullen
Data:  
A: exim-users
Assumpte: [exim] Sporadic lsearch errors in 4.33
Hi All,

I am at a total loss for this one, and have reached the end of what I can
troubleshoot. This is Exim v. 4.33. Here's what I know (and the problem):

1) I maintain a "addresslist" called "known_users" which is a lsearch of a
single column text file of everyone in my company.

2) I have a ACL that is this:

  deny    domains       = +local_domains
          recipients    = !+known_users


3) Problem: For most users, the acl works fine, however for other users
(seems to be the same ones), it ALWAYS fails. This happens w/o reloading
Exim, so it's working of the cached copy in memory. I opened up the text
file in Vi, and found no weird formatting issues (newline immediately
follows the email address).

4) I ran exim in debugging mode, and here's one section where it works,
and the next where it fails.

** FAILS **

10:05:44 20719 address match: subject=xx@???
pattern=lsearch;/etc/exim/user_list.txt
10:05:44 20719 ---0 Get 0x9c1f048    24       string.c  383
10:05:44 20719 search_open: lsearch "/etc/exim/user_list.txt"
10:05:44 20719   cached open
10:05:44 20719 search_find: file="/etc/exim/user_list.txt"
10:05:44 20719   key="xx@???" partial=-1 affix=NULL starflags=0
10:05:44 20719 LRU list:
10:05:44 20719   :/etc/exim/user_list.txt
10:05:44 20719   :/etc/aliases
10:05:44 20719   End
10:05:44 20719 internal_search_find: file="/etc/exim/user_list.txt"
10:05:44 20719   type=lsearch key="xx@???"
10:05:44 20719 file lookup required for xx@???
10:05:44 20719   in /etc/exim/user_list.txt
10:05:44 20719 ----Free 0x9c22e90             search.c  480
10:05:44 20719 ----Free 0x9c22ea8             search.c  481
10:05:44 20719 --Malloc 0x9c22ea8    19       search.c  500 24600 4908
10:05:44 20719 lookup failed
10:05:44 20719 xx@??? in "lsearch;/etc/exim/user_list.txt"? no (end of
list)
10:05:44 20719 xx@??? in "!+known_users"? yes (end of list)
10:05:44 20719 deny: condition test succeeded



** WORKS FINE HERE **

10:05:48 20773 address match: subject=zz@???
pattern=lsearch;/etc/exim/user_list.txt
10:05:48 20773 ---0 Get 0x9c1e340    24       string.c  383
10:05:48 20773 search_open: lsearch "/etc/exim/user_list.txt"
10:05:48 20773 --Malloc 0x9c22ef0    40       search.c  400 24600 4732
10:05:48 20773 --Malloc 0x9c22f20    24       search.c  401 24600 4756
10:05:48 20773 search_find: file="/etc/exim/user_list.txt"
10:05:48 20773   key="zz@???" partial=-1 affix=NULL starflags=0
10:05:48 20773 LRU list:
10:05:48 20773   :/etc/exim/user_list.txt
10:05:48 20773   End
10:05:48 20773 internal_search_find: file="/etc/exim/user_list.txt"
10:05:48 20773   type=lsearch key="zz@???"
10:05:48 20773 file lookup required for zz@???
10:05:48 20773   in /etc/exim/user_list.txt
10:05:48 20773 ---0 Get 0x9c1e358   104      lsearch.c  227
10:05:48 20773 --Malloc 0x9c22f40    20       search.c  500 24600 4776
10:05:48 20773 --Malloc 0x9c22f58    16       search.c  505 24600 4792
10:05:48 20773 lookup yielded:
10:05:48 20773 ---0 Get 0x9c1e3c0     8       string.c  345
10:05:48 20773 zz@??? in "lsearch;/etc/exim/user_list.txt"? yes
(matched "lsearch;/etc/exim/user_list.txt")
10:05:48 20773 zz@??? in "!+known_users"? no (matched "!+known_users")
10:05:48 20773 deny: condition test failed



Any help would be greatly appreciated.

-Eric