Re: restricting process limit
On Mon, Apr 26, 2004 at 06:44:35PM +0200, LeVA wrote:
>I have a 'spam' user, and I've set up postfix, to run a tiny little
>script as this 'spam' user. This script accepts messages thru the
>stdin, and it filters the message thru the spamd daemon with the spamc
>client. After the filtering, it sends the message using the
>'sendmail' (postfix's sendmail) program.
>
>So when I'm getting a large amount of messages there is approx. 15-20
>spamc/spamd running. I want to limit this to ~5.
I suspect if spamc invokes spamd but spamd reached its max-children then
spamc will act as if spamd timed out, or report ham.
So, I think your fix will be to limit the max incoming concurrency on
postfix, since that is really your problem. (can't help with details as
I don't run postfix.) With a lower incoming concurrency, mail will stay
queued on remote servers until they try again any your local box is not
too busy.
Regards,
// George
--
George Georgalis, Architect and administrator, Linux services. IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george@galis.org
Key fingerprint = 5415 2738 61CF 6AE1 E9A7 9EF0 0186 503B 9831 1631
Reply to: