Mercurial > dnsbl
comparison 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 |
comparison
equal
deleted
inserted
replaced
167:9b129ed78d7d | 168:6bac960af6b4 |
---|---|
10 | 10 |
11 </partintro> | 11 </partintro> |
12 | 12 |
13 <refentry id="@PACKAGE@.1"> | 13 <refentry id="@PACKAGE@.1"> |
14 <refentryinfo> | 14 <refentryinfo> |
15 <date>2007-07-27</date> | 15 <date>2007-08-30</date> |
16 </refentryinfo> | 16 </refentryinfo> |
17 | 17 |
18 <refmeta> | 18 <refmeta> |
19 <refentrytitle>@PACKAGE@</refentrytitle> | 19 <refentrytitle>@PACKAGE@</refentrytitle> |
20 <manvolnum>1</manvolnum> | 20 <manvolnum>1</manvolnum> |
324 <listitem><para> | 324 <listitem><para> |
325 If the answer is inherit, we repeat the envelope from search in the | 325 If the answer is inherit, we repeat the envelope from search in the |
326 parent context. | 326 parent context. |
327 </para></listitem> | 327 </para></listitem> |
328 <listitem><para> | 328 <listitem><para> |
329 The dns lists specified in the filtering context are checked and the | 329 If the mail has not been accepted or rejected yet, the dns lists |
330 mail is rejected if any list has an A record for the standard dns based | 330 specified in the filtering context are checked and the mail is rejected |
331 lookup scheme (reversed octets of the client followed by the dns | 331 if any list has an A record for the standard dns based lookup scheme |
332 suffix). | 332 (reversed octets of the client followed by the dns suffix). |
333 </para></listitem> | |
334 <listitem><para> | |
335 If the mail has not been accepted or rejected yet, and the filtering | |
336 context specifies a non-empty generic regular expression, then we check | |
337 the fully qualified client name (obtained via the sendmail macro "_"). | |
338 The mail is rejected if the client name matches the specified regular | |
339 expression. | |
333 </para></listitem> | 340 </para></listitem> |
334 <listitem><para> | 341 <listitem><para> |
335 If the mail has not been accepted or rejected yet, we look for a | 342 If the mail has not been accepted or rejected yet, we look for a |
336 verification context, which is the closest ancestor of the filtering | 343 verification context, which is the closest ancestor of the filtering |
337 context that both specifies a verification host, and which covers the | 344 context that both specifies a verification host, and which covers the |
529 </refentry> | 536 </refentry> |
530 | 537 |
531 | 538 |
532 <refentry id="@PACKAGE@.conf.5"> | 539 <refentry id="@PACKAGE@.conf.5"> |
533 <refentryinfo> | 540 <refentryinfo> |
534 <date>2007-07-27</date> | 541 <date>2007-08-30</date> |
535 </refentryinfo> | 542 </refentryinfo> |
536 | 543 |
537 <refmeta> | 544 <refmeta> |
538 <refentrytitle>@PACKAGE@.conf</refentrytitle> | 545 <refentrytitle>@PACKAGE@.conf</refentrytitle> |
539 <manvolnum>5</manvolnum> | 546 <manvolnum>5</manvolnum> |
562 </para> | 569 </para> |
563 | 570 |
564 <literallayout class="monospaced"><![CDATA[ | 571 <literallayout class="monospaced"><![CDATA[ |
565 CONFIG = {CONTEXT ";"}+ | 572 CONFIG = {CONTEXT ";"}+ |
566 CONTEXT = "context" NAME "{" {STATEMENT}+ "}" | 573 CONTEXT = "context" NAME "{" {STATEMENT}+ "}" |
567 STATEMENT = (DNSBL | DNSBLLIST | CONTENT | ENV-TO | VERIFY | | 574 STATEMENT = (DNSBL | DNSBLLIST | CONTENT | ENV-TO | VERIFY | GENERIC |
568 AUTOWHITE | CONTEXT | ENV-FROM | RATE-LIMIT) ";" | 575 | AUTOWHITE | CONTEXT | ENV-FROM | RATE-LIMIT) ";" |
569 | 576 |
570 DNSBL = "dnsbl" NAME DNSPREFIX ERROR-MSG1 | 577 DNSBL = "dnsbl" NAME DNSPREFIX ERROR-MSG1 |
571 | 578 |
572 DNSBLLIST = "dnsbl_list" {NAME}+ | 579 DNSBLLIST = "dnsbl_list" {NAME}+ |
573 | 580 |
597 ENV-TO = "env_to" "{" {(TO-ADDR | DCC-TO)}+ "}" | 604 ENV-TO = "env_to" "{" {(TO-ADDR | DCC-TO)}+ "}" |
598 TO-ADDR = ADDRESS [";"] | 605 TO-ADDR = ADDRESS [";"] |
599 DCC-TO = "dcc_to" ("ok" | "many") "{" DCCINCLUDEFILE "}" ";" | 606 DCC-TO = "dcc_to" ("ok" | "many") "{" DCCINCLUDEFILE "}" ";" |
600 | 607 |
601 VERIFY = "verify" HOSTNAME ";" | 608 VERIFY = "verify" HOSTNAME ";" |
609 GENERIC = "generic" REGULAREXPRESSION ERROR-MSG4 ";" | |
610 ERROR-MSG4 = string containing exactly one %s replacement token | |
611 which is replaced with the client name | |
602 AUTOWHITE = "autowhite" DAYS FILENAME ";" | 612 AUTOWHITE = "autowhite" DAYS FILENAME ";" |
603 | 613 |
604 ENV_FROM = "env_from" [DEFAULT] "{" {(FROM-ADDR | DCC-FROM)}+ "}" | 614 ENV_FROM = "env_from" [DEFAULT] "{" {(FROM-ADDR | DCC-FROM)}+ "}" |
605 FROM-ADDR = ADDRESS VALUE [";"] | 615 FROM-ADDR = ADDRESS VALUE [";"] |
606 DCC-FROM = "dcc_from" "{" DCCINCLUDEFILE "}" ";" | 616 DCC-FROM = "dcc_from" "{" DCCINCLUDEFILE "}" ";" |