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 2009/11/18 11:12:08 UTC

[Bug 6237] New: RCVD_ILLEGAL_IP with ip 002/08

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6237

           Summary: RCVD_ILLEGAL_IP with ip 002/08
           Product: Spamassassin
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Rules
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: a.crippa@wifisolution.it


The IP regex in RelayEval still contains the 002/8 addresses, but the IANA
allocated them in September.

I receive some mails with source address like 2.253.*.* that trigger
RCVD_ILLEGAL_IP rule

the rule should be now
(?:[0157]|(?!127.0.0.)127|22[3-9]|2[3-9]\d|[12]\d{3,}|[3-9]\d\d+)\.\d+\.\d+\.\d+$/x);

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6237] RCVD_ILLEGAL_IP with ip 002/08

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

Mark Martinec <Ma...@ijs.si> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|Other                       |All
   Target Milestone|Undefined                   |3.3.0

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6237] RCVD_ILLEGAL_IP with ip 002/08

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

Mark Martinec <Ma...@ijs.si> changed:

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

--- Comment #1 from Mark Martinec <Ma...@ijs.si> 2009-11-19 09:34:20 UTC ---
> the rule should be now
> (?:[0157]|(?!127.0.0.)127|22[3-9]|2[3-9]\d|[12]\d{3,}|[3-9]\d\d+)\.\d+\.\d+\.\d+

There is nothing wrong with 127.[1-2]* .
The 127.0.0.0/8 in its entirety is given to loopback interfaces.
It is up to the sw running on a host to use it as it pleases.


Updating:

--- RelayEval.pm        (revision 882190)
+++ RelayEval.pm        (working copy)
@@ -101,9 +101,11 @@

   foreach my $rcvd ( @{$pms->{relays_untrusted}} ) {
     # (note this might miss some hits if the Received.pm skips any invalid
IPs)
+    # do we really want to chase the more recent IANA allocations?
+    # check: http://www.iana.org/assignments/ipv4-address-space/
     foreach my $check ( $rcvd->{ip}, $rcvd->{by} ) {
       return 1 if ($check =~ /^
-       (?:[01257]|22[3-9]|2[3-9]\d|[12]\d{3,}|[3-9]\d\d+)\.\d+\.\d+\.\d+
+       (?:[0157]|22[4-9]|2[3-9]\d|[12]\d{3,}|[3-9]\d\d+) \.\d+\.\d+\.\d+
        $/x);
     }
   }


Bug 6237 - RCVD_ILLEGAL_IP with ip 2.0.0.0/8 (and 223.0.0.0/8)
Sending lib/Mail/SpamAssassin/Plugin/RelayEval.pm
Committed revision 882213.

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6237] RCVD_ILLEGAL_IP with ip 002/08

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

--- Comment #2 from Mark Martinec <Ma...@ijs.si> 2010-01-20 03:00:59 UTC ---
See also Bug 6295 for followups
(the 1.0.0.0/8 has also been allocated now).

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.