You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2006/10/17 11:46:26 UTC

svn commit: r464877 - /james/jspf/trunk/src/test/resources/org/apache/james/jspf/rfc4408-tests.yml

Author: norman
Date: Tue Oct 17 02:46:25 2006
New Revision: 464877

URL: http://svn.apache.org/viewvc?view=rev&rev=464877
Log:
New rfc4408 tests

Modified:
    james/jspf/trunk/src/test/resources/org/apache/james/jspf/rfc4408-tests.yml

Modified: james/jspf/trunk/src/test/resources/org/apache/james/jspf/rfc4408-tests.yml
URL: http://svn.apache.org/viewvc/james/jspf/trunk/src/test/resources/org/apache/james/jspf/rfc4408-tests.yml?view=diff&rev=464877&r1=464876&r2=464877
==============================================================================
--- james/jspf/trunk/src/test/resources/org/apache/james/jspf/rfc4408-tests.yml (original)
+++ james/jspf/trunk/src/test/resources/org/apache/james/jspf/rfc4408-tests.yml Tue Oct 17 02:46:25 2006
@@ -36,7 +36,7 @@
     spec: 4.3/1
     helo: mail.example.net
     host: 1.2.3.5
-    mailfrom: lyme.eater@A..example.com
+    mailfrom: lyme.eater@A...example.com
     result: none
   nolocalpart:
     spec: 4.3/2
@@ -1326,6 +1326,50 @@
     host: 1.2.3.5
     mailfrom: foo@e5.example.com
     result: [neutral, pass]
+  mech-at-limit:
+    description: >-
+      SPF implementations MUST limit the number of mechanisms and modifiers 
+      that do DNS lookups to at most 10 per SPF check.
+    spec: 10.1/6
+    helo: mail.example.com
+    host: 1.2.3.4
+    mailfrom: foo@e6.example.com
+    result: pass
+  mech-over-limit:
+    description: >-
+      SPF implementations MUST limit the number of mechanisms and modifiers 
+      that do DNS lookups to at most 10 per SPF check.
+    comment: >-
+      We don't check whether an implementation counts mechanisms before
+      or after evaluation.  The RFC is not clear on this.
+    spec: 10.1/6
+    helo: mail.example.com
+    host: 1.2.3.4
+    mailfrom: foo@e7.example.com
+    result: permerror
+  include-at-limit:
+    description: >-
+      SPF implementations MUST limit the number of mechanisms and modifiers 
+      that do DNS lookups to at most 10 per SPF check.
+    comment: >-
+      The part of the RFC that talks about MAY parse the entire record first
+      (4.6) is specific to syntax errors.  Processing limits is a different,
+      non-syntax issue.  Processing limits (10.1) specifically talks about
+      limits during a check.
+    spec: 10.1/6
+    helo: mail.example.com
+    host: 1.2.3.4
+    mailfrom: foo@e8.example.com
+    result: pass
+  include-over-limit:
+    description: >-
+      SPF implementations MUST limit the number of mechanisms and modifiers 
+      that do DNS lookups to at most 10 per SPF check.
+    spec: 10.1/6
+    helo: mail.example.com
+    host: 1.2.3.4
+    mailfrom: foo@e9.example.com
+    result: permerror
 zonedata:
   mail.example.com:
     - A: 1.2.3.4
@@ -1364,3 +1408,13 @@
     - PTR: e9.example.com.
     - PTR: e10.example.com.
     - PTR: e5.example.com.
+  e6.example.com:
+    - SPF: v=spf1 a mx a mx a mx a mx a ptr ip4:1.2.3.4 -all
+  e7.example.com:
+    - SPF: v=spf1 a mx a mx a mx a mx a ptr a ip4:1.2.3.4 -all
+  e8.example.com:
+    - SPF: v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all
+  inc.example.com:
+    - SPF: v=spf1 a a a a a a a a
+  e9.example.com:
+    - SPF: v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org