comparison xml/dnsbl.in @ 149:9581f6e62574

switch to second context wins in all cases
author carl
date Mon, 19 Feb 2007 15:57:24 -0800
parents 9330b8d6a56b
children c7fc218686f5
comparison
equal deleted inserted replaced
148:9330b8d6a56b 149:9581f6e62574
654 }; 654 };
655 env_from white {}; # white forces all unmatched from addresses (everyone in this case) to be whitelisted 655 env_from white {}; # white forces all unmatched from addresses (everyone in this case) to be whitelisted
656 # so all mail TO these env_to addresses is accepted 656 # so all mail TO these env_to addresses is accepted
657 }; 657 };
658 658
659 context abuse {
660 dnsbl_list xbl;
661 content off {};
662 env_to {
663 abuse@; # no content filtering on abuse reports
664 postmaster@; # ""
665 };
666 env_from unknown {}; # ignore all parent white/black listing
667 };
668
669 context minimal { 659 context minimal {
670 dnsbl_list sbl dul; 660 dnsbl_list sbl dul;
671 content on {}; 661 content on {};
672 env_to { 662 env_to {
673 sales@mydomain.com; 663 sales@mydomain.com;
728 customer2a.com; 718 customer2a.com;
729 customer2b.com; 719 customer2b.com;
730 }; 720 };
731 }; 721 };
732 722
723 # this is at the end, so that these abuse@ and postmaster@ entries will
724 # override any conflicting entries inside the customer contexts.
725 context abuse {
726 dnsbl_list xbl;
727 content off {};
728 env_to {
729 abuse@; # no content filtering on abuse reports
730 postmaster@; # ""
731 };
732 env_from unknown {}; # ignore all parent white/black listing
733 };
734
733 env_from unknown { 735 env_from unknown {
734 dcc_from { include "/var/dcc/whitecommon"; }; # copy the dcc OK/MANY values (env_from, substitute mail_host) into this context 736 dcc_from { include "/var/dcc/whitecommon"; }; # copy the dcc OK/MANY values (env_from, substitute mail_host) into this context
735 abuse@ abuse; # replies to abuse reports use the abuse context 737 abuse@ abuse; # replies to abuse reports use the abuse context
736 yahoo.com black; # don't take mail from yahoo 738 yahoo.com black; # don't take mail from yahoo
737 spammer@example.com black; 739 spammer@example.com black;