From nobody@FreeBSD.org  Fri Oct 23 20:24:10 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 332061065679
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Oct 2009 20:24:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 229138FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Oct 2009 20:24:10 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9NKO9Fr011178
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Oct 2009 20:24:09 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n9NKO9Co011177;
	Fri, 23 Oct 2009 20:24:09 GMT
	(envelope-from nobody)
Message-Id: <200910232024.n9NKO9Co011177@www.freebsd.org>
Date: Fri, 23 Oct 2009 20:24:09 GMT
From: Warren Block <wblock@wonkity.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: existing sendmail aliases ignored until sendmail restart
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         139870
>Category:       bin
>Synopsis:       [regression]: sendmail(8): existing sendmail aliases ignored until sendmail restart
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 23 20:30:04 UTC 2009
>Closed-Date:    Fri Nov 20 06:01:20 UTC 2009
>Last-Modified:  Fri Nov 20 06:01:20 UTC 2009
>Originator:     Warren Block
>Release:        8.0-RC1
>Organization:
>Environment:
FreeBSD lightning 8.0-RC1 FreeBSD 8.0-RC1 #11: Thu Oct 22 13:03:43 MDT 2009     root@lightning:/usr/obj/usr/src/sys/LIGHTNING  i386
>Description:
On this system, /etc/mail/aliases has an entry to send root email to another user on another computer.  newaliases was last run on October 14:

-rw-r--r--  1 root  wheel   1693 Oct 14 07:18 aliases
-rw-r-----  1 root  wheel  16384 Oct 14 07:18 aliases.db

That was from an earlier version of 8.0-RC1.

After booting, the root alias in the already-built alias files is ignored by sendmail.  The mail is sent to the un-aliased root.

The existing .mc file does take effect (in this case, mail is still sent to a smarthost, where it bounces, since root@lightning.wonkity.com doesn't exist there).

A 'make restart' of sendmail--without touching anything else--and the 
alias works.

FreeBSD lightning 8.0-RC1 FreeBSD 8.0-RC1 #11: Thu Oct 22 13:03:43 MDT 
2009     root@lightning:/usr/obj/usr/src/sys/LIGHTNING  i386

This has been going on for a while; at least the last half-dozen 
rebuilds of 8.0-RC1 on this system have exhibited the problem.  It's a 
regression from 7-STABLE.

>How-To-Repeat:
Enter an alias in /etc/aliases (only root tested).
newaliases
Reboot.
Send mail to that alias (failure).
cd /etc/mail; make restart
Send mail to that alias (success).
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Oct 26 07:22:07 UTC 2009 
Responsible-Changed-Why:  
reclassify. 

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

From: Warren Block <wblock@wonkity.com>
To: bug-followup@FreeBSD.org, wblock@wonkity.com
Cc:  
Subject: Re: bin/139870: sendmail(8): existing sendmail aliases ignored until
 sendmail restart
Date: Tue, 27 Oct 2009 10:07:33 -0600 (MDT)

 Still present in 8.0-RC2:
 
 FreeBSD lightning 8.0-RC2 FreeBSD 8.0-RC2 #0: Tue Oct 27 08:22:58 MDT 
 2009     root@lightning:/usr/obj/usr/src/sys/LIGHTNING  i386

From: Warren Block <wblock@wonkity.com>
To: bug-followup@FreeBSD.org, wblock@wonkity.com
Cc:  
Subject: Re: bin/139870: [regression]: sendmail(8): existing sendmail aliases
 ignored until sendmail restart
Date: Tue, 17 Nov 2009 19:59:25 -0700 (MST)

 This is caused by the network interface re0 not getting an IP address in 
 time for sendmail startup, along with a hostname that is not an FQDN.
 
 Workaround: assign a hostname in rc.conf that is a FQDN.
 
 -Warren Block * Rapid City, South Dakota USA

From: Warren Block <wblock@wonkity.com>
To: bug-followup@FreeBSD.org, wblock@wonkity.com
Cc:  
Subject: Re: bin/139870: [regression]: sendmail(8): existing sendmail aliases
 ignored until sendmail restart
Date: Thu, 19 Nov 2009 22:05:05 -0700 (MST)

 Fixed for re interface with revision 1.163 of if_re.c (SVN 199564 by 
 yongari).
 
 Please close this bug.  Thanks!
 
 -Warren Block * Rapid City, South Dakota USA
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Nov 20 06:01:03 UTC 2009 
State-Changed-Why:  
traced to bug in re driver; fix committed. 

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