comparison dnsbl.conf @ 259:be939802c64e

add recipient rate limits by email from address or domain
author Carl Byington <carl@five-ten-sg.com>
date Sat, 21 Jul 2012 08:34:04 -0700
parents d6d5c50b9278
children e118fd2c6af0
comparison
equal deleted inserted replaced
258:7a16904fec66 259:be939802c64e
5 5
6 // outbound content filtering to prevent our own customers from sending spam 6 // outbound content filtering to prevent our own customers from sending spam
7 content on { 7 content on {
8 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; 8 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s";
9 uribl multi.surbl.org "Mail containing %s rejected - surbl; see http://www.rulesemporium.com/cgi-bin/uribl.cgi?bl0=1&domain0=%s"; 9 uribl multi.surbl.org "Mail containing %s rejected - surbl; see http://www.rulesemporium.com/cgi-bin/uribl.cgi?bl0=1&domain0=%s";
10 #uribl black.uribl.com "Mail containing %s rejected - uribl; see http://l.uribl.com/?d=%s"; 10 #uribl multi.uribl.com "Mail containing %s rejected - uribl; see http://l.uribl.com/?d=%s";
11 ignore { include "hosts-ignore.conf"; }; 11 ignore { include "hosts-ignore.conf"; };
12 tld { include "tld.conf"; }; 12 tld { include "tld.conf"; };
13 cctld { include "cctld.conf"; }; 13 cctld { include "cctld.conf"; };
14 html_tags { include "html-tags.conf"; }; 14 html_tags { include "html-tags.conf"; };
15 html_limit on 20 "Mail containing excessive bad html tags rejected"; 15 html_limit on 20 "Mail containing excessive bad html tags rejected";
26 // we only send bounces to our own customers 26 // we only send bounces to our own customers
27 env_from unknown { 27 env_from unknown {
28 "<>" black; 28 "<>" black;
29 }; 29 };
30 30
31 // hourly recipient rate limit by smtp auth client id 31 // hourly recipient rate limit by smtp auth client id,
32 // or unauthenticated mail from address
32 // default hourly limit is 30 33 // default hourly limit is 30
33 // daily limits are 4 times the hourly limit 34 // daily limits are 4 times the hourly limit
34 rate_limit 30 4 { // default 35 rate_limit 30 4 { // default
35 #fred 100; // override default limits 36 #fred 100; // override default limits
36 #joe 10; // "" 37 #joe 10; // ""
38 #sam@somedomain.tld 500;
39 #@otherdomain.tld 100;
37 }; 40 };
38 }; 41 };
39 42
40 context main { 43 context main {
41 dnsbl localp partial.blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s"; 44 dnsbl localp partial.blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s";
47 dnswl_list dnswl.org; 50 dnswl_list dnswl.org;
48 51
49 content on { 52 content on {
50 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; 53 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s";
51 uribl multi.surbl.org "Mail containing %s rejected - surbl; see http://www.rulesemporium.com/cgi-bin/uribl.cgi?bl0=1&domain0=%s"; 54 uribl multi.surbl.org "Mail containing %s rejected - surbl; see http://www.rulesemporium.com/cgi-bin/uribl.cgi?bl0=1&domain0=%s";
52 #uribl black.uribl.com "Mail containing %s rejected - uribl; see http://l.uribl.com/?d=%s"; 55 #uribl multi.uribl.com "Mail containing %s rejected - uribl; see http://l.uribl.com/?d=%s";
53 ignore { include "hosts-ignore.conf"; }; 56 ignore { include "hosts-ignore.conf"; };
54 tld { include "tld.conf"; }; 57 tld { include "tld.conf"; };
55 cctld { include "cctld.conf"; }; 58 cctld { include "cctld.conf"; };
56 html_tags { include "html-tags.conf"; }; 59 html_tags { include "html-tags.conf"; };
57 html_limit off; 60 html_limit off;