comparison dnsbl.conf @ 278:368572c57013

add limits on unique ip addresses per hour per authenticated user
author Carl Byington <carl@five-ten-sg.com>
date Tue, 17 Dec 2013 15:35:23 -0800
parents f92f24950bd3
children 4dd677e3b509
comparison
equal deleted inserted replaced
277:7163e9b04bdb 278:368572c57013
20 require_match yes; 20 require_match yes;
21 dcc_greylist yes; 21 dcc_greylist yes;
22 dcc_bulk_threshold 50; 22 dcc_bulk_threshold 50;
23 }; 23 };
24 24
25 // backscatter prevention - don't send bounces for mail that we accepted but could not forward 25 // backscatter prevention - do not send bounces for mail that we accepted but could not forward
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, or unauthenticated mail from address
32 // or unauthenticated mail from address 32 // hourly unique ip addresses by smtp auth client id, or unauthenticated mail from address
33 // default hourly limit is 30 33 // default hourly rate limit is 30
34 // daily limits are 4 times the hourly limit 34 // daily rate limits are 4 times the hourly limit
35 rate_limit 30 4 { // default 35 // default hourly unique ip addresses is 5
36 #fred 100; // override default limits 36 // daily unique ip addresses are 4 times the hourly limit
37 #joe 10; // "" 37 rate_limit 30 4 5 4 { // default
38 #"sam@somedomain.tld" 500; 38 fred 100 10; // override default limits
39 #"@otherdomain.tld" 100; 39 joe 10 2; // ""
40 "sam@somedomain.tld" 500 2;
41 "@otherdomain.tld" 100 2;
40 }; 42 };
41 }; 43 };
42 44
43 context main { 45 context main {
44 dnsbl localp partial.blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s"; 46 dnsbl localp partial.blackholes.five-ten-sg.com "Mail from %s rejected - local; see http://www.five-ten-sg.com/blackhole.php?%s";
50 dnswl_list dnswl.org; 52 dnswl_list dnswl.org;
51 require_rdns yes; 53 require_rdns yes;
52 54
53 content on { 55 content on {
54 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s"; 56 filter sbl-xbl.spamhaus.org "Mail containing %s rejected - sbl; see http://www.spamhaus.org/query/bl?ip=%s";
55 uribl multi.surbl.org "Mail containing %s rejected - surbl; see http://www.rulesemporium.com/cgi-bin/uribl.cgi?bl0=1&domain0=%s"; 57 uribl multi.surbl.org "Mail containing %s rejected - surbl; see http://www.surbl.org/surbl-analysis?d=%s";
56 #uribl multi.uribl.com "Mail containing %s rejected - uribl; see http://l.uribl.com/?d=%s"; 58 #uribl multi.uribl.com "Mail containing %s rejected - uribl; see http://l.uribl.com/?d=%s";
59 #uribl dbl.spamhaus.org "Mail containing %s rejected - dbl; see http://www.spamhaus.org/query/domain?domain=%s";
57 ignore { include "hosts-ignore.conf"; }; 60 ignore { include "hosts-ignore.conf"; };
58 tld { include "tld.conf"; }; 61 tld { include "tld.conf"; };
59 html_tags { include "html-tags.conf"; }; 62 html_tags { include "html-tags.conf"; };
60 html_limit off; 63 html_limit off;
61 host_limit soft 20; 64 host_limit soft 20;