From bremner@unb.ca  Sun Dec 24 13:59:50 2000
Return-Path: <bremner@unb.ca>
Received: from convex.cs.unb.ca (unknown [131.202.244.141])
	by hub.freebsd.org (Postfix) with ESMTP id 5EEB737B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Dec 2000 13:59:50 -0800 (PST)
Received: (from bremner@localhost)
	by convex.cs.unb.ca (8.11.1/8.11.1) id eBOM0la47086;
	Sun, 24 Dec 2000 18:00:47 -0400 (AST)
	(envelope-from bremner)
Message-Id: <200012242200.eBOM0la47086@convex.cs.unb.ca>
Date: Sun, 24 Dec 2000 18:00:47 -0400 (AST)
From: David Bremner <bremner@unb.ca>
Reply-To: bremner@unb.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: Sendmail 8.11, host lookup order, IPv6
X-Send-Pr-Version: 3.2

>Number:         23817
>Category:       bin
>Synopsis:       Sendmail 8.11 ignores host lookup order when compiled with IP6
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 24 14:00:01 PST 2000
>Closed-Date:    Tue Mar 13 13:09:30 PST 2001
>Last-Modified:  Tue Mar 13 13:09:56 PST 2001
>Originator:     David Bremner
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

	4.2-STABLE as of Dec 23

>Description:

	Sendmail 8.11 refuses to look at /etc/hosts, no matter the contents
	of /etc/host.conf and /etc/sendmail.cf.  For machines without 
	a live DNS connection, this means either a hang, or a spurious 
	connection attempt (using e.g. ppp -auto)

>How-To-Repeat:

	start sendmail. To verify DNS lookup is taking place, 
	you can enable DNS logging in ppp.conf

>Fix:

here is a patch to /usr/src/usr.sbin/sendmail/Makefile that 
disables IPv6. Presumably the real fix is to debug sendmail.

*** Makefile.42-stable	Sun Dec 24 16:28:04 2000
--- Makefile	Sun Dec 24 16:59:00 2000
***************
*** 17,27 ****
  # If you don't want NIS alias/map support, comment out this line
  NIS=	-DNIS
  
  # Map extensions
  MAPS=	-DMAP_REGEX
  
  CFLAGS+=-I${SMDIR} -I${SENDMAIL_DIR}/include
! CFLAGS+=${DBMDEF} ${NIS} -DNETINET6 -DTCPWRAPPERS ${MAPS}
  
  SRCS=	alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.c \
  	convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
--- 17,31 ----
  # If you don't want NIS alias/map support, comment out this line
  NIS=	-DNIS
  
+ #Comment out this line to disable IPv6 support.
+ #INET6= -DNETINET6
+ 
+ 
  # Map extensions
  MAPS=	-DMAP_REGEX
  
  CFLAGS+=-I${SMDIR} -I${SENDMAIL_DIR}/include
! CFLAGS+=${DBMDEF} ${NIS} ${INET6} -DTCPWRAPPERS ${MAPS}
  
  SRCS=	alias.c arpadate.c bf_torek.c clock.c collect.c conf.c control.c \
  	convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: gshapiro 
Responsible-Changed-When: Sun Feb 4 17:14:37 PST 2001 
Responsible-Changed-Why:  
Given to sendmail maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23817 
State-Changed-From-To: open->analyzed 
State-Changed-By: gshapiro 
State-Changed-When: Wed Feb 21 22:35:29 PST 2001 
State-Changed-Why:  
I believe I found the problem in sendmail and will contact the reporter 
with a patch to try. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23817 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: gshapiro 
State-Changed-When: Tue Feb 27 18:59:15 PST 2001 
State-Changed-Why:  
The fix for this problem was included in sendmail 8.11.3, currently available 
in the HEAD (-CURRENT) of the repository.  I will close this problem report 
after it has been MFC'ed into RELENG_4 (-STABLE). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23817 
State-Changed-From-To: feedback->closed 
State-Changed-By: gshapiro 
State-Changed-When: Tue Mar 13 13:09:30 PST 2001 
State-Changed-Why:  
sendmail 8.11.3, which has this fixed, has been MFC'ed into RELENG_4 

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