From owner-freebsd-stable Mon Mar 25 15: 3: 4 2002 Delivered-To: freebsd-stable@freebsd.org Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by hub.freebsd.org (Postfix) with ESMTP id 09E7D37B426 for ; Mon, 25 Mar 2002 15:02:03 -0800 (PST) Received: from horsey.gshapiro.net (gshapiro@localhost [IPv6:::1]) by horsey.gshapiro.net (8.12.3.Beta2/8.12.3.Beta2) with ESMTP id g2PN20Gd070612 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 25 Mar 2002 15:02:00 -0800 (PST) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.3.Beta2/8.12.3.Beta2/Submit) id g2PN1xdk070588; Mon, 25 Mar 2002 15:01:59 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15519.44135.77218.536123@horsey.gshapiro.net> Date: Mon, 25 Mar 2002 15:01:59 -0800 From: Gregory Neil Shapiro To: thomas@cuivre.fr.eu.org Cc: Craig Boston , stable@FreeBSD.ORG Subject: Re: HEADS UP: Expect buildworld instability (sendmail 8.12.2 MFC) In-Reply-To: <20020325235205.A78568@melusine.cuivre.fr.eu.org> References: <15519.37768.192688.770945@horsey.gshapiro.net> <3C9F9C81.10203@meoqu.gank.org> <15519.41048.709126.956805@horsey.gshapiro.net> <20020325231720.B75467@melusine.cuivre.fr.eu.org> <15519.41563.608637.748981@horsey.gshapiro.net> <20020325232633.D75467@melusine.cuivre.fr.eu.org> <15519.42443.783285.129952@horsey.gshapiro.net> <20020325235205.A78568@melusine.cuivre.fr.eu.org> X-Mailer: VM 7.00 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG thomas> What is unfortunate is not the name of the variable per se, but the thomas> fact that with the introduction of 8.12, the name has become out of thomas> synch with the functionality. Here is a proposed solution: Index: etc/rc =================================================================== RCS file: /home/ncvs/src/etc/rc,v retrieving revision 1.305 diff -u -r1.305 rc --- etc/rc 25 Mar 2002 20:53:48 -0000 1.305 +++ etc/rc 25 Mar 2002 22:58:42 -0000 @@ -703,6 +703,8 @@ esac case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + ;; [Yy][Ee][Ss]) echo -n ' sendmail' /usr/sbin/sendmail ${sendmail_flags} & @@ -723,14 +725,20 @@ ;; esac -if [ -r /etc/mail/submit.cf ]; then - case ${sendmail_msp_queue_enable} in - [Yy][Ee][Ss]) - echo -n ' sendmail-clientmqueue' - /usr/sbin/sendmail ${sendmail_msp_queue_flags} - ;; - esac -fi +case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + ;; +*) + if [ -r /etc/mail/submit.cf ]; then + case ${sendmail_msp_queue_enable} in + [Yy][Ee][Ss]) + echo -n ' sendmail-clientmqueue' + /usr/sbin/sendmail ${sendmail_msp_queue_flags} + ;; + esac + fi + ;; +esac echo '.' Index: etc/defaults/rc.conf =================================================================== RCS file: /home/ncvs/src/etc/defaults/rc.conf,v retrieving revision 1.140 diff -u -r1.140 rc.conf --- etc/defaults/rc.conf 12 Mar 2002 21:47:31 -0000 1.140 +++ etc/defaults/rc.conf 25 Mar 2002 22:59:10 -0000 @@ -335,7 +335,8 @@ lpd_flags="" # Flags to lpd (if enabled). usbd_enable="NO" # Run the usbd daemon. usbd_flags="" # Flags to usbd (if enabled). -sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO). +sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO/NONE). + # If NONE, don't start any sendmail processes. sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server) sendmail_outbound_enable="YES" # Dequeue stuck mail (YES/NO). sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound only) Index: share/man/man5/rc.conf.5 =================================================================== RCS file: /home/ncvs/src/share/man/man5/rc.conf.5,v retrieving revision 1.157 diff -u -r1.157 rc.conf.5 --- share/man/man5/rc.conf.5 17 Mar 2002 14:52:54 -0000 1.157 +++ share/man/man5/rc.conf.5 25 Mar 2002 23:00:00 -0000 @@ -1717,12 +1717,17 @@ .Xr lpd 8 daemon. .It Va sendmail_enable -.Pq Vt bool +.Pq Vt str If set to .Dq Li YES , run the .Xr sendmail 8 daemon at system boot time. +If set to +.Dq Li NONE , +do not run any +.Xr sendmail 8 +processes at system boot time. .It Va sendmail_flags .Pq Vt str If To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message