From seth@psychotic.aberrant.org  Tue Apr 23 13:22:51 2002
Return-Path: <seth@psychotic.aberrant.org>
Received: from psychotic.aberrant.org (psychotic.aberrant.org [66.92.161.103])
	by hub.freebsd.org (Postfix) with ESMTP id 44CB337B429
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 23 Apr 2002 13:21:50 -0700 (PDT)
Received: by psychotic.aberrant.org (Postfix, from userid 1001)
	id 4E1C81FC26; Tue, 23 Apr 2002 16:21:49 -0400 (EDT)
Message-Id: <20020423202149.4E1C81FC26@psychotic.aberrant.org>
Date: Tue, 23 Apr 2002 16:21:49 -0400 (EDT)
From: Seth <seth@psychotic.aberrant.org>
Reply-To: Seth <seth@psychotic.aberrant.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: even with NO_SENDMAIL=true, /usr/sbin/sendmail overwritten
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37395
>Category:       conf
>Synopsis:       even with NO_SENDMAIL=true, /usr/sbin/sendmail overwritten
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    johan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 23 13:30:01 PDT 2002
>Closed-Date:    Mon Jan 19 12:20:58 PST 2004
>Last-Modified:  Mon Jan 19 12:20:58 PST 2004
>Originator:     Seth
>Release:        FreeBSD 4.5-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD undisclosed 4.5-RELEASE-p4 FreeBSD 4.5-RELEASE-p4 #0: Tue Apr 23 07:30:12 EDT 2002 root@:/usr/src/sys/compile/KERNEL-B i386


	
>Description:
  After upgrading to latest RELENG_4_5, I noticed that sendmail was being
started instead of postfix.  Even though I had specified NO_SENDMAIL=true
in /etc/make.conf, /usr/sbin/sendmail still got overwritten with a link
to mailwrapper.  This deleted the postfix "sendmail" program, which is
installed as /usr/sbin/sendmail by default (non-ports install).

Note: I'm not really sure this is "non-critical", since it had the effect
of denying mail to users during the troubleshooting of unexpected behavior,
but I'll leave it to someone else to reclassify appropriately.

>How-To-Repeat:
  Install postfix.  Upgrade (make build/installworld).  
  Check /usr/sbin/sendmail.
>Fix:
  Workaround: "make upgrade" for postfix source.  Ideally, however, a
  NO_SENDMAIL=true would prevent ANY alteration of /usr/sbin/sendmail
  during installworld.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Apr 23 14:24:27 PDT 2002 
Responsible-Changed-Why:  
Over to sendmail maintainer. 

The NO_MAILWRAPPER knob takes care of this in stable. 
However, rev 1.206 of usr.sbin/Makefile removed 
this functionality from current. 

Note to submitter: use NO_MAILWRAPPER. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37395 
Responsible-Changed-From-To: gshapiro->peter 
Responsible-Changed-By: gshapiro 
Responsible-Changed-When: Tue Apr 23 23:23:46 PDT 2002 
Responsible-Changed-Why:  
The sendmail maintainer is not in charge of mailwrapper. 

Since johan has found that the problem was introduced by rev 
1.206 of usr.sbin/Makefile, I am reassigning this bug to the person 
who checked in that revision, peter, as he is in the best position to 
know why the change was made. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37395 
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Mon Jan 19 12:18:02 PST 2004 
State-Changed-Why:  
I have committed a fix for this to current. 
I will MFC in two week and I have PR 57058 
open as a reminder.  


Responsible-Changed-From-To: peter->johan 
Responsible-Changed-By: johan 
Responsible-Changed-When: Mon Jan 19 12:18:02 PST 2004 
Responsible-Changed-Why:  
Peter, I hope you do not mind that I close 
this PR and assign it to me. 

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

