diff xml/dnsbl.in @ 168:6bac960af6b4

add generic reverse dns filtering regex
author carl
date Thu, 30 Aug 2007 11:08:46 -0700
parents 9b129ed78d7d
children bd33eaccfed8
line wrap: on
line diff
--- a/xml/dnsbl.in	Mon Aug 27 20:49:19 2007 -0700
+++ b/xml/dnsbl.in	Thu Aug 30 11:08:46 2007 -0700
@@ -12,7 +12,7 @@
 
     <refentry id="@PACKAGE@.1">
         <refentryinfo>
-            <date>2007-07-27</date>
+            <date>2007-08-30</date>
         </refentryinfo>
 
         <refmeta>
@@ -326,10 +326,17 @@
                     parent context.
                 </para></listitem>
                 <listitem><para>
-                    The dns lists specified in the filtering context are checked and the
-                    mail is rejected if any list has an A record for the standard dns based
-                    lookup scheme (reversed octets of the client followed by the dns
-                    suffix).
+                    If the mail has not been accepted or rejected yet, the dns lists
+                    specified in the filtering context are checked and the mail is rejected
+                    if any list has an A record for the standard dns based lookup scheme
+                    (reversed octets of the client followed by the dns suffix).
+                </para></listitem>
+                <listitem><para>
+                    If the mail has not been accepted or rejected yet, and the filtering
+                    context specifies a non-empty generic regular expression, then we check
+                    the fully qualified client name (obtained via the sendmail macro "_").
+                    The mail is rejected if the client name matches the specified regular
+                    expression.
                 </para></listitem>
                 <listitem><para>
                     If the mail has not been accepted or rejected yet, we look for a
@@ -531,7 +538,7 @@
 
     <refentry id="@PACKAGE@.conf.5">
         <refentryinfo>
-            <date>2007-07-27</date>
+            <date>2007-08-30</date>
         </refentryinfo>
 
         <refmeta>
@@ -564,8 +571,8 @@
             <literallayout class="monospaced"><![CDATA[
 CONFIG     = {CONTEXT ";"}+
 CONTEXT    = "context" NAME "{" {STATEMENT}+ "}"
-STATEMENT  = (DNSBL | DNSBLLIST | CONTENT | ENV-TO   | VERIFY |
-                      AUTOWHITE | CONTEXT | ENV-FROM | RATE-LIMIT) ";"
+STATEMENT  = (DNSBL | DNSBLLIST | CONTENT | ENV-TO   | VERIFY | GENERIC
+                    | AUTOWHITE | CONTEXT | ENV-FROM | RATE-LIMIT) ";"
 
 DNSBL      = "dnsbl" NAME DNSPREFIX ERROR-MSG1
 
@@ -599,6 +606,9 @@
 DCC-TO     = "dcc_to" ("ok" | "many") "{" DCCINCLUDEFILE "}" ";"
 
 VERIFY     = "verify" HOSTNAME ";"
+GENERIC    = "generic" REGULAREXPRESSION ERROR-MSG4 ";"
+ERROR-MSG4 = string containing exactly one %s replacement token
+             which is replaced with the client name
 AUTOWHITE  = "autowhite" DAYS FILENAME ";"
 
 ENV_FROM   = "env_from" [DEFAULT] "{" {(FROM-ADDR | DCC-FROM)}+ "}"