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-27 by shuttlebox

On 11/27/06, eclark <eclark@...> wrote:
> Im with the rest here re use of sockets and the like eating up your limit.
>  Frankly, I think 256 is a bit low for this user, and would probably set it to
>  512 or 1024. It isnt a generic user after all, and has to support up to ~260
>  descriptors open at once.

I tried lsof on the greylist process and counted 268 lines in the
output. I use a 4 second greet pause delay and that means more open
connections with Sendmail and it seems as if the milter is involved in
all those open connections even if most are probably just idling for 4
seconds. I'm not saying that is wrong or anything but in my case it
means I use up a lot of file descriptors.

How can I get it to use more? It doesn't seem to bother with my
inserted ulimit command in the init.d script. Can I check what the
running process uses? This is the start section of my init.d script,
basically what is included with milter-greylist and I added the ulimit
command.

        # Start daemon.
        echo "Starting milter-greylist: ... \c"
        chown $user $mildir
        /usr/bin/ulimit -n 4096
        $binpath/milter-greylist $OPTIONS
        echo "done."
        ;;

I also ran truss on the process and it complains about too many open
files of course but I have a hard time evaluating the output. Any
pointers what to look for?

-- 
/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.