-
Notifications
You must be signed in to change notification settings - Fork 0
/
greylist.cfg
98 lines (84 loc) · 1.32 KB
/
greylist.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# $Id: pftests.cpp 12 2009-08-31 22:49:57Z mimo $
# sample greylist configuration file
[database]
name=greylistdb
type=mysql
host=localhost
username=greylist
password=
dbname=greylist
spareconnections=100
[datasource]
type=db
name=networkds
table=network
database=greylistdb
[match]
name=network
type=cached exact match
datasource=networkds
lookup=address
match=network
return=comment
[policy]
type=whitelist
match=network
[datasource]
type=db
name=recipientds
table=recipient
database=greylistdb
[match]
name=recipient
type=cached exact match
datasource=recipientds
lookup=address
match=recipient
return=comment
[policy]
type=whitelist
match=recipient
[datasource]
type=db
name=patternds
table=pattern
database=greylistdb
[match]
name=pattern
type=cached pattern match
datasource=patternds
lookup=expression
match=triplet_string
return=comment
[policy]
type=whitelist
match=pattern
[datasource]
type=db
name=tripletds
table=triplet
database=greylistdb
[match]
name=all
type=all
[policy]
type=greylist
match=all
mode=reverse
datasource=tripletds
weakbytes=3
timeout=72
[server]
listen=127.0.0.1
port=4096
sparethreads=2
maxthreads=500
maxrequests=0 #never
cacherefresh=900 # 15 minutes
poolrefresh=10
log=full
deferwithstatus=true
defer=defer_if_permit Service unavailable; Greylisted
dunno=dunno
onerror=dunno
stats=60 #ten minutes