From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 25 08:40:28 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BABE916A4CE for ; Mon, 25 Oct 2004 08:40:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AA7E43D60 for ; Mon, 25 Oct 2004 08:40:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9P8eSW1062634 for ; Mon, 25 Oct 2004 08:40:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9P8eSS4062632; Mon, 25 Oct 2004 08:40:28 GMT (envelope-from gnats) Resent-Date: Mon, 25 Oct 2004 08:40:28 GMT Resent-Message-Id: <200410250840.i9P8eSS4062632@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ron van Daal Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2176916A4CE for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/73105: Sendmail on stock FreeBSD 4.10 goes in infinite loop while sending bulk email X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 08:40:29 -0000 >Number: 73105 >Category: misc >Synopsis: Sendmail on stock FreeBSD 4.10 goes in infinite loop while sending bulk email >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 25 08:40:28 GMT 2004 >Closed-Date: >Last-Modified: >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: >Unformatted: