From owner-freebsd-isp@FreeBSD.ORG Tue Nov 25 16:08:14 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D663316A4CE for ; Tue, 25 Nov 2003 16:08:14 -0800 (PST) Received: from mail.tcworks.net (mail.tcworks.net [216.61.218.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4889043FBF for ; Tue, 25 Nov 2003 16:08:13 -0800 (PST) (envelope-from ccook@tcworks.net) Received: from tcworks.net (stp.tcworks.net [65.66.76.7]) by mail.tcworks.net (8.12.6/8.12.6) with ESMTP id hAPNx63S042058; Tue, 25 Nov 2003 17:59:06 -0600 (CST) Sender: xcess@mail.tcworks.net Message-ID: <3FC3EF9D.E198BDBC@tcworks.net> Date: Tue, 25 Nov 2003 18:11:09 -0600 From: Chris Cook X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Andy Farkas References: <3FC395B3.C59E4AC3@tcworks.net> <20031125175601.GA4988@wjv.com> <20031126055846.X17841@hewey.af.speednet.com.au> <20031126070221.R17841@hewey.af.speednet.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-RAVMilter-Version: 8.4.1(snapshot 20020920) (mail.tcworks.net) X-Spam-Status: No, hits=0.0 required=7.0 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on mail.tcworks.net cc: freebsd-isp@freebsd.org Subject: Re: start multiple sendmail daemons from rc.conf? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 00:08:15 -0000 Hey Guys... any ideas on my original post that started the thread? :) Any way to start multiple sendmail daemons using different configs from rc.conf? :) Thanks, Chris Andy Farkas wrote: > > Bill Vermillion wrote: > > > > >So even though sendmail says it is rejecting connections > > > >(twice!), it then goes and accepts two more! Grrr. > > > > Well it's sort of hard to let the far systems know they shouldn't > > be sending any. If you look at the config file you will see that > > when sendmail reaches a certain limit it will not accept any more > > connections. So your resources are too low [as noted in the other > > poster comment below] as you run out of resources before you hit > > the limit that is in Sendmail. [see your .cf file and you could > > set the load average where you just queue messages and the point > > where you reject messages lower] > > > > > Thrash is correct and it would appear it happening from the > > > messages above. Sendmail checks the load average each time a new > > > request is received. If the average is above the threshold it > > > puts out that message and doesn't handle the request. Obviously, > > > when PIDs 71848 and 71861 were started the load average was > > > below the threshold. Running out of swap space is never going to > > > be a good thing. You need more memory or more swap space. > > > > Unless he's modified the sendmail.cf for different load values > > and moved them too high, then he probably needs both more memory > > and more swap space. And of course more memory means you need to > > add more swap space. > > > > Until he gets more memory he can add swap space - man 8 swapon - > > but to blame sendmail for an under powered or mis-configured system > > is wrong. > > I know exactly what happened to my system. I was there watching it self > destruct. But the beauty of FreeBSD is its stability; the box is still > running and hasn't even been rebooted. > > Yep, it needs more RAM and more swap. But that aint gonna happen :) > > Some background on my setup: sendmail, procmail, bogofilter, and > amavis/uvscan. sendmail receives a message, sends it to amavis which > spawns a uvscan, then procmail bogofilters it. Works well, but is rather > resource intensive (and as you've noticed, this box is under-resourced). > > If I disconnect from the 'Net for a few hours, mail gets queued upstream, > and when I reconnect, vast quantities of email come in all at once > spawning hundreds of processes. (the poo hits the fan at around 300 procs) > > My sendmail.cf has this in it: > > O QueueLA=3 > O RefuseLA=4 > O DelayLA=2 > O MaxDaemonChildren=16 > O ConnectionRateThrottle=3 > > but the situation can still occur :) > > -- > > :{ andyf@speednet.com.au > > Andy Farkas > System Administrator > Speednet Communications > http://www.speednet.com.au/ > > _______________________________________________ > freebsd-isp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isp > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org" -- Chris o----< ccook@tcworks.net >------------------------------------o |Chris Cook - Admin |TCWORKS.NET - http://www.tcworks.net | |The Computer Works ISP |FreeBSD - http://www.freebsd.org | o-------------------------------------------------------------o