You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/09/08 14:36:09 UTC

[Bug 4576] New: FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

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

           Summary: FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from
                    GMX.(ch|de|at|net)
           Product: Spamassassin
           Version: 3.1.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: Rules (Eval Tests)
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: mbr@freebsd.org


GMX, a big european freemail and mail provider uses qmail. The add the
following headers for the firsthop:

Received: from 80-219-49-23.dclient.hispeed.ch (EHLO DGHDTJ1J) [80.219.49.23]
  by mail.gmx.net (mp006) with SMTP; 08 Sep 2005 10:32:47 +0200

Received: from 15.254.203.62.cust.bluewin.ch (EHLO Laptop) [62.203.254.15]
  by mail.gmx.net (mp019) with SMTP; 08 Sep 2005 03:43:17 +0200

Received: from dsl.10.250.203.62.cust.bluewin.ch (EHLO Comp) [62.203.250.10]
  by mail.gmx.net (mp019) with SMTP; 08 Sep 2005 03:43:17 +0200

This leads to matches like:

1.5 HELO_DYNAMIC_IPADDR2   Relay HELO'd using suspicious hostname (IP addr 2)
2.2 HELO_DYNAMIC_SPLIT_IP  Relay HELO'd using suspicious hostname (Split IP)
1.5 RCVD_NUMERIC_HELO      Received: contains an IP address used for HELO

It seems now that the second [] are responsable for the wrong matches. Headers
like this would pass without a problem:

Received: from dsl.10.250.203.62.cust.bluewin.ch (EHLO Comp) (62.203.250.10)
  by mail.gmx.net (mp019) with SMTP; 08 Sep 2005 03:43:17 +0200

So my question is: Is this a generall spammassassin 3.10 bug, or a modified
Qmail installation from GMX ?

Martin



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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From lwilton@earthlink.net  2005-09-10 00:47 -------
Subject: Re:  FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails
 from GMX.(ch|de|at|net)

BTW, a number of those meta tests could be written much more simply and less confusingly by using 'and' and 'or' instead of addition.  For instance:

meta            QMAIL_NUMERIC_HELO      (__RCVD_QMAIL + __X_AUTH_SMTP + NUMERIC_HELO == 3)
meta            QMAIL_NUMERIC_HELO      (__RCVD_QMAIL  &&  __X_AUTH_SMTP && NUMERIC_HELO)

meta            QMAIL_RCVD_IPADDR2      (__RCVD_QMAIL + __X_AUTH_SMTP + HELO_DYNAMIC_IPADDR2 == 3)
meta            QMAIL_RCVD_IPADDR2      (__RCVD_QMAIL && __X_AUTH_SMTP && HELO_DYNAMIC_IPADDR2)

meta            QMAIL_RCVD_SPLIT_IP     (__RCVD_QMAIL + __X_AUTH_SMTP + HELO_DYNAMIC_SPLIT_IP == 3)
meta            QMAIL_RCVD_SPLIT_IP     (__RCVD_QMAIL && __X_AUTH_SMTP && HELO_DYNAMIC_SPLIT_IP)

meta            QMAIL_HELO_DHCP         (__RCVD_QMAIL + __X_AUTH_SMTP + HELO_DYNAMIC_DHCP == 3)
meta            QMAIL_HELO_DHCP         (__RCVD_QMAIL && __X_AUTH_SMTP && HELO_DYNAMIC_DHCP)

meta            QMAIL_NEED_FIX          (__RCVD_QMAIL + __X_AUTH_SMTP + __RCVD_GMX + __RCVD_GMX + __RCVD_GMX == 2)
meta            QMAIL_NEED_FIX          (__RCVD_QMAIL && __X_AUTH_SMTP && !__RCVD_GMX)

Or even better:

