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

Mark Martinec <[email protected]> changed:

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

--- Comment #1 from Mark Martinec <[email protected]> 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.

Reply via email to