diff xml/dnsbl.in @ 140:4028de9b46dd

cleanup smtp rate limit code
author carl
date Wed, 27 Sep 2006 08:00:13 -0700
parents f4746d8a12a3
children 31ff00ea6bfb
line wrap: on
line diff
--- a/xml/dnsbl.in	Tue Sep 26 15:21:17 2006 -0700
+++ b/xml/dnsbl.in	Wed Sep 27 08:00:13 2006 -0700
@@ -563,7 +563,7 @@
 FROM-ADDR  = ADDRESS VALUE [";"]
 DCC-FROM   = "dcc_from" "{" DCCINCLUDEFILE "}" ";"
 
-RATE-LIMIT = "rate_limit" "{" (RATE)+ "}"
+RATE-LIMIT = "rate_limit" [DEFAULTLIMIT] "{" (RATE)+ "}"
 RATE       = USER LIMIT [";"]
 
 DEFAULT    = ("white" | "black" | "unknown" | "inherit" | "")
@@ -602,11 +602,10 @@
         "<>"    black;
     };
 
-    // per recipient rates - only available in the default (first top level) context
-    rate_limit {
-        " "  30;    // default specified by user name composed of a single blank
+    // per recipient rates - only used in the default (first top level) context
+    rate_limit 30 { // default
         fred 100;   // override default limits
-        joe  10;
+        joe  10;    // ""
     };
 };