meta            __QMAIL_AUTH_SMTP                (__RCVD_QMAIL && __X_AUTH_SMTP)
meta            QMAIL_NUMERIC_HELO      (__QMAIL_AUTH_SMTP && NUMERIC_HELO)
meta            QMAIL_RCVD_IPADDR2      (__QMAIL_AUTH_SMTP && HELO_DYNAMIC_IPADDR2)
meta            QMAIL_RCVD_SPLIT_IP     (__QMAIL_AUTH_SMTP && HELO_DYNAMIC_SPLIT_IP)
meta            QMAIL_HELO_DHCP         (__QMAIL_AUTH_SMTP && HELO_DYNAMIC_DHCP)
meta            QMAIL_NEED_FIX          (__QMAIL_AUTH_SMTP && !__RCVD_GMX)





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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From mbr@freebsd.org  2005-09-10 01:01 -------
Created an attachment (id=3123)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=3123&action=view)
Sample FPS Mail




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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576


mbr@freebsd.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #3120|application/octet-stream    |text/plain
          mime type|                            |
Attachment #3120 is|0                           |1
              patch|                            |






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

[Bug 4576] Not correctly parsing HELO from Received headers for some senders

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4576





------- Additional Comments From felicity@apache.org  2007-02-04 14:02 -------
(In reply to comment #17)
> Sending        lib/Mail/SpamAssassin/Message/Metadata/Received.pm
> Sending        t/rcvd_parser.t
> Transmitting file data ..
> Committed revision 503495.

3.1.8 ?




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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From mbr@freebsd.org  2005-09-09 01:15 -------
After further investigations I'm sure that we hit here a spamassassin bug.
The HELO_[...] rules should only match if we have just one hop before our
SMTP server. Here is an example:

[43256] dbg: received-header: relay 195.141.101.242 trusted? yes internal? no
[43256] dbg: received-header: relay 127.0.0.1 trusted? yes internal? no
[43256] dbg: received-header: relay 213.165.64.20 trusted? yes internal? no
[43256] dbg: received-header: relay 81.173.228.159 trusted? no internal? no

Trusted IPs:
------------
195.141.101.242
127.0.0.1
213.165.64.20

Untrusted IP:
--------------
81.173.228.159

Should match the HELO rules:
----------------------------

>From xxx Thu Sep  8 11:20:15 2005
Received: from 15.254.203.62.cust.bluewin.ch (15.254.203.62.cust.bluewin.ch
[81.173.228.159])
        by mx2.imp.ch (8.13.4/8.13.4) with ESMTP id j889KE9j063340
        for <xxx>; Thu, 8 Sep 2005 11:20:15 +0200 (CEST)
        (envelope-from xxx)

We have just one hop here, 81.173.228.159 is the direct sender to our MX.
And it does correctly match:

 1.5 HELO_DYNAMIC_IPADDR2   Relay HELO'd using suspicious hostname (IP addr2)
 2.9 HELO_DYNAMIC_SPLIT_IP  Relay HELO'd using suspicious hostname (SpliIP)
 1.3 RCVD_NUMERIC_HELO      Received: contains an IP address used for HELO

Shouldn't match the HELO rules:
-------------------------------

>From xxx Thu Sep  8 11:20:15 2005
Received: from mail.dataflow.ch (falafel.dataflow.ch [195.141.101.242])
        by mx2.imp.ch (8.13.4/8.13.4) with ESMTP id j889KE9j063340
        for <xxx>; Thu, 8 Sep 2005 11:20:15 +0200 (CEST)
        (envelope-from xxx)
Received: from falafel.dataflow.ch (localhost [127.0.0.1])
        by falafel.dataflow.ch (Postfix) with ESMTP id CE7221CF1A2;
        Thu,  8 Sep 2005 11:16:40 +0200 (CEST)
Received: from mail.gmx.net (mail.gmx.de [213.165.64.20])
        by falafel.dataflow.ch (Postfix) with SMTP id A2F501CF19D
        for <xxx>; Thu,  8 Sep 2005 11:16:33 +0200 (CEST)
Received: (qmail invoked by alias); 08 Sep 2005 09:19:52 -0000
Received: from 15.254.203.62.cust.bluewin.ch (EHLO SERVER) [81.173.228.159]
        by hamburg134 with SMTP; 23 Jan 2005 11:53:28 -0000

It still matches. This is IMHO a spamassassin bug and shouldn't happen.

1.5 HELO_DYNAMIC_IPADDR2   Relay HELO'd using suspicious hostname (IP addr2
2.9 HELO_DYNAMIC_SPLIT_IP  Relay HELO'd using suspicious hostname (Split IP)

The rules are defined as:

header HELO_DYNAMIC_IPADDR2 X-Spam-Relays-Untrusted =~ /^[^\]]+
helo=\d+[^\d\s]\d+[^\d\s]\d+[^\d\s]\d+[^\d\s][^\.]*\.\S+\.\S+[^\]]+ auth= /i

