Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: devel

[Bug 6237] RCVD_ILLEGAL_IP with ip 002/08

 

 

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

Nov 18, 2009, 7:04 AM

Post #1 of 2 (323 views)
Permalink
[Bug 6237] RCVD_ILLEGAL_IP with ip 002/08

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

Mark Martinec <Mark.Martinec [at] ijs> 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.


bugzilla-daemon at bugzilla

Nov 19, 2009, 9:34 AM

Post #2 of 2 (277 views)
Permalink
[Bug 6237] RCVD_ILLEGAL_IP with ip 002/08 [In reply to]

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

Mark Martinec <Mark.Martinec [at] ijs> changed:

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

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

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.