http://bugzilla.spamassassin.org/show_bug.cgi?id=3183

           Summary: DNSBL tests fail due to extra space in Received: header
           Product: Spamassassin
           Version: 2.63
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P4
         Component: spamassassin
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Here is a simple test showing a case where the DNSBL tests work (s4) and then
fail (s5) when a space is added at the end of a Received header:

diff -u s4 s5 | sed -n l
--- s4\tTue Mar 16 09:16:05 2004$
+++ s5\tTue Mar 16 09:16:24 2004$
@@ -1 +1 @@$
-Received: from essn-d9baf6db.pool.mediaways.net
(essn-d9baf6db.pool.mediaWays.net [217.186.246.219]) by Daffy.timing.com;$
+Received: from essn-d9baf6db.pool.mediaways.net
(essn-d9baf6db.pool.mediaWays.net [217.186.246.219]) by Daffy.timing.com; $

spamassassin -t < s4 | tail
 1.9 DATE_MISSING           Missing Date: header
 5.4 BAYES_99               BODY: Bayesian spam probability is 99 to 100%
                            [score: 0.9978]
 1.5 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net
             [Blocked - see <http://www.spamcop.net/bl.shtml?217.186.246.219>]
 2.6 RCVD_IN_DYNABLOCK      RBL: Sent directly from dynamic IP address
                            [217.186.246.219 listed in dnsbl.sorbs.net]
 0.1 RCVD_IN_SORBS          RBL: SORBS: sender is listed in SORBS
                            [217.186.246.219 listed in dnsbl.sorbs.net]


spamassassin -t < s5 | tail

Content analysis details:   (9.3 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 2.0 FROM_NO_LOWER          'From' has no lower-case characters
 1.9 DATE_MISSING           Missing Date: header
 5.4 BAYES_99               BODY: Bayesian spam probability is 99 to 100%
                            [score: 0.9978]

Daffy.timing.com is my MTA running spamass-milter.  So the received header that
spamd gets (shown in s4 above) is not complete yet.  After it is fully accepted
the Received header looks like:

Received: from essn-d9baf6db.pool.mediaways.net
(essn-d9baf6db.pool.mediaWays.net [217.186.246.219])
        by Daffy.timing.com (8.12.8p2/8.12.8) with SMTP id i2G0O0is033811;
        Mon, 15 Mar 2004 17:24:18 -0700 (MST)
        (envelope-from [EMAIL PROTECTED])

That works fine.

But since SA seems to be getting confused by the extra space, the milter isn't
getting hits on the DNSBL rules.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to