From Andre.Albsmeier@siemens.com  Sat Sep 17 09:15:38 2005
Return-Path: <Andre.Albsmeier@siemens.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 707DA16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Sep 2005 09:15:38 +0000 (GMT)
	(envelope-from Andre.Albsmeier@siemens.com)
Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C6E7543D46
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Sep 2005 09:15:37 +0000 (GMT)
	(envelope-from Andre.Albsmeier@siemens.com)
Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14])
	by thoth.sbs.de (8.12.6/8.12.6) with ESMTP id j8H9FaI7025884
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Sep 2005 11:15:36 +0200
Received: from ims.mchp.siemens.de (ims.mchp.siemens.de [139.25.31.39])
	by mail3.siemens.de (8.12.6/8.12.6) with ESMTP id j8H9FZlQ026509
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Sep 2005 11:15:35 +0200
Received: from mail-ct.mchp.siemens.de (mail-ct.mchp.siemens.de [139.25.31.51])
				by ims.mchp.siemens.de  with ESMTP id j8H9FZJQ026405
				for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Sep 2005 11:15:35 +0200 (MEST)
Received: from curry.mchp.siemens.de (curry [139.25.40.130])
	by mail-ct.mchp.siemens.de (8.12.11/8.12.11) with ESMTP id j8H9FZnd007457
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Sep 2005 11:15:35 +0200 (MEST)
Received: (from localhost)
	by curry.mchp.siemens.de (8.13.4/8.13.4) id j8H9FYWQ014513
	for FreeBSD-gnats-submit@freebsd.org; Sat, 17 Sep 2005 11:15:34 +0200 (CEST)
Message-Id: <200509170915.j8H9FYHT027595@curry.mchp.siemens.de>
Date: Sat, 17 Sep 2005 11:15:34 +0200 (CEST)
From: Andre Albsmeier <Andre.Albsmeier@siemens.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] /etc/rc.d/sendmail wants to build aliases.db even if not possible
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86252
>Category:       conf
>Synopsis:       [PATCH] /etc/rc.d/sendmail wants to build aliases.db even if not possible
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 17 09:20:07 GMT 2005
>Closed-Date:    Wed Jun 13 01:18:35 GMT 2007
>Last-Modified:  Fri Jun 15 02:40:08 GMT 2007
>Originator:     Andre Albsmeier
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:

System: FreeBSD 5.4-STABLE #0: Thu Sep 15 15:59:28 CEST 2005

>Description:

sendmail tries to rebuild the aliases.db on startup even if
you don't use an alias file in your config (e.g. by using
the sendmail nullclient feature). In this case you will see
a confusing message

/etc/mail/aliases.db not present, generating

on each startup.

>How-To-Repeat:

Build a sendmail.cf without alias support and reboot (or
run /etc/rc.d/sendmail).

>Fix:

This is what I use now:

--- /etc/rc.d/sendmail.OLD	Mon Sep  5 08:31:56 2005
+++ /etc/rc.d/sendmail	Sat Sep 17 10:45:37 2005
@@ -64,7 +64,7 @@
 	    "${name}: /etc/mail/aliases newer than /etc/mail/aliases.db, regenerating"
 			/usr/bin/newaliases
 		fi
-	else
+	elif ! egrep -q '#[[:space:]]*O[[:space:]]+AliasFile' "${required_files:-/etc/mail/sendmail.cf}"; then
 		echo \
 	    "${name}: /etc/mail/aliases.db not present, generating"
 			/usr/bin/newaliases

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Mon Dec 5 09:26:59 GMT 2005 
Responsible-Changed-Why:  

