I am using Procmail with Bogofilter to handle my incoming mail. Bogofilter works by (1) opening a wordlist BDB file, (2) locking the file (fcntl() with F_SETLK, apparently), and (3) mumble mumble. Lately, this has been failing in step 2. I’m seeing errors in my procmail log like
From firstname.lastname@example.org Mon Jun 21 15:39:01 2004
Subject: (rooms & shares) 600 - Sunny Room in 4BR/1BA near Coolidge Corner (
Folder: /dev/null 2275
Can't open file 'wordlist.db' in directory '/home/iskunk/.bogofilter'.
error #37 - No locks available.
procmail: Program failure (3) of "/home/iskunk/bin/bogofilter"
procmail: Rescue of unfiltered data succeeded
From email@example.com Mon Jun 21 15:40:27 2004
Subject: (rooms & shares) 600 - JULY 1! Great room, Near Kendall (Cambridge
Folder: /home/iskunk/Maildir/new/1087857631.12053_3.plunder 1562
The machine seems to be running out of file locks. (Errno 37 corresponds to ENOLCK, “No record locks available.”)
I believe this may be a system configuration issue; is there a way to prevent this from coming up?