From b@scrooge.etek.chalmers.se  Fri Aug  9 05:48:48 2002
Return-Path: <b@scrooge.etek.chalmers.se>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B990937B400
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  9 Aug 2002 05:48:48 -0700 (PDT)
Received: from scrooge.etek.chalmers.se (scrooge.etek.chalmers.se [129.16.32.112])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E20BA43E6E
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  9 Aug 2002 05:48:47 -0700 (PDT)
	(envelope-from b@scrooge.etek.chalmers.se)
Received: from scrooge.etek.chalmers.se (b@localhost [127.0.0.1])
	by scrooge.etek.chalmers.se (8.12.3/8.12.3) with ESMTP id g79CmkNR006894
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 9 Aug 2002 14:48:46 +0200 (CEST)
	(envelope-from b@scrooge.etek.chalmers.se)
Received: (from b@localhost)
	by scrooge.etek.chalmers.se (8.12.3/8.12.3/Submit) id g79CmkeB006893;
	Fri, 9 Aug 2002 14:48:46 +0200 (CEST)
Message-Id: <200208091248.g79CmkeB006893@scrooge.etek.chalmers.se>
Date: Fri, 9 Aug 2002 14:48:46 +0200 (CEST)
From: Magnus B{ckstr|m <b@etek.chalmers.se>
Reply-To: Magnus B{ckstr|m <b@etek.chalmers.se>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: PATCH: Disable sendmail default load-average limit.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41477
>Category:       conf
>Synopsis:       PATCH: Disable sendmail default load-average limit.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 09 05:50:10 PDT 2002
>Closed-Date:    Thu Aug 15 03:10:48 PDT 2002
>Last-Modified:  Thu Aug 15 03:10:48 PDT 2002
>Originator:     Magnus B{ckstr|m
>Release:        FreeBSD 4.x and -CURRENT.
>Organization:
Me.
>Environment:
System: FreeBSD scrooge.etek.chalmers.se 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Fri Jul 12 11:58:41 CEST 2002 b@j0.etek.chalmers.se:/usr/src-4.6/src/sys/compile/CPTIME_P4 i386

>Description:
I'm arguing that the load-average checking done by sendmail is obsolete
now.  (It's easy enough to configure back in if needed, and makes for
`mysterious' failures if present as is.)

>How-To-Repeat:
 1. Try to send mail from a machine that has a constant load-average above
    eight.
 2. Wait.
 3. Wonder why your mail never reaches recipient.
 4. Discover source of problem.
 5. Curse historical reasons.
 6. Decide that load-average checking is obsolete.

>Fix:
--- etc/sendmail/freebsd.mc.ORIG	Tue Jun 11 14:00:26 2002
+++ etc/sendmail/freebsd.mc	Fri Aug  9 15:20:35 2002
@@ -88,5 +88,14 @@
 define(`confMAX_MIME_HEADER_LENGTH', `256/128')
 define(`confNO_RCPT_ACTION', `add-to-undisclosed')
 define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
+
+dnl Disable the load-average limitation.
+dnl loadavg-based queueing/refusing of messages is practically obsolete
+dnl with modern computer hardware.  If you do need it, such as if a
+dnl significant amount of processing is done for each message, set the
+dnl below limits to reasonable load-average values (8 and 12 respectively
+dnl are the defaults).
+define(`confQUEUE_LA', `2000000')
+define(`confREFUSE_LA', `3000000')
 MAILER(local)
 MAILER(smtp)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Thu Aug 15 03:10:03 PDT 2002 
State-Changed-Why:  
Closed at the submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41477 
>Unformatted:
