Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Sep 2001 10:46:32 -0700
From:      Gregory Neil Shapiro <gshapiro@freebsd.org>
To:        Mike Tancsa <mike@sentex.net>
Cc:        stable@freebsd.org
Subject:   Re: something strange with sendmail 8.11.6 on FreeBSD
Message-ID:  <15276.52856.896099.983550@horsey.gshapiro.net>
In-Reply-To: <5.1.0.14.0.20010922132118.03779ec0@192.168.0.12>
References:  <5.1.0.14.0.20010922131438.060e9930@192.168.0.12> <5.1.0.14.0.20010922082451.05af6d70@192.168.0.12> <5.1.0.14.0.20010922132118.03779ec0@192.168.0.12>

next in thread | previous in thread | raw e-mail | index | archive | help
mike> Yes. In my .mc I have tried

mike> define(`confBIND_OPTS', `+WorkAroundBrokenAAAA')dnl
mike> and
mike> define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl

Ok, try the patch below (from Bill Fenner).  If that does it, I'll work on
getting it committed this weekend.

mike> Also, where is it described in the README ?

Line 642 of /usr/src/contrib/sendmail/src/README.

Index: daemon.c
===================================================================
RCS file: /home/ncvs/src/contrib/sendmail/src/daemon.c,v
retrieving revision 1.1.1.3.2.6
diff -u -r1.1.1.3.2.6 daemon.c
--- daemon.c	2001/08/01 03:19:45	1.1.1.3.2.6
+++ daemon.c	2001/09/09 19:31:37
@@ -1877,17 +1877,6 @@
 gothostent:
 		if (hp == NULL)
 		{
-# if NAMED_BIND
-			/* check for name server timeouts */
-			if (errno == ETIMEDOUT || h_errno == TRY_AGAIN ||
-			    (errno == ECONNREFUSED && UseNameServer))
-			{
-				save_errno = errno;
-				mci_setstat(mci, EX_TEMPFAIL, "4.4.3", NULL);
-				errno = save_errno;
-				return EX_TEMPFAIL;
-			}
-# endif /* NAMED_BIND */
 # if NETINET6
 			/*
 			**  Try v6 first, then fall back to v4.
@@ -1903,6 +1892,17 @@
 			if (v6found)
 				goto v6tempfail;
 # endif /* NETINET6 */
+# if NAMED_BIND
+			/* check for name server timeouts */
+			if (errno == ETIMEDOUT || h_errno == TRY_AGAIN ||
+			    (errno == ECONNREFUSED && UseNameServer))
+			{
+				save_errno = errno;
+				mci_setstat(mci, EX_TEMPFAIL, "4.4.3", NULL);
+				errno = save_errno;
+				return EX_TEMPFAIL;
+			}
+# endif /* NAMED_BIND */
 			save_errno = errno;
 			mci_setstat(mci, EX_NOHOST, "5.1.2", NULL);
 			errno = save_errno;


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15276.52856.896099.983550>