[Exim] lsearch -> cdb conversion problem

Startseite
Nachricht löschen
Nachricht beantworten
Autor: ODHIAMBO G. Washington
Datum:  
To: exim-users
Betreff: [Exim] lsearch -> cdb conversion problem

Friends,

I seem to have hit a problem when migrating my Exim configuration from lsearch
to cdb. I though this was working well until I realized that one router was
being skipped.


I have a router that uses procmail which has

local_parts         = lsearch;/usr/local/etc/exim/spamcheck_users


This router works okay with lsearch.


I have build cdb from this file , but when I change that line to

local_parts         = cdb;/usr/local/etc/exim/spamcheck_users.cdb


..then the lookup for any local part fails.


--------> procmail router <--------
local_part=wash domain=wananchi.com
checking local_parts
search_open: cdb "/usr/local/etc/exim/spamcheck_users.cdb"
search_find: file="/usr/local/etc/exim/spamcheck_users.cdb"
key="wash" partial=-1 affix=NULL starflags=0
LRU list:
0/usr/local/etc/exim/spamcheck_users.cdb
8/usr/local/etc/exim/message_sizes
8/etc/mail/aliases
8/etc/mail/dns_aliases
8/usr/local/etc/exim/virtual
End
internal_search_find: file="/usr/local/etc/exim/spamcheck_users.cdb"
type=cdb key="wash"
file lookup required for wash
in /usr/local/etc/exim/spamcheck_users.cdb
lookup failed
wash in "cdb;/usr/local/etc/exim/spamcheck_users.cdb"? no (end of list)
procmail router skipped: local_parts mismatch



Could it be that my method is goofed?
Apparently some files that I have converted to cdb are working well,
but now I am not sure. I've tested a few and saw correct delivery
tests.


I have a script that converts several of my files to cdb format which
does (for instance) - the perl command is all in one line!

spamcheck_users.cdb: spamcheck_users
        perl5 -e 'while(<>) { next if /^#/; $$_ =~ /(\S+)[ \t]+(\S+[ \t]+\S+)/; \
        print "+",length($$1),",",length($$2),":$$1->$$2\n"; } print "\n";' \
        ./spamcheck_users | /usr/local/bin/cdbmake \
        ./spamcheck_users.cdb ./spamcheck_users.tmp


It's an old file I've kept for ages.


Is anyone able to pick out where my dunderheadness comes into play?

Thanks


-Wash

--
Odhiambo Washington   <wash@???>  "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: +254 2 313985-9  +254 2 313922         so I installed FreeBSD."
GSM: +254 72 743223   +254 733 744121       This sig is McQ!  :-)



"This is a country where people are free to practice their religion,
regardless of race, creed, color, obesity, or number of dangling
keys ..."