Over to Mr. Sendmail 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86252 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/86252: commit references a PR
Date: Tue, 12 Jun 2007 17:33:32 +0000 (UTC)

 gshapiro    2007-06-12 17:33:24 UTC
 
   FreeBSD src repository
 
   Modified files:
     .                    UPDATING 
     etc/defaults         rc.conf 
     etc/rc.d             sendmail 
     release/doc/en_US.ISO8859-1/relnotes article.sgml 
   Log:
   Add a new rc.conf variable, sendmail_rebuild_aliases, which tells
   /etc/rc.d/sendmail whether or not to run newaliases if the database
   is missing or the aliases text file is newer than aliases.db.
   
   In my opinion, the aliases file should never be automatically rebuilt.
   The current text form could represent a work in progress.  Therefore,
   in FreeBSD 7.0, this new option will default to "NO".  When this rc.d
   change is MFC'ed, it will need to remain "YES" to maintain backward
   compatibility.
   
   PR:             conf/86252
   Approved by:    re (kensmith)
   MFC after:      3 days
   
   Revision  Changes    Path
   1.496     +6 -0      src/UPDATING
   1.316     +1 -0      src/etc/defaults/rc.conf
   1.17      +10 -8     src/etc/rc.d/sendmail
   1.1039    +6 -0      src/release/doc/en_US.ISO8859-1/relnotes/article.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: gshapiro 
State-Changed-When: Wed Jun 13 01:16:52 UTC 2007 
State-Changed-Why:  
An alternative fix has been committed.  It will also be MFC'ed 
after 3 days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86252 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/86252: commit references a PR
Date: Fri, 15 Jun 2007 02:39:25 +0000 (UTC)

 gshapiro    2007-06-15 02:39:18 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     etc/defaults         rc.conf 
     etc/rc.d             sendmail 
     release/doc/en_US.ISO8859-1/relnotes/common new.sgml 
   Log:
   MFC: Add a new rc.conf variable, sendmail_rebuild_aliases, which tells
        /etc/rc.d/sendmail whether or not to run newaliases if the database
        is missing or the aliases text file is newer than aliases.db.
   
        In my opinion, the aliases file should never be automatically rebuilt.
        The current text form could represent a work in progress.  Therefore,
        in FreeBSD 7.0, this new option will default to "NO".  When this rc.d
        change is MFC'ed, it will need to remain "YES" to maintain backward
        compatibility.
   
        PR:             conf/86252
        Approved by:    re (kensmith)
        MFC after:      3 days
   
        Revision  Changes    Path
        1.316     +1 -0      src/etc/defaults/rc.conf
        1.17      +10 -8     src/etc/rc.d/sendmail
        1.1039    +6 -0      src/release/doc/en_US.ISO8859-1/relnotes/article.sgml
   
   Revision    Changes    Path
   1.252.2.37  +1 -0      src/etc/defaults/rc.conf
   1.14.2.3    +10 -8     src/etc/rc.d/sendmail
   1.883.2.75  +11 -0     src/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/86252: commit references a PR
Date: Fri, 15 Jun 2007 02:39:43 +0000 (UTC)

 gshapiro    2007-06-15 02:39:36 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_5)
     etc/defaults         rc.conf 
     etc/rc.d             sendmail 
     release/doc/en_US.ISO8859-1/relnotes/common new.sgml 
   Log:
   MFC: Add a new rc.conf variable, sendmail_rebuild_aliases, which tells
        /etc/rc.d/sendmail whether or not to run newaliases if the database
        is missing or the aliases text file is newer than aliases.db.
   
        In my opinion, the aliases file should never be automatically rebuilt.
        The current text form could represent a work in progress.  Therefore,
        in FreeBSD 7.0, this new option will default to "NO".  When this rc.d
        change is MFC'ed, it will need to remain "YES" to maintain backward
        compatibility.
   
        PR:             conf/86252
        Approved by:    re (kensmith)
        MFC after:      3 days
   
        Revision  Changes    Path
        1.316     +1 -0      src/etc/defaults/rc.conf
        1.17      +10 -8     src/etc/rc.d/sendmail
        1.1039    +6 -0      src/release/doc/en_US.ISO8859-1/relnotes/article.sgml
   
   Revision    Changes    Path
   1.212.2.25  +1 -0      src/etc/defaults/rc.conf
   1.12.2.3    +10 -8     src/etc/rc.d/sendmail
   1.761.2.80  +6 -1      src/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
