You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by kh...@apache.org on 2010/01/22 01:00:27 UTC

svn commit: r901931 - /spamassassin/trunk/rulesrc/sandbox/khopesh/20_bug_6299.cf

Author: khopesh
Date: Fri Jan 22 00:00:27 2010
New Revision: 901931

URL: http://svn.apache.org/viewvc?rev=901931&view=rev
Log:
update to RCVD_ILLEGAL_IP (as T_KHOP_RCVD_ILLEGAL_IP) and some auxiliary tests

Added:
    spamassassin/trunk/rulesrc/sandbox/khopesh/20_bug_6299.cf

Added: spamassassin/trunk/rulesrc/sandbox/khopesh/20_bug_6299.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/khopesh/20_bug_6299.cf?rev=901931&view=auto
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/khopesh/20_bug_6299.cf (added)
+++ spamassassin/trunk/rulesrc/sandbox/khopesh/20_bug_6299.cf Fri Jan 22 00:00:27 2010
@@ -0,0 +1,21 @@
+# includes updates through 2010-01-19 (as last referenced 2010-01-21)
+# via http://www.iana.org/assignments/ipv4-address-space/
+# updates itemized by date at http://www.cymru.com/Documents/bogon-list.html
+header	 T_KHOP_RCVD_ILLEGAL_IP	X-Spam-Relays-Untrusted =~ / (?:by|ip)=(?:[05]|14|23|3[1679]|4[29]|50|1(?:0[1234567]|7[679]|8[15])|22[3-9]|2[3-9]\d|\d{4,}|[3-9]\d\d)\.\d+\.\d+\.\d+ /
+describe T_KHOP_RCVD_ILLEGAL_IP	Received: contains reserved or unallocated IP
+
+# TEST-NET addresses are for documentation and examples only
+header	 RCVD_TEST_NET	X-Spam-Relays-Untrusted =~ / (?:by|ip)=(?:192\.0\.2|198\.51\.100|203\.0\.113)\.\d+ /
+describe RCVD_TEST_NET	Received: uses test IP address, violating RFC 5737
+
+# My understanding of the link-local block is that it is used by DHCP-driven
+# clients that cannot find a DHCP server, allowing local-only communications
+# (like 127/8) plus anything *directly* connected to it (that means no
+# routable addresses are available, e.g. in an ad hoc network).
+header	 RCVD_LINK_LOCAL	X-Spam-Relays-Untrusted =~ / (?:by|ip)=169\.254\.d+\.\d+ /
+describe RCVD_LINK_LOCAL	Received: uses link-local IP, violating RFC 3927
+
+# NOTE, THIS NEEDS IPv6 HELP
+header	 T_RCVD_INVALID_IP	X-Spam-Relays-Untrusted =~ / (?:by|ip)=(?!(?:(?:\.(?:1?\d?\d|2(?[0-4]\d|5[0-4])))\.(?:1?\d?\d|2(?[0-4]\d|5[0-4]))){3} )/
+describe T_RCVD_INVALID_IP	Received: contains an invalidly formatted IP
+