ram wrote: > On Tue, 2009-01-06 at 09:57 -0500, Victor Duchovni wrote: >> On Tue, Jan 06, 2009 at 07:58:07PM +0530, ram wrote: >> >>> [r...@50.133 postfix]# postmap -q t...@netcore.co.in cdb:/etc/postfix/vmap >>> r...@netcore.co.in >>> [r...@50.133 postfix]# postmap -q t...@netcore.co.in cdb:/etc/postfix/vmap >>> [r...@50.133 postfix]# >> Well, that's not how CDB tables work here, looks someone helpfully >> modified your CDB driver or Postfix dictionary lookup interface. >> The results below are obtained from Wietse's Postfix 2.5.5 code: > > which CDB package ( rpm ? ) does this use > > I downloaded the package from > http://www.corpit.ru/mjt/tinycdb.html#download > > created & installed the rpm on a centos 5 box
If you want to produce case-sensitive and case-preserving map with postmap(1), use -f option that tells postmap to NOT fold keys into lowercase as it does by default. cdb(1) utility from the tinycdb package does no modifications to the data items you feeds it, hence it's always case-sensitive. But note that postfix internally almost always lowercases addresses before looking it up in various maps, to achieve case insensitivity of addresses, -- hence, if your map contains keys in UPPER case (as cdb(1) or postmap -f produces), postfix will most likely not find them. This is by design. /mjt