From root@raggedclown.net  Sat Feb 16 05:34:15 2002
Return-Path: <root@raggedclown.net>
Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20])
	by hub.freebsd.org (Postfix) with ESMTP id 0CCFC37B41B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Feb 2002 05:34:14 -0800 (PST)
Received: from [212.238.194.207] (helo=mailhost.raggedclown.net)
	by post.mail.nl.demon.net with esmtp (Exim 3.33 #1)
	id 16c4yi-0002FN-00
	for FreeBSD-gnats-submit@freebsd.org; Sat, 16 Feb 2002 13:34:12 +0000
Received: from angel.raggedclown.net (angel.raggedclown.intra [192.168.1.7])
	by mailhost.raggedclown.net (Ragged Clown Mail Gateway [buffy]) with ESMTP id B1F3A13040
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Feb 2002 14:34:11 +0100 (CET)
Received: by angel.raggedclown.net (Ragged Clown Host [angel], from userid 0)
	id A2810225BC; Sat, 16 Feb 2002 14:34:11 +0100 (CET)
Message-Id: <20020216133411.A2810225BC@angel.raggedclown.net>
Date: Sat, 16 Feb 2002 14:34:11 +0100 (CET)
From: toor@angel <toor@raggedclown.net>
Reply-To: toor@angel <toor@raggedclown.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Inappropriate check for starting sendmail in /etc/rc
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         34993
>Category:       conf
>Synopsis:       Inappropriate check for starting sendmail in /etc/rc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cjc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 16 05:40:01 PST 2002
>Closed-Date:    Mon Feb 18 05:20:45 PST 2002
>Last-Modified:  Mon Feb 18 05:21:19 PST 2002
>Originator:     cliff@raggedclown.net
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD angel.raggedclown.intra 4.5-STABLE FreeBSD 4.5-STABLE #6: Thu Feb 14 07:11:29 CET 2002 toor@angel.raggedclown.intra:/usr/obj/usr/src/sys/ANGEL-S i386

>Description:
	When sendmail_enable is set to YES then in /etc/rc before that
	is honoured a check is made to see if /etc/mail/sendmail.cf
	exists. This check means that if you use an MTA other than
	sendmail (e.g. Postfix) and remove sendmail.cf then the MTA
	will not be started up.	
>How-To-Repeat:
	Remove or rename sendmail.cf on a system with an alternate
	MTA.
>Fix:
	Change check as in the diff below (or remove check altogether).

--- rc.orig	Sat Feb 16 13:52:28 2002
+++ rc	Sat Feb 16 13:58:13 2002
@@ -525,7 +525,7 @@
 	;;
 esac
 
-if [ -r /etc/mail/sendmail.cf ]; then
+if [ -x /usr/sbin/sendmail ]; then
 	case ${sendmail_enable} in
 	[Yy][Ee][Ss])
 		echo -n ' sendmail'

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: cjc 
State-Changed-When: Sat Feb 16 18:59:46 PST 2002 
State-Changed-Why:  
Fixed in revision 1.295. (But the PR is not noted in the commit log. I 
didn't see the PR until after I made the change.) The sendmail.conf is 
simly removed. 


Responsible-Changed-From-To: freebsd-bugs->cjc 
Responsible-Changed-By: cjc 
Responsible-Changed-When: Sat Feb 16 18:59:46 PST 2002 
Responsible-Changed-Why:  
I will handle the MFC in two days. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34993 
State-Changed-From-To: analyzed->closed 
State-Changed-By: cjc 
State-Changed-When: Mon Feb 18 05:20:45 PST 2002 
State-Changed-Why:  
MFC'ed into -STABLE. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34993 
>Unformatted:
