diff xml/dnsbl.in @ 153:8d7c439bb6fa

add auto whitelisting
author carl
date Sat, 07 Jul 2007 16:10:39 -0700
parents c7fc218686f5
children a220bfb9211f
line wrap: on
line diff
--- a/xml/dnsbl.in	Sat Jul 07 10:26:31 2007 -0700
+++ b/xml/dnsbl.in	Sat Jul 07 16:10:39 2007 -0700
@@ -538,7 +538,7 @@
 CONFIG     = {CONTEXT ";"}+
 CONTEXT    = "context" NAME "{" {STATEMENT}+ "}"
 STATEMENT  = (DNSBL | DNSBLLIST | CONTENT | ENV-TO | VERIFY |
-                             CONTEXT | ENV-FROM | RATE-LIMIT) ";"
+                      AUTOWHITE | CONTEXT | ENV-FROM | RATE-LIMIT) ";"
 
 DNSBL      = "dnsbl" NAME DNSPREFIX ERROR-MSG1
 
@@ -571,6 +571,7 @@
 DCC-TO     = "dcc_to" ("ok" | "many") "{" DCCINCLUDEFILE "}" ";"
 
 VERIFY     = "verify" HOSTNAME ";"
+AUTOWHITE  = "autowhite" DAYS FILENAME ";"
 
 ENV_FROM   = "env_from" [DEFAULT] "{" {(FROM-ADDR | DCC-FROM)}+ "}"
 FROM-ADDR  = ADDRESS VALUE [";"]
@@ -701,8 +702,12 @@
             customer1b.com;
         };
 
+        # we can reject unknown users
         verify mail.customer1.com;
 
+        # whitelist anyone to whom we have sent mail in the last 90 days
+        autowhite 90 "autowhite/customer1";
+
         context customer1a {
             env_to {
                 customer1a.com;