From nobody@FreeBSD.org  Mon Oct 25 08:38:42 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2176916A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Oct 2004 08:38:42 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 097E543D6B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Oct 2004 08:38:42 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9P8cfbC040238
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Oct 2004 08:38:41 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i9P8cfff040237;
	Mon, 25 Oct 2004 08:38:41 GMT
	(envelope-from nobody)
Message-Id: <200410250838.i9P8cfff040237@www.freebsd.org>
Date: Mon, 25 Oct 2004 08:38:41 GMT
From: Ron van Daal <freebsd@tux.linux666.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Sendmail on stock FreeBSD 4.10 goes in infinite loop while sending bulk email
X-Send-Pr-Version: www-2.3

>Number:         73105
>Category:       bin
>Synopsis:       Sendmail on stock FreeBSD 4.10 goes in infinite loop while sending bulk email
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 25 08:40:28 GMT 2004
>Closed-Date:    Sun Dec 12 19:00:31 GMT 2004
>Last-Modified:  Sun Dec 12 19:00:31 GMT 2004
>Originator:     Ron van Daal
>Release:        4.10-RELEASE
>Organization:
>Environment:
FreeBSD z.xxx.com 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #0: Wed Sep 15 01:31:44 CEST 2004     root@z.xxx.com:/usr/obj/usr/src/sys/ZARA  i386
>Description:
Sendmail 8.12.11 (FreeBSD 4.10 distribution) seems to get in an internal loop while sending bulk mail (no spam) delivered at the localhost smtp port. This results in a system load >12 causing the mailservice to stop accepting mail on it's smtp port. Sendmail generates the following syslog error hundreds of times a second: 
"sm-mta[54905]: STARTTLS: read error=generic SSL error (0)". Sendmail stops working and syslogd takes all CPU. I noticed this problem when Apache/PHP couldn't connect to MySQLd running on the same host. For some reason the Sendmail problem caused MySQLd to generate hundreds of MySQLd processes (with linux-threads) - I believe there were UNIX socket problems (?)
>How-To-Repeat:
Repeat the problem by installing FreeBSD 4.10, updating it to CVS and delivering bulk mail (in our case 1000 pcs.) to the localhost smtp port. Sendmail should be giving the SSL error after a while but will still be delivering e-mail. Eventually sendmail locks up.

>Fix:
There is a defining _FFR_DEAL_WITH_ERROR_SSL for the site.config.m4 file which should prevent Sendmail from going into infinite loops. I think it's necessary (or at least it would be very convenient) to include this in the default Sendmail/FreeBSD configuration.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Mon Oct 25 10:22:32 GMT 2004 
Responsible-Changed-Why:  
Over to our sendmail maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73105 
State-Changed-From-To: open->patched 
State-Changed-By: gshapiro 
State-Changed-When: Fri Dec 10 19:13:08 GMT 2004 
State-Changed-Why:  
Thanks, the FFR has been enabled in -CURRENT.  I'll MFC it to RELENG_5 and 
RELENG_4 is a couple of days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73105 
State-Changed-From-To: patched->closed 
State-Changed-By: gshapiro 
State-Changed-When: Sun Dec 12 19:00:10 GMT 2004 
State-Changed-Why:  
The fix has been MFC'ed to RELENG_5 and RELENG_4. 

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