header HELO_DYNAMIC_SPLIT_IP X-Spam-Relays-Untrusted =~ /^[^\]]+
helo=\d+\.\S+\d+[^\d\s]\d+[^\d\s]\d+[^\d\s]/

The don't look if there is just one hop, the just match the IP in the
untrusted list.



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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From jm@jmason.org  2005-09-08 12:25 -------
HELO_DYNAMIC_* rules should fire only if the mail was sent directly from one of
those dynamic IPs, to your mailserver (ie. not via an outbound SMTP relay).  If
sent via an outbound relay, they shouldn't fire.

Please attach some samples...



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

[Bug 4576] Not correctly parsing HELO from Received headers for some senders

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4576


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From jm@jmason.org  2007-02-04 13:59 -------
I came up with a test case and applied the one-liner, but noticed that it still
fails to capture the rDNS -- so implemented a separate line to catch that as well.  

: jm 315...; svn commit -m "bug 4576: handle mail.gmx.net-style qmail headers"
Sending        lib/Mail/SpamAssassin/Message/Metadata/Received.pm
Sending        t/rcvd_parser.t
Transmitting file data ..
Committed revision 503495.




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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4576


bruce@untroubled.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bruce@untroubled.org






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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From mbr@freebsd.org  2005-09-10 01:02 -------
Created an attachment (id=3125)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=3125&action=view)
Sample FPS Mail




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

[Bug 4576] Not correctly parsing HELO from Received headers for some senders

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4576





------- Additional Comments From daniel-gl@gmx.net  2007-02-04 13:11 -------
Created an attachment (id=3853)
 --> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=3853&action=view)
Testcase incorrectly fireing HELO_DYNAMIC_IPADDR and HELO_DYNAMIC_DHCP

In this testcase SpamAssassin can't parse the "(EHLO homepc)" in the Received
header from mail.gmx.net. It sets the helo value to the rdns value and thus
causes HELO_DYNAMIC_IPADDR and HELO_DYNAMIC_DHCP to match.



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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4576





------- Additional Comments From daniel-gl@gmx.net  2006-07-26 22:05 -------
Created an attachment (id=3612)
 --> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=3612&action=view)
Fix to parse HELO in Received header from GMX mailserver




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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From jm@jmason.org  2005-09-09 10:17 -------
'The don't look if there is just one hop, the just match the IP in the
untrusted list.'

Incorrect.  They match only the *first* group of items in the untrusted list,
using /^[^\]]+/. If there's >1 untrusted line, it'd match only the most recent.

However, that's not the bug here.   Instead, the bug is indeed a misparsing of
the Received header line format... there is no numeric HELO in those lines,
anyway!   Here's debug output:

[18063] dbg: received-header: parsed as [ ip=195.141.101.242
rdns=falafel.dataflow.ch helo=mail.dataflow.ch by=mx2.imp.ch ident= envfrom=xxx
intl=0 id=j889KE9j063340 auth= ]
[18063] dbg: received-header: relay 195.141.101.242 trusted? no internal? no
[18063] dbg: received-header: parsed as [ ip=127.0.0.1 rdns=localhost
helo=falafel.dataflow.ch by=falafel.dataflow.ch ident= envfrom= intl=0
id=CE7241CF1A2 auth= ]
[18063] dbg: received-header: relay 127.0.0.1 trusted? no internal? no
[18063] dbg: received-header: parsed as [ ip=213.165.64.20 rdns=mail.gmx.de
helo=mail.gmx.net by=falafel.dataflow.ch ident= envfrom= intl=0 id=A2F591CF19D
auth= ]
[18063] dbg: received-header: relay 213.165.64.20 trusted? no internal? no
[18063] dbg: received-header: parsed as [ ip=81.173.228.159 rdns=
helo=15.254.203.62.cust.bluewin.ch by=hamburg134 ident= envfrom= intl=0 id= auth= ]

note "helo=15.254.203.62.cust.bluewin.ch" in the last line -- that's incorrect.
That's the bug. We need to add a pattern to Received.pm to correctly parse GMX
Received lines for HELO.


PS: btw, the most efficient way to report these cases is to open a bug
with:

  - a sample message as attachment, with all headers
  - the user_prefs file with the trusted/internal_networks lines
  - debug output from "spamassassin -D -L -t < msg"

the latter in particular has some key info that helps.

PPS: it'd be nice if we could match up with the GMX SMTP AUTH signature, as we
do for other common MTAs, but that "X-Authenticated" header looks very easily
forgeable. :(





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

[Bug 4576] Not correctly parsing HELO from Received headers for some senders

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4576





------- Additional Comments From jm@jmason.org  2007-02-04 14:24 -------
sure, if you want -- I suspect some of the Received parser code may
be incompatible for a simple patch though...



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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From mbr@freebsd.org  2005-09-08 14:08 -------
Created an attachment (id=3120)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=3120&action=view)
Sample FPS

All IP's except the last one are in the trust list. But this
should really match. Something is broken here.



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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576


marco@websource.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marco@websource.ch






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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From mbr@freebsd.org  2005-09-10 00:33 -------

Hi,

> I'm confused... if helo=SERVER and rdns=15.254.203.62.cust.bluewin.ch (which
> forwards to the 62.203.254.15) what is "[81.173.228.159]" (which rdns to
> xdsl-81-173-228-159.netcologne.de.)?
> 

Yes in this example has been a forwarding in place.

> Why would be want to extend the trust path to them (a freemail provider) anyway?
>  To me this part is a non-issue.  If for some weird reason you wanted to you
> could just use whitelist_from_rcvd * gmx.de.

Because here in europe almost everybody has got a GMX account for private mail.
And whistlisting is a no-go. What about those who forward mails from *.gmx
to their ISP account. Do I want all SPAM sent to gmx accounts passing our
spamassassin ?

Beleave me, with our trustlist I've got very very good experiences. GMX
has some sender limits in place as we have ourself in our freemail
configuration. If a spammer tries to abuse it and sends more than 200 mails
per hour, we begin to send them through spamassassin and check those mails.
The account is blocked then if we detect spam signs.

Just have a look here: These mails here are all possible FPS candidats from this
night. Before I made a fixup ruleset to have statistics, we got about 200 mails
per day with >= 5 SA points. All of them where false positives.

The ruleset I use:

header          __RCVD_GMX              Received =~ /\.gmx\.(?:de|ch|at|net)/i
header          __X_AUTH_SMTP           X-Authenticated =~ /[a-z0-9]+/i
header          __RCVD_QMAIL            Received =~ /qmail/i
meta            QMAIL_NUMERIC_HELO      (__RCVD_QMAIL + __X_AUTH_SMTP +
NUMERIC_HELO == 3)
meta            QMAIL_RCVD_IPADDR2      (__RCVD_QMAIL + __X_AUTH_SMTP +
HELO_DYNAMIC_IPADDR2 == 3)
meta            QMAIL_RCVD_SPLIT_IP     (__RCVD_QMAIL + __X_AUTH_SMTP +
HELO_DYNAMIC_SPLIT_IP == 3)
meta            QMAIL_HELO_DHCP         (__RCVD_QMAIL + __X_AUTH_SMTP +
HELO_DYNAMIC_DHCP == 3)
meta            QMAIL_NEED_FIX          (__RCVD_QMAIL + __X_AUTH_SMTP +
__RCVD_GMX + __RCVD_GMX + __RCVD_GMX == 2)
describe        QMAIL_RCVD_IPADDR2      QMAIL FPS
describe        QMAIL_RCVD_SPLIT_IP     QMAIL FPS
describe        QMAIL_HELO_DHCP         QMAIL FPS
describe        QMAIL_NUMERIC_HELO      QMAIL FPS
describe        QMAIL_NEED_FIX          Broken QMAIL
score           QMAIL_RCVD_IPADDR2      -1.5
score           QMAIL_RCVD_SPLIT_IP     -2.9
score           QMAIL_HELO_DHCP         -3.1
score           QMAIL_NUMERIC_HELO      -1.5
score           QMAIL_NEED_FIX          0.001

Sep 10 00:00:43 mx2 sm-mta[47709]: j89M0aJ0047709: Milter add: header:
X-Spam-Status: Yes, hits=5.727 required=5 scantime="6.0655 seconds"
tests=BAYES_50,EXTRA_MPART_TYPE,\n\tHELO_DYNAMIC_HCC,HELO_DYNAMIC_IPADDR2,HTML_50_60,\n\tHTML_MESSAGE,QMAIL_RCVD_IPADDR2,TDE_RO_BV_GRATIS

Sep 10 01:49:53 mx2 sm-mta[78747]: j89NnmV3078747: Milter add: header:
X-Spam-Status: No, hits=1.292 required=5 scantime="4.0460 seconds"
tests=BAYES_60,HELO_DYNAMIC_IPADDR2,\n\tHELO_DYNAMIC_SPLIT_IP,HTML_MESSAGE,QMAIL_RCVD_IPADDR2,\n\tQMAIL_RCVD_SPLIT_IP,RCVD_NUMERIC_HELO

Sep 10 01:51:29 mx2 sm-mta[80563]: j89NpOrB080563: Milter add: header:
X-Spam-Status: No, hits=-0.033 required=5 scantime="2.6899 seconds"
tests=BAYES_50,HELO_DYNAMIC_DHCP,\n\tQMAIL_HELO_DHCP

Sep 10 01:51:30 mx2 sm-mta[80564]: j89NpOuc080564: Milter add: header:
X-Spam-Status: No, hits=-0.033 required=5 scantime="4.5765 seconds"
tests=BAYES_50,HELO_DYNAMIC_DHCP,\n\tQMAIL_HELO_DHCP

Sep 10 01:51:32 mx2 sm-mta[80562]: j89NpOh3080562: Milter add: header:
X-Spam-Status: No, hits=-0.033 required=5 scantime="6.1371 seconds"
tests=BAYES_50,HELO_DYNAMIC_DHCP,\n\tQMAIL_HELO_DHCP

Sep 10 02:07:20 mx2 sm-mta[99235]: j8A07BeF099235: Milter add: header:
X-Spam-Status: Yes, hits=5.348 required=5 scantime="7.5679 seconds"
tests=BAYES_50,DATE_IN_PAST_12_24,\n\tHELO_DYNAMIC_HCC,HELO_DYNAMIC_IPADDR2,QMAIL_RCVD_IPADDR2

Sep 10 06:16:59 mx2 sm-mta[90308]: j8A4Gs01090308: Milter add: header:
X-Spam-Status: No, hits=3.429 required=5 scantime="3.8332 seconds"
tests=BAYES_50,HELO_DYNAMIC_DHCP,\n\tHELO_DYNAMIC_IPADDR,HTML_MESSAGE,MSGID_FROM_MTA_ID,\n\tNO_REAL_NAME,QMAIL_HELO_DHCP

Sep 10 07:46:13 mx2 sm-mta[94131]: j8A5k8RR094131: Milter add: header:
X-Spam-Status: No, hits=0.467 required=5 scantime="4.1367 seconds"
tests=BAYES_50,HELO_DYNAMIC_DHCP,\n\tMSGID_FROM_MTA_ID,QMAIL_HELO_DHCP

Sep 10 08:27:43 mx2 sm-mta[45038]: j8A6RdcI045038: Milter add: header:
X-Spam-Status: No, hits=0.668 required=5 scantime="3.1729 seconds"
tests=BAYES_50,HELO_DYNAMIC_DHCP,\n\tHTML_IMAGE_ONLY_28,HTML_MESSAGE,QMAIL_HELO_DHCP

Sep 10 08:27:43 mx2 sm-mta[45035]: j8A6RdbR045035: Milter add: header:
X-Spam-Status: No, hits=0.668 required=0 scantime="3.2731 seconds"
tests=BAYES_50,HELO_DYNAMIC_DHCP,\n\tHTML_IMAGE_ONLY_28,HTML_MESSAGE,QMAIL_HELO_DHCP

Sep 10 08:27:44 mx2 sm-mta[45037]: j8A6RdnK045037: Milter add: header:
X-Spam-Status: No, hits=-4.233 required=5 scantime="3.6046 seconds"
tests=BAYES_00,HELO_DYNAMIC_DHCP,\n\tHTML_IMAGE_ONLY_28,HTML_MESSAGE,QMAIL_HELO_DHCP

Sep 10 08:39:20 mx2 sm-mta[59233]: j8A6dGjq059233: Milter add: header:
X-Spam-Status: No, hits=-2.412 required=5 scantime="3.1317 seconds"
tests=BAYES_05,HELO_DYNAMIC_IPADDR2,\n\tHTML_MESSAGE,QMAIL_RCVD_IPADDR2

Sep 10 08:39:58 mx2 sm-mta[59871]: j8A6do14059871: Milter add: header:
X-Spam-Status: No, hits=0.001 required=5 scantime="6.2905 seconds"
tests=BAYES_50,HELO_DYNAMIC_IPADDR2,\n\tQMAIL_RCVD_IPADDR2

Sep 10 08:54:48 mx2 sm-mta[78216]: j8A6sfRj078216: Milter add: header:
X-Spam-Status: No, hits=-4.9 required=7 scantime="3.3006 seconds"
tests=BAYES_00,HELO_DYNAMIC_IPADDR2,\n\tQMAIL_RCVD_IPADDR2

Sep 10 08:56:46 mx2 sm-mta[80703]: j8A6ug4u080703: Milter add: header:
X-Spam-Status: No, hits=0.001 required=5 scantime="2.8540 seconds"
tests=BAYES_50,HELO_DYNAMIC_IPADDR2,\n\tQMAIL_RCVD_IPADDR2

Sep 10 08:58:15 mx2 sm-mta[82698]: j8A6wAkH082698: Milter add: header:
X-Spam-Status: No, hits=-3.974 required=5 scantime="3.4582 seconds"
tests=BAYES_00,HELO_DYNAMIC_IPADDR2,\n\tHELO_DYNAMIC_SPLIT_IP,HTML_50_60,HTML_MESSAGE,\n\tQMAIL_RCVD_IPADDR2,QMAIL_RCVD_SPLIT_IP,\n\tRCVD_NUMERIC_HELO

Sep 10 09:12:45 mx2 sm-mta[1385]: j8A7CdC7001385: Milter add: header:
X-Spam-Status: No, hits=0.102 required=5 scantime="4.1043 seconds"
tests=BAYES_50,HELO_DYNAMIC_DHCP,HTML_50_60,\n\tHTML_MESSAGE,QMAIL_HELO_DHCP

Sep 10 09:23:59 mx2 sm-mta[15841]: j8A7NtmN015841: Milter add: header:
X-Spam-Status: No, hits=0.792 required=5 scantime="3.3552 seconds"
tests=BAYES_50,HELO_DYNAMIC_IPADDR2,\n\tHELO_DYNAMIC_SPLIT_IP,QMAIL_RCVD_IPADDR2,\n\tQMAIL_RCVD_SPLIT_IP,RCVD_NUMERIC_HELO





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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From mbr@freebsd.org  2005-09-10 01:01 -------
Created an attachment (id=3124)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=3124&action=view)
Sample FPS Mail, not from GMX this time




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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From spamassassin@dostech.ca  2005-09-09 21:29 -------
Received: from 15.254.203.62.cust.bluewin.ch (EHLO SERVER) [81.173.228.159]
        by hamburg134 with SMTP; 23 Jan 2005 11:53:28 -0000

I'm confused... if helo=SERVER and rdns=15.254.203.62.cust.bluewin.ch (which
forwards to the 62.203.254.15) what is "[81.173.228.159]" (which rdns to
xdsl-81-173-228-159.netcologne.de.)?



Martin:
"Now SA thinks that there has been no authentification in place, and
marks the last hop as untrusted. Too bad ..."

Justin:
"PPS: it'd be nice if we could match up with the GMX SMTP AUTH signature, as we
do for other common MTAs, but that "X-Authenticated" header looks very easily
forgeable. :("


Why would be want to extend the trust path to them (a freemail provider) anyway?
 To me this part is a non-issue.  If for some weird reason you wanted to you
could just use whitelist_from_rcvd * gmx.de.



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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From mbr@freebsd.org  2005-09-10 01:18 -------
Created an attachment (id=3126)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=3126&action=view)
Again the ruleset, this time a bit cleaner.




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

[Bug 4576] Not correctly parsing HELO from Received headers for some senders

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4576


felicity@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal
          Component|Rules (Eval Tests)          |Libraries
            Summary|FPS in NUMERIC_HELO,        |Not correctly parsing HELO
                   |HELO_DYNAMIC_IPADDR2 in     |from Received headers for
                   |mails from                  |some senders
                   |GMX.(ch|de|at|net)          |
   Target Milestone|Undefined                   |3.2.0






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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4576





------- Additional Comments From mbr@freebsd.org  2005-09-09 02:47 -------
Ok, I think I've found the problem.

GMX is a freemailer and uses SMTP-Auth to authorize people from all over the
world to send mail to them.

Qmail seems to use a X-Authenticated: header to tell us that they've used
SMPT-AUTH. Of course every relay after or a Spammer itself can add this header.

Now SA thinks that there has been no authentification in place, and
marks the last hop as untrusted. Too bad ...

Any idea what we can do here ?

Martin



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

[Bug 4576] FPS in NUMERIC_HELO, HELO_DYNAMIC_IPADDR2 in mails from GMX.(ch|de|at|net)

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4576





------- Additional Comments From daniel-gl@gmx.net  2006-07-26 21:45 -------
The problem disappears if we make SpamAssassin correctly parse the HELO in the
Received header by adding

elsif (/(?:HELO|EHLO) ([-A-Za-z0-9\.]+)[^-A-Za-z0-9\.]/) { $helo = $1; }

to the block below "# FALL-THROUGH: OK, let's try some general patterns" in
Received.pm.

I stumbled over this problem when sending mail from GMX to GMX(!).
They use SpamAssassin on their servers and probably lowered the score of the
HELO_DYNAMIC_* rules because of all the false positives, but these rules still
have an influence on the result.
A long discussion with the GMX support (me proposing a change to their modified
qmail servers) led nowhere.



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

[Bug 4576] Not correctly parsing HELO from Received headers for some senders

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4576





------- Additional Comments From jm@jmason.org  2007-02-04 11:27 -------
this needs some supporting test cases -- sample mail messages that illustrate
the problem and the fix.



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