From owner-freebsd-isp@FreeBSD.ORG Tue Nov 25 12:48:27 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 45DD616A4CF for ; Tue, 25 Nov 2003 12:48:27 -0800 (PST) Received: from bilver.wjv.com (user38.net339.fl.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4589643FDF for ; Tue, 25 Nov 2003 12:48:24 -0800 (PST) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by bilver.wjv.com (8.12.10/8.12.10) with ESMTP id hAPKmMm7007195 for ; Tue, 25 Nov 2003 15:48:22 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.10/8.12.10/Submit) id hAPKmMu5007194 for freebsd-isp@freebsd.org; Tue, 25 Nov 2003 15:48:22 -0500 (EST) (envelope-from bv) Date: Tue, 25 Nov 2003 15:48:22 -0500 From: Bill Vermillion To: freebsd-isp@freebsd.org Message-ID: <20031125204822.GD6772@wjv.com> References: <3FC395B3.C59E4AC3@tcworks.net> <20031125175601.GA4988@wjv.com> <67773D2B-1F75-11D8-B94F-003065ABFD92@mac.com> <20031126055846.X17841@hewey.af.speednet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on bilver.wjv.com Subject: Re: start multiple sendmail daemons from rc.conf? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2003 20:48:27 -0000 On Tue, Nov 25, 2003 at 12:20 Doug Hardie said 'Who you talkin' to? You talkin' to Doug Hardie? I didn't do nuttin'. I said: > > On Nov 25, 2003, at 12:07, Andy Farkas wrote: > > >Charles Swiger wrote: > >>On the other hand, too many sendmail processes can thrash the > >>system... > >You mean "can TRASH the system..."! > >I hate sendmail: > >Nov 21 10:43:11 hewey sm-mta[71861]: hAL0h3UQ071861: > >delaying=EHLO, load average=5 >= 2 > >Nov 21 10:43:11 hewey sm-mta[71850]: hAL0gdUQ071850: > >from=, size=1991,... > >Nov 21 10:43:12 hewey sm-mta[78325]: rejecting > >connections on daemon MTA: load average: 5 > >Nov 21 10:43:12 hewey sm-mta[78325]: rejecting > >connections on daemon MSA: load average: 5 > >Nov 21 10:43:14 hewey sm-mta[71848]: hAL0gcUQ071848: > >from=, size=3265,... > >Nov 21 10:43:18 hewey sm-mta[71861]: hAL0h3UQ071861: > >from=, size=5435,... > >Nov 21 10:43:21 hewey /kernel: swap_pager: out of swap > >space > >Nov 21 10:43:21 hewey /kernel: swap_pager_getswapspace: > >failed > >Nov 21 10:43:22 hewey /kernel: pid 215 (mysqld), uid 88, > >was killed: out of swap space > >Nov 21 10:43:22 hewey last message repeated 5 times > >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 left sendmail as I had problems with it and moved to smail. But along about 1993 or 94 I moved back to sendmail and have not regretted it. I've used it as two ISP - though not large ones and both were commercial accounts only - and it's never failed me. Bill -- Bill Vermillion - bv @ wjv . com