Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] Frequent crashes when dumping db

2006-11-24 by Oliver Fromme

shuttlebox wrote:
 > 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

There's your problen:  "Too many open files".
You need to increase the limit on file descriptors.
(The exact way to do that depends on your OS and shell.)

Most shells have a "ulimit" or "limit" built-in command,
some systems also have /usr/bin/limits (see the manual
pages).  They can be used to lift the soft limit on
file descriptors, among other things.

If you need to increase the hard limit of your OS, well,
that's OS-dependant.  For example, FreeBSD has a sysctl
variable (kern.maxfiles and kern.maxfilesperproc), and
the limits can be tuned per login-class in /etc/login.conf
(for system daemons like milter-greylist the login class
would be "daemon", unless a different one is created.)

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

'Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.'

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.