From nobody@www.freebsd.org  Sun Jun 16 23:33:55 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 875C637B407
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Jun 2002 23:33:54 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5H6XshG058700
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Jun 2002 23:33:54 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5H6Xs6d058699;
	Sun, 16 Jun 2002 23:33:54 -0700 (PDT)
Message-Id: <200206170633.g5H6Xs6d058699@www.freebsd.org>
Date: Sun, 16 Jun 2002 23:33:54 -0700 (PDT)
From: Michael Grant <mg-fbsd3@grant.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: make buildworld installs a sendmail.cf
X-Send-Pr-Version: www-1.0

>Number:         39397
>Category:       misc
>Synopsis:       make buildworld installs a sendmail.cf
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 16 23:40:01 PDT 2002
>Closed-Date:    Wed Jun 19 21:33:54 PDT 2002
>Last-Modified:  Wed Jun 19 21:33:54 PDT 2002
>Originator:     Michael Grant
>Release:        4.6 release
>Organization:
>Environment:
FreeBSD grant.org 4.5-STABLE FreeBSD 4.5-STABLE #1: Tue Mar 19 04:04:27 EST 2002     xxxxxx@grant.org:/usr/obj/usr/src/sys/GRANT-4.5  i386

>Description:
"make buildworld" installed a new sendmail.cf in /etc/mail/sendmail.cf
>How-To-Repeat:
suck over 4.6 release and do a "make buildworld".  The modtime on the new /etc/mail/sendmail.cf was the same as the mod times in /usr/obj/usr/src/usr.sbin/sendmail/, hence I'm pretty certain that the buildworld installed this.

I verified that nothing else
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Makoto Matsushita <matusita@jp.FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/39397: make buildworld installs a sendmail.cf
Date: Mon, 17 Jun 2002 15:54:59 +0900

 mg-fbsd3> suck over 4.6 release and do a "make buildworld".  The
 mg-fbsd3> modtime on the new /etc/mail/sendmail.cf was the same as the
 mg-fbsd3> mod times in /usr/obj/usr/src/usr.sbin/sendmail/, hence I'm
 mg-fbsd3> pretty certain that the buildworld installed this.
 
 make buildworld doesn't install any files (there is no such Makefile).
 Moreover, if buildworld installs a file /etc/mail/sendmail.cf, your
 make(1) was run in src/etc/sendmail but it should not happen (make
 buildworld doesn't process any src/etc and its subdirectories).
 
 Are there any chance that you ran any make command except "make
 buildworld"?  It would be better that presenting a part of "make
 buildworld" logfile that apparantly shows "installing sendmail.cf."
 
 -- -
 Makoto `MAR' Matsushita

From: Michael Grant <mg-fbsd3@grant.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: matusita@jp.FreeBSD.org
Subject: Re: misc/39397: make buildworld installs a sendmail.cf
Date: Mon, 17 Jun 2002 09:24:37 +0200 (MEST)

 Here is the output of the make buildworld section which did the install of sendmail.cf.  I have the entire make buildworld output if 
 you would like to see it:
 
 ===> etc/sendmail
 rm -f freebsd.cf
 (cd /usr/src/etc/sendmail &&  m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib/sendmail/cf/   
 /usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 freebsd.mc) > freebsd.cf
 chmod 444 freebsd.cf
 rm -f /etc/mail/sendmail.cf
 (cd /usr/src/etc/sendmail &&  m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib/sendmail/cf/   
 /usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 /etc/mail/sendmail.mc) > /etc/mail/sendmail.cf
 *** WARNING: missing -T<TMPF> in argument of FEATURE(`access_db', hash -o /etc/mail/access)
  
 *** WARNING: FEATURE(`relay_mail_from') may cause your system to act as open
         relay.  Use SMTP AUTH or STARTTLS instead.
  

From: Makoto Matsushita <matusita@jp.FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: misc/39397: make buildworld installs a sendmail.cf
Date: Mon, 17 Jun 2002 16:35:51 +0900

 mg-fbsd3> rm -f /etc/mail/sendmail.cf
 mg-fbsd3> (cd /usr/src/etc/sendmail &&  m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib/sendmail/cf/   
 mg-fbsd3> /usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 /etc/mail/sendmail.mc) > /etc/mail/sendmail.cf
 mg-fbsd3> *** WARNING: missing -T<TMPF> in argument of FEATURE(`access_db', hash -o /etc/mail/access)
 mg-fbsd3>  
 mg-fbsd3> *** WARNING: FEATURE(`relay_mail_from') may cause your system to act as open
 mg-fbsd3>         relay.  Use SMTP AUTH or STARTTLS instead.
 mg-fbsd3>  
 
 Hmm, would please show me your /etc/make.conf?  Maybe it has a hint
 about this problem (I doubt if you mis-setup some variables).
 
 -- -
 Makoto `MAR' Matsushita

From: Makoto Matsushita <matusita@jp.FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/39397: make buildworld installs a sendmail.cf
Date: Mon, 17 Jun 2002 16:39:42 +0900

 Oops, something goes wrong in my head... sorry.
 
 matusita>  (make buildworld doesn't process any src/etc and its
 matusita>  subdirectories).
 
 it should read:	(make buildworld doesn't process any src/etc except
 src/etc/sendmail).  src/etc/sendmail is used to make sendmail
 configuration file.
 
 -- -
 Makoto `MAR' Matsushita
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: gshapiro 
Responsible-Changed-When: Mon Jun 17 14:04:06 PDT 2002 
Responsible-Changed-Why:  
Over to sendmail maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39397 
State-Changed-From-To: open->feedback 
State-Changed-By: gshapiro 
State-Changed-When: Mon Jun 17 14:04:24 PDT 2002 
State-Changed-Why:  
By specifying /etc/mail/sendmail.mc as your MC file in /etc/make.conf, 
buildworld will use /etc/mail/sendmail.cf as the output file.  Instead, 
switch to using /etc/mail/`hostname`.mc (the default) and you won't 
have this problem.  If this is acceptable, I'll update the docs with 
a warning. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39397 
State-Changed-From-To: feedback->closed 
State-Changed-By: gshapiro 
State-Changed-When: Wed Jun 19 21:33:33 PDT 2002 
State-Changed-Why:  
User adjusted their settings and a warning was added to make.conf and 
it's man page. 

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