-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.php-default
165 lines (144 loc) · 4.69 KB
/
config.php-default
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?php
/*********************************************************
This is the configuration file for Policy RBL System.
See the example in doc folder to understand the options.
**********************************************************/
$require_auth = FALSE;
$version= file_get_contents(__DIR__.'/VERSION');
/* Admins can list or relist, others can only delist */
/* Superadmins (TRUE) have power to list items for years */
$admins = array (
'[email protected]' => TRUE,
'[email protected]' => FALSE,
);
/* DB config */
$dbhost = 'localhost';
$dbport = ini_get("mysqli.default_port");
$db = 'rbl';
$userdb = 'blackuser';
$pwd = 'password';
/*
Types:
- ip
- network
- email
- domain
- username
*/
/*
If you change 'name' and 'field', you also must change the DB schema accordingly.
Feel free to change runtime ONLY the 'active' and 'limit' fields.
*/
$tables = array (
'White IP' => array (
'name' => 'whiteip',
'field' => 'ip',
'active' => TRUE,
'depend' => array('Spam IP'),
'limit' => 50,
'bl' => FALSE,
'milter' => FALSE
),
'Spam IP' => array (
'name' => 'spamip',
'field' => 'ip',
'active' => TRUE,
'depend' => array('White IP'),
'limit' => 50,
'bl' => TRUE,
'milter' => FALSE
),
'UID' => array (
'name' => 'spamusername',
'field' => 'username',
'active' => TRUE,
'limit' => 50,
'bl' => TRUE,
'milter' => FALSE
),
'White Network' => array (
'name' => 'whitenet',
'field' => 'network',
'active' => FALSE,
'depend' => array('Spam Network'),
'bl' => FALSE,
'milter' => FALSE
),
'Spam Network' => array (
'name' => 'spamnet',
'field' => 'network',
'active' => FALSE,
'depend' => array('White Network'),
'bl' => TRUE,
'milter' => FALSE
),
'Spam Sender' => array (
'name' => 'spamsender',
'field' => 'email',
'active' => TRUE,
'depend' => array('White Sender'),
'limit' => 50,
'bl' => TRUE,
'milter' => FALSE
),
'White Sender' => array (
'name' => 'whitesender',
'field' => 'email',
'active' => TRUE,
'depend' => array('Spam Sender'),
'limit' => 50,
'bl' => FALSE,
'milter' => FALSE
),
'Spam Domain' => array (
'name' => 'spamdomain',
'field' => 'domain',
'active' => TRUE,
'depend' => array('White Domain'),
'bl' => TRUE,
'milter' => FALSE
),
'White Domain' => array (
'name' => 'whitedomain',
'field' => 'domain',
'active' => FALSE,
'depend' => array('Spam Domain'),
'bl' => FALSE,
'milter' => FALSE
),
'Spam Text' => array (
'name' => 'spamhash',
'field' => 'text',
'active' => FALSE,
'bl' => TRUE,
'milter' => FALSE
),
'Milter IP' => array (
'name' => 'milteripmap',
'field' => 'ip',
'active' => FALSE,
'bl' => FALSE,
'milter' => TRUE
),
'Milter Networks' => array (
'name' => 'miltermap',
'field' => 'network',
'active' => FALSE,
'bl' => FALSE,
'milter' => TRUE
),
);
/* Email notification for Splunk List Plugin */
$domainNotify_file = dirname(__FILE__) . '/notifyDomains.conf';
$tplfile['header'] = dirname(__FILE__) . '/template/mailWarnHeaders.eml';
$tplfile['body'] = dirname(__FILE__) . '/template/mailWarn.eml';
/* IMAP Email parser for Spam Learn Observer Plugin */
$imapListActive = FALSE; /* activate the plugin */
$confImap_file = dirname(__FILE__) . '/imap.conf';
/* syslog */
$tag = 'myRBL';
$fac = LOG_SYSLOG;
/* Expire (delete) old records from DB */
$expire = TRUE; /* Expire? */
$expireTime = 1; /* Expiration time in YEARS */
?>