Mercurial > dnsbl
comparison xml/dnsbl.in @ 178:d6531c702be3
embedded dcc filtering
author | carl |
---|---|
date | Thu, 04 Oct 2007 22:45:21 -0700 |
parents | 4ec928b24bab |
children | 8b86a894514d |
comparison
equal
deleted
inserted
replaced
177:a4d313c2460b | 178:d6531c702be3 |
---|---|
585 DNSBL = "dnsbl" NAME DNSPREFIX ERROR-MSG1 | 585 DNSBL = "dnsbl" NAME DNSPREFIX ERROR-MSG1 |
586 | 586 |
587 DNSBLLIST = "dnsbl_list" {NAME}+ | 587 DNSBLLIST = "dnsbl_list" {NAME}+ |
588 | 588 |
589 CONTENT = "content" ("on" | "off") "{" {CONTENT-ST}+ "}" | 589 CONTENT = "content" ("on" | "off") "{" {CONTENT-ST}+ "}" |
590 CONTENT-ST = (FILTER | URIBL | IGNORE | TLD | CCTLD | HTML-TAGS | | 590 CONTENT-ST = (FILTER | URIBL | IGNORE | TLD | CCTLD | HTML-TAGS | |
591 HTML-LIMIT | HOST-LIMIT | SPAMASS) ";" | 591 HTML-LIMIT | HOST-LIMIT | SPAMASS | REQUIRE | DCCGREY | |
592 SPAMASS = "spamassassin" INTEGER | 592 DCCBULK) ";" |
593 FILTER = "filter" DNSPREFIX ERROR-MSG2 | 593 FILTER = "filter" DNSPREFIX ERROR-MSG2 |
594 URIBL = "uribl" DNSPREFIX ERROR-MSG3 | 594 URIBL = "uribl" DNSPREFIX ERROR-MSG3 |
595 IGNORE = "ignore" "{" {HOSTNAME [";"]}+ "}" | 595 IGNORE = "ignore" "{" {HOSTNAME [";"]}+ "}" |
596 TLD = "tld" "{" {TLD [";"]}+ "}" | 596 TLD = "tld" "{" {TLD [";"]}+ "}" |
597 CCTLD = "cctld" "{" {TLD [";"]}+ "}" | 597 CCTLD = "cctld" "{" {TLD [";"]}+ "}" |
606 | 606 |
607 HTML-LIMIT = "html_limit" ("on" INTEGER ERROR-MSG | "off") | 607 HTML-LIMIT = "html_limit" ("on" INTEGER ERROR-MSG | "off") |
608 | 608 |
609 HOST-LIMIT = "host_limit" ("on" INTEGER ERROR-MSG | "off" | | 609 HOST-LIMIT = "host_limit" ("on" INTEGER ERROR-MSG | "off" | |
610 "soft" INTEGER) | 610 "soft" INTEGER) |
611 SPAMASS = "spamassassin" INTEGER | |
612 REQUIRE = "require_match" ("yes" | "no") | |
613 DCCGREY = "dcc_greylist" ("yes" | "no") | |
614 DCCBULK = "dcc_bulk_threshold" (INTEGER | "many" | "off") | |
611 | 615 |
612 ENV-TO = "env_to" "{" {(TO-ADDR | DCC-TO)}+ "}" | 616 ENV-TO = "env_to" "{" {(TO-ADDR | DCC-TO)}+ "}" |
613 TO-ADDR = ADDRESS [";"] | 617 TO-ADDR = ADDRESS [";"] |
614 DCC-TO = "dcc_to" ("ok" | "many") "{" DCCINCLUDEFILE "}" ";" | 618 DCC-TO = "dcc_to" ("ok" | "many") "{" DCCINCLUDEFILE "}" ";" |
615 | 619 |
650 html_tags { include "html-tags.conf"; }; | 654 html_tags { include "html-tags.conf"; }; |
651 html_limit on 20 "Mail containing excessive bad html tags rejected"; | 655 html_limit on 20 "Mail containing excessive bad html tags rejected"; |
652 html_limit off; | 656 html_limit off; |
653 host_limit on 20 "Mail containing excessive host names rejected"; | 657 host_limit on 20 "Mail containing excessive host names rejected"; |
654 host_limit soft 20; | 658 host_limit soft 20; |
655 spamassassin 4; | 659 spamassassin 4; |
660 require_match yes; | |
661 dcc_greylist yes; | |
662 dcc_bulk_threshold 50; | |
656 }; | 663 }; |
657 | 664 |
658 // backscatter prevention - don't send bounces for mail that we accepted but could not forward | 665 // backscatter prevention - don't send bounces for mail that we accepted but could not forward |
659 // we only send bounces to our own customers | 666 // we only send bounces to our own customers |
660 env_from unknown { | 667 env_from unknown { |
683 tld { include "tld.conf"; }; | 690 tld { include "tld.conf"; }; |
684 cctld { include "cctld.conf"; }; | 691 cctld { include "cctld.conf"; }; |
685 html_tags { include "html-tags.conf"; }; | 692 html_tags { include "html-tags.conf"; }; |
686 html_limit off; | 693 html_limit off; |
687 host_limit soft 20; | 694 host_limit soft 20; |
688 spamassassin 5; | 695 spamassassin 5; |
696 require_match yes; | |
697 dcc_greylist yes; | |
698 dcc_bulk_threshold 20; | |
689 }; | 699 }; |
690 | 700 |
691 generic "(^|[.-])(ppp|h|host)?([0-9]{1,3}[.-](Red-|dynamic[.-])?){4}" | 701 generic "(^|[.-])(ppp|h|host)?([0-9]{1,3}[.-](Red-|dynamic[.-])?){4}" |
692 "your mail server %s seems to have a generic name"; | 702 "your mail server %s seems to have a generic name"; |
693 | 703 |
717 env_from unknown {}; # ignore all parent white/black listing | 727 env_from unknown {}; # ignore all parent white/black listing |
718 }; | 728 }; |
719 | 729 |
720 context minimal { | 730 context minimal { |
721 dnsbl_list sbl; | 731 dnsbl_list sbl; |
722 content on {}; | 732 content on { |
723 spamassassin 10; | 733 spamassassin 10; |
734 dcc_bulk_threshold many; | |
735 }; | |
724 generic "^$ " " "; # regex cannot match, to disable generic rdns rejects | 736 generic "^$ " " "; # regex cannot match, to disable generic rdns rejects |
725 env_to { | 737 env_to { |
726 }; | 738 }; |
727 }; | 739 }; |
728 | 740 |