Re: Rebuilding SpamProbe database
Thomas Schürger <[email protected]> Wed, 15 Oct 2008 09:22:08 +0200
| Newsgroups | gmane.mail.spam.spamprobe.general |
|---|---|
| Message-ID | <[email protected]> |
> I use SpamProbe with BerkeleyDB, but with mbox files, not the > scheme used by qmail, so this may not be relevant. The script > I use - also based on a readme.txt from some years ago - is: > > #!/bin/sh > if [ -e ~/.spamprobe/sp_words ];then > cd .spamprobe > cp sp_words sp_words.old > /opt/local/bin/spamprobe cleanup 3 17 1024 365 > /usr/local/BerkeleyDB.4.7/bin/db_dump sp_words|/usr/local/BerkeleyDB.4.7/bin/db_load sp_words.new > mv sp_words.new sp_words > fi > > I have never noticed any problems. > qmail uses maildir instead of mbox, but that is not relevant here. It is not that the actual mail delivery fails or leads to corrupt mails, it is rather that SpamProbe/ BerkeleyDB hangs due to database problems and that blocks qmail's delivery threads one after the other. I'm not sure, but is it possible that SpamProbe or BerkeleyDB reopens the database file while it is running? If this is the case then moving the database file and providing another newly exported/imported file instead while SpamProbe is running may cause problems (think of reading the database from one file and then writing to another file due to reopening). Also, the SpamProbe lock file is moved so that a second instance of SpamProbe might run in parallel. I'm currently not using locks with procmail (as SpamProbe has locking itself), but using procmail locking will only prevent a second instance from running. Any thoughts? Greetings, Thomas. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/