Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 23:07:50 -0700 (PDT)
From:      John Nielsen <john@jnielsen.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/40638: spamass-milter port hangs on multiple simultaneous e-mails
Message-ID:  <200207160607.g6G67oNW025744@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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=<owner-freebsd-stable@FreeBSD.ORG>, 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=<stable@jnielsen.net>, 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=<john@buff.local>, 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=<john@buff.local>, 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=<john@buff.local>, 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=<john@buff.local>, 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=<john@buff.local>, 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=<admin@jnielsen.net>, 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=<admin@jnielsen.net>, 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=<admin@jnielsen.net>, 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=<admin@jnielsen.net>, 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=<admin@jnielsen.net>, 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=<owner-freebsd-current@FreeBSD.ORG>, 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=<current@jnielsen.net>, 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=<owner-freebsd-current@FreeBSD.ORG>, 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=<current@jnielsen.net>, 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




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