Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Frequent crashes when dumping db

2006-11-24 by shuttlebox

I have been running milter-greylist 2.0.2 for a few months and I'm
very pleased with how it performs, it really eases the job for my
MailScanner servers. However, I've had a few restarts (I monitor the
milter via a cron job) every other day or so, no big deal and I tuned
the time to keep the tuples from 5d to 1d and that shrunk the db
considerably. The last few days though it has restarted like crazy
(10-20 times a day) and spam pours through. I upgraded yesterday to
3.0 but there's no difference in stability. Here's the log when it
crashes:

Nov 24 11:20:04 viola milter-greylist: [ID 653641 mail.error]
mkstemp("/var/milter-greylist/greylist.db-XX.caqCI") failed: Too many
open files
Nov 24 11:20:04 viola milter-greylist: [ID 421540 mail.info] Final
database dump: no change to dump
Nov 24 11:20:04 viola milter-greylist: [ID 649572 mail.info] Exiting

About the "Too many open files" - that file does not exist in the
/var/milter-greylist directory. The only files there are greylist.db,
milter-greylist.pid and milter-greylist.sock.

The frequent crashes of one peer (I have two) also gives me lots of these:

Nov 24 14:45:01 viola milter-greylist: [ID 615005 mail.error] cannot
sync with peer xxx.xxx.xxx.xxx: Too many open files (905 entries
queued)

or these:

Nov 24 03:35:23 viola milter-greylist: [ID 615005 mail.error] cannot
sync with peer xxx.xxx.xxx.xxx: Connection refused (46 entries queued)

-- 
/peter

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.