Re: [Mimedefang] greylisting DB_File locking

2004-04-28 Thread Andrea Gabellini
I saw the same error few month ago. I changed the locking mechanism using: use DB_File::Lock; use Fcntl qw(:flock O_RDWR O_CREAT); and opening the DB with the command: $db = tie %GDB, 'DB_File::Lock', $DBFilename, O_CREAT|O_RDWR, undef, $DB_HASH, 'write'; Andrea At 20.21 27/04/2004, you

Re: [Mimedefang] greylisting DB_File locking

2004-04-28 Thread -ray
Andrea, Thanks for the info. I switched to DB_File::Lock and things seem to be running fine. How many records are in your greylistdb? I accumulated a little over 38,000 in the past 12 hours, and i'm wondering if i'm stretching the limitations of the DB_File format. ray

DB File limits (was Re: [Mimedefang] greylisting DB_File locking)

2004-04-28 Thread David F. Skoll
On Wed, 28 Apr 2004, -ray wrote: I accumulated a little over 38,000 in the past 12 hours, and i'm wondering if i'm stretching the limitations of the DB_File format. A DB_File should handle millions of entries without a hiccup. Regards, David. ___

[Mimedefang] greylisting DB_File locking

2004-04-27 Thread -ray
All, I turned on greylisting last night, based on the code posted by Steve Rocha (which was based on Jonas's code i think). Things were fine until the db reached about 3300 records. Then it would not accept any new keys, the inserts just silently fail. I turned off greylisting and verified