comparison 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
comparison
equal deleted inserted replaced
139:003026deaed1 140:4028de9b46dd
561 561
562 ENV_FROM = "env_from" [DEFAULT] "{" {(FROM-ADDR | DCC-FROM)}+ "}" 562 ENV_FROM = "env_from" [DEFAULT] "{" {(FROM-ADDR | DCC-FROM)}+ "}"
563 FROM-ADDR = ADDRESS VALUE [";"] 563 FROM-ADDR = ADDRESS VALUE [";"]
564 DCC-FROM = "dcc_from" "{" DCCINCLUDEFILE "}" ";" 564 DCC-FROM = "dcc_from" "{" DCCINCLUDEFILE "}" ";"
565 565
566 RATE-LIMIT = "rate_limit" "{" (RATE)+ "}" 566 RATE-LIMIT = "rate_limit" [DEFAULTLIMIT] "{" (RATE)+ "}"
567 RATE = USER LIMIT [";"] 567 RATE = USER LIMIT [";"]
568 568
569 DEFAULT = ("white" | "black" | "unknown" | "inherit" | "") 569 DEFAULT = ("white" | "black" | "unknown" | "inherit" | "")
570 ADDRESS = (USER@ | DOMAIN | USER@DOMAIN) 570 ADDRESS = (USER@ | DOMAIN | USER@DOMAIN)
571 VALUE = ("white" | "black" | "unknown" | CHILD-CONTEXT-NAME)]]></literallayout> 571 VALUE = ("white" | "black" | "unknown" | CHILD-CONTEXT-NAME)]]></literallayout>
600 // we only send bounces to our own customers 600 // we only send bounces to our own customers
601 env_from unknown { 601 env_from unknown {
602 "<>" black; 602 "<>" black;
603 }; 603 };
604 604
605 // per recipient rates - only available in the default (first top level) context 605 // per recipient rates - only used in the default (first top level) context
606 rate_limit { 606 rate_limit 30 { // default
607 " " 30; // default specified by user name composed of a single blank
608 fred 100; // override default limits 607 fred 100; // override default limits
609 joe 10; 608 joe 10; // ""
610 }; 609 };
611 }; 610 };
612 611
613 context sample { 612 context sample {
614 dnsbl local blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s"; 613 dnsbl local blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s";