From owner-freebsd-ports Mon Jul 15 23:10:10 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8405C37B400 for ; Mon, 15 Jul 2002 23:10:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5EEB43E64 for ; Mon, 15 Jul 2002 23:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6G6A1JU012209 for ; Mon, 15 Jul 2002 23:10:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6G6A1px012208; Mon, 15 Jul 2002 23:10:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3276237B400 for ; Mon, 15 Jul 2002 23:07:51 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C620343E42 for ; Mon, 15 Jul 2002 23:07:50 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g6G67oOT025745 for ; Mon, 15 Jul 2002 23:07:50 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g6G67oNW025744; Mon, 15 Jul 2002 23:07:50 -0700 (PDT) Message-Id: <200207160607.g6G67oNW025744@www.freebsd.org> Date: Mon, 15 Jul 2002 23:07:50 -0700 (PDT) From: John Nielsen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/40638: spamass-milter port hangs on multiple simultaneous e-mails Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40638 >Category: ports >Synopsis: spamass-milter port hangs on multiple simultaneous e-mails >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 15 23:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: John Nielsen >Release: 4.6-RELEASE-p2 >Organization: >Environment: FreeBSD smurf.jnielsen.net 4.6-RELEASE-p2 FreeBSD 4.6-RELEASE-p2 #0: Fri Jul 12 23:19:03 MDT 2002 root@buff.local:/usr/obj/usr/src/sys/SMURF i386 >Description: The spamass-milter port will hang if the mailserver receives multiple e-mails at the same time. Until the milter is restarted, all mail will be delayed (waiting for the milter to time out) and then delivered unfiltered. Following is a log excerpt showing a message that was processed correctly followed by five messages sent at once from another machine ("buff"), which caused the milter to hang: Jul 15 23:16:38 smurf spamd[175]: connection from localhost [ 127.0.0.1 ] at port 1293 Jul 15 23:16:39 smurf sm-mta[734]: g6G5Gchw000734: from=, size=4651, class=-60, nrcpts=1, msgid=<002901c22c87$d91e8ba0$0900a8c0@max>, proto=ESMTP, daemon=MTA, relay=mx2.FreeBSD.org [216.136.204.119] Jul 15 23:16:57 smurf spamd[736]: clean message (0.2/5.0) for root:1013 in 19 seconds, 4742 bytes. Jul 15 23:16:57 smurf sm-mta[734]: g6G5Gchw000734: Milter change: header X-Spam-Status: from No, hits=0.2 required=5.0\n\ttests=WEIRD_PORT,AWL\n\tversion=2.31 to No, hits=0.2 required=5.0\n\ttests=WEIRD_PORT,AWL\n\tversion=2.31 Jul 15 23:16:58 smurf sm-mta[737]: g6G5Gchw000734: to=, delay=00:00:20, xdelay=00:00:00, mailer=local, pri=142887, relay=local, dsn=2.0.0, stat=Sent Jul 15 23:26:08 smurf spamd[175]: connection from localhost [ 127.0.0.1 ] at port 1308 Jul 15 23:26:08 smurf sm-mta[751]: g6G5Q7hw000751: from=, size=540, class=0, nrcpts=1, msgid=<200207160526.g6G5QF4u028018@buff.local>, proto=ESMTP, daemon=MTA, relay=buff.local [192.168.0.10] Jul 15 23:26:08 smurf sm-mta[750]: g6G5Q7hw000750: from=, size=540, class=0, nrcpts=1, msgid=<200207160526.g6G5QFQq028015@buff.local>, proto=ESMTP, daemon=MTA, relay=buff.local [192.168.0.10] Jul 15 23:26:08 smurf spamd[175]: connection from localhost [ 127.0.0.1 ] at port 1309 Jul 15 23:26:09 smurf sm-mta[754]: g6G5Q7hw000754: from=, size=540, class=0, nrcpts=1, msgid=<200207160526.g6G5QEeS028024@buff.local>, proto=ESMTP, daemon=MTA, relay=buff.local [192.168.0.10] Jul 15 23:26:09 smurf spamd[175]: connection from localhost [ 127.0.0.1 ] at port 1310 Jul 15 23:26:10 smurf sm-mta[752]: g6G5Q7hw000752: from=, size=540, class=0, nrcpts=1, msgid=<200207160526.g6G5QE5g028021@buff.local>, proto=ESMTP, daemon=MTA, relay=buff.local [192.168.0.10] Jul 15 23:26:10 smurf spamd[175]: connection from localhost [ 127.0.0.1 ] at port 1311 Jul 15 23:26:10 smurf spamd[175]: connection from localhost [ 127.0.0.1 ] at port 1312 Jul 15 23:30:08 smurf sm-mta[753]: g6G5Q7hw000753: Milter (spamassassin): timeout before data read Jul 15 23:30:08 smurf sm-mta[753]: g6G5Q7hw000753: Milter (spamassassin): to error state Jul 15 23:30:09 smurf sm-mta[753]: g6G5Q7hw000753: from=, size=540, class=0, nrcpts=1, msgid=<200207160526.g6G5QFKO028027@buff.local>, proto=ESMTP, daemon=MTA, relay=buff.local [192.168.0.10] Jul 15 23:30:09 smurf sm-mta[754]: g6G5Q7hw000754: Milter (spamassassin): timeout before data read Jul 15 23:30:09 smurf sm-mta[754]: g6G5Q7hw000754: Milter (spamassassin): to error state Jul 15 23:30:09 smurf sm-mta[750]: g6G5Q7hw000750: Milter (spamassassin): timeout before data read Jul 15 23:30:09 smurf sm-mta[750]: g6G5Q7hw000750: Milter (spamassassin): to error state Jul 15 23:30:09 smurf sm-mta[751]: g6G5Q7hw000751: Milter (spamassassin): timeout before data read Jul 15 23:30:09 smurf sm-mta[751]: g6G5Q7hw000751: Milter (spamassassin): to error state Jul 15 23:30:10 smurf sm-mta[752]: g6G5Q7hw000752: Milter (spamassassin): timeout before data read Jul 15 23:30:10 smurf sm-mta[752]: g6G5Q7hw000752: Milter (spamassassin): to error state Jul 15 23:30:13 smurf sm-mta[790]: g6G5Q7hw000750: to=, delay=00:04:05, xdelay=00:00:02, mailer=local, pri=30769, relay=local, dsn=2.0.0, stat=Sent Jul 15 23:30:13 smurf sm-mta[789]: g6G5Q7hw000751: to=, delay=00:04:05, xdelay=00:00:02, mailer=local, pri=30769, relay=local, dsn=2.0.0, stat=Sent Jul 15 23:30:13 smurf sm-mta[791]: g6G5Q7hw000752: to=, delay=00:04:04, xdelay=00:00:02, mailer=local, pri=30769, relay=local, dsn=2.0.0, stat=Sent Jul 15 23:30:13 smurf sm-mta[787]: g6G5Q7hw000753: to=, delay=00:00:05, xdelay=00:00:02, mailer=local, pri=30769, relay=local, dsn=2.0.0, stat=Sent Jul 15 23:30:18 smurf sm-mta[788]: g6G5Q7hw000754: to=, delay=00:04:09, xdelay=00:00:07, mailer=local, pri=30769, relay=local, dsn=2.0.0, stat=Sent Jul 15 23:33:57 smurf sm-mta[785]: g6G5Tvhw000785: Milter (spamassassin): timeout before data read Jul 15 23:33:57 smurf sm-mta[785]: g6G5Tvhw000785: Milter (spamassassin): to error state Jul 15 23:33:57 smurf sm-mta[785]: g6G5Tvhw000785: Milter (spamassassin): init failed to open Jul 15 23:33:57 smurf sm-mta[785]: g6G5Tvhw000785: Milter (spamassassin): to error state Jul 15 23:33:58 smurf sm-mta[785]: g6G5Tvhw000785: from=, size=3458, class=-60, nrcpts=1, msgid=<200207160529.g6G5Thk4069873@ref5.freebsd.org>, proto=ESMTP, daemon=MTA, relay=mx2.FreeBSD.org [216.136.204.119] Jul 15 23:33:58 smurf sm-mta[809]: g6G5Tvhw000785: to=, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=141705, relay=local, dsn=2.0.0, stat=Sent Jul 15 23:35:06 smurf sm-mta[807]: g6G5V6hw000807: Milter (spamassassin): timeout before data read Jul 15 23:35:06 smurf sm-mta[807]: g6G5V6hw000807: Milter (spamassassin): to error state Jul 15 23:35:06 smurf sm-mta[807]: g6G5V6hw000807: Milter (spamassassin): init failed to open Jul 15 23:35:06 smurf sm-mta[807]: g6G5V6hw000807: Milter (spamassassin): to error state Jul 15 23:35:07 smurf sm-mta[807]: g6G5V6hw000807: from=, size=3309, class=-60, nrcpts=1, msgid=<200207160547.NAA08469@mail.viasoft.com.cn>, proto=ESMTP, daemon=MTA, relay=mx2.FreeBSD.org [216.136.204.119] Jul 15 23:35:09 smurf sm-mta[820]: g6G5V6hw000807: to=, delay=00:00:02, xdelay=00:00:02, mailer=local, pri=141553, relay=local, dsn=2.0.0, stat=Sent >How-To-Repeat: Set up spamd (from SpamAssassin) and spamass-milter as instructed in the ports. From another machine, run a script like this: #!/bin/sh for i in `jot 5 1`; do echo "test $i" | mail -s "test $i" user@test.mail.server done >Fix: If the spamass-milter software is built from the latest CVS sources with patch 349 applied, the problem goes away. A reasonable fix would be one of: 1) waiting for the next official release of the software (if it's soon), 2) modifying the existing port to use the latest sources and apply the patch, or 3) fork the port (e.g. spamass-milter-devel) and have the "unstable" fork use the newest sources and relevant patches. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message