-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings-default.php
More file actions
291 lines (262 loc) · 9.05 KB
/
settings-default.php
File metadata and controls
291 lines (262 loc) · 9.05 KB
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<?php
/*
* This is the configuration file, in PHP format. In most cases, it's
* ok just to edit our settings, and remove the // comments.
*/
/*
* Add credentials to your Halon nodes to enable preview and actions on queued or quarantined emails
*/
// // Linux package example
// $settings['node'][] = array(
// 'address' => 'https://10.2.0.31/',
// 'secret' => 'badsecret',
// 'serialno' => '12345678',
// 'tls' => array('verify_peer' => true, 'verify_peer_name' => true, 'allow_self_signed' => false),
// );
// // FreeBSD VM example
// $settings['node'][] = array(
// 'address' => 'https://10.2.0.30/',
// 'tls' => array('verify_peer' => true, 'verify_peer_name' => true, 'allow_self_signed' => false),
// );
// // FreeBSD VM example
// $settings['node'][] = array(
// 'address' => 'https://10.2.0.31/',
// 'username' => 'admin',
// 'password' => 'admin',
// 'tls' => array('verify_peer' => true, 'verify_peer_name' => true, 'allow_self_signed' => false),
// );
/*
* The API key is used by external systems to communicate with
* this application
*/
//$settings['api-key'] = 'secret';
/*
* Local sqlite database
* The purpose of this database is to store all necessary pending actions on emails
* and run them with the provide cron script
* * * * * * /usr/bin/php /var/www/html/web-logui/cron.php.txt pending
*
* Use an absolute path to the database, with read and write permissions for the
* user running the web server
*/
//$settings['database']['dsn'] = 'sqlite:/tmp/web-logui.db';
/*
* Generic settings
*/
//$settings['public-url'] = 'http://10.2.0.166/enduser/';
//$settings['display-scores'] = false;
//$settings['display-textlog'] = false;
//$settings['display-stats'] = false;
//$settings['display-listener']['mailserver:inbound'] = 'Inbound';
//$settings['display-transport']['mailtransport:outbound'] = 'Internet';
//$settings['display-index-columns'] = ['action', 'from', 'to', 'subject', 'status', 'scores', 'date'];
//$settings['mail']['from'] = 'Mail quarantine <postmaster@example.org>';
/*
* Elasticsearch settings
*/
// $settings['elasticsearch']['host'][] = '127.0.0.1:9200';
// $settings['elasticsearch']['ssl'] = true;
// $settings['elasticsearch']['index']['mail']['pattern'] = 'halon-*';
// $settings['elasticsearch']['index']['mail']['timefilter'] = 'receivedtime';
// $settings['elasticsearch']['index']['textlog']['pattern'] = 'logstash-*';
// $settings['elasticsearch']['index']['textlog']['type'] = '_doc';
// $settings['elasticsearch']['index']['textlog']['limit'] = 50;
// $settings['elasticsearch']['index']['textlog']['search_rotate_limit'] = 10;
// $settings['elasticsearch']['index']['textlog']['timefilter'] = 'received_at';
/*
* Default elasticsearch mappings
* Only change these values if necessary
*/
// $settings['elasticsearch-mappings'] = [
// 'id' => '_id',
// 'owner' => 'owner',
// 'ownerdomain' => 'ownerdomain',
// 'msgid' => 'messageid',
// 'msglistener' => 'serverid',
// 'msgfromserver' => 'senderip',
// 'msgsenderhelo' => 'senderhelo',
// 'msgtlsstarted' => 'tlsstarted',
// 'msghelo' => 'senderhelo',
// 'msgsasl' => 'saslusername',
// 'msgaction' => 'action',
// 'msgfrom' => 'sender',
// 'msgfromdomain' => 'senderdomain',
// 'msgto' => 'recipient',
// 'msgtodomain' => 'recipientdomain',
// 'msgtransport' => 'transportid',
// 'msgsubject' => 'subject',
// 'msgsize' => 'size',
// 'msgactionid' => 'actionid',
// 'msgdescription' => 'reason',
// 'msgts0' => 'receivedtime',
// 'serialno' => 'serial',
// 'tlsstarted' => 'tlsstarted',
// 'score_rpd' => 'score_rpd',
// 'score_rpd_refid' => 'score_rpd_refid',
// 'score_rpdav' => 'score_rpdav',
// 'scores' => [
// 'key' => 'scores',
// 'value' => [
// 'sa' => 'sa',
// 'sa_rules' => 'sa_rules',
// 'kav' => 'kav',
// 'clam' => 'clam'
// ]
// ],
// 'queue' => [
// 'key' => 'queue',
// 'value' => [
// 'action' => 'action',
// 'errormsg' => 'errormsg',
// 'retry' => 'retry',
// 'retries' => 'retries'
// ]
// ],
// 'metadata' => 'metadata'
// ];
/*
* Default elasticsearch filters
* Adjust the public filter options on the messages page.
*/
// $settings['elasticsearch-filters'] = [
// 'messageid' => [
// 'label' => 'Message ID',
// 'operators' => ['exact', 'not'],
// 'mapping' => 'messageid'
// ],
// 'subject' => [
// 'label' => 'Subject',
// 'operators' => ['exact', 'contains', 'not'],
// 'mapping' => 'subject'
// ],
// 'from' => [
// 'label' => 'From',
// 'operators' => ['exact', 'contains', 'not'],
// 'mapping' => ['sender', 'senderdomain']
// ],
// 'to' => [
// 'label' => 'To',
// 'operators' => ['exact', 'contains', 'not'],
// 'mapping' => ['recipient', 'recipientdomain']
// ],
// 'remoteip' => [
// 'label' => 'Remote IP',
// 'operators' => ['exact', 'not'],
// 'mapping' => 'senderip'
// ],
// 'status' => [
// 'label' => 'Status',
// 'operators' => ['exact', 'contains', 'not'],
// 'mapping' => ['reason', 'queue.errormsg']
// ],
// 'action' => [
// 'label' => 'Action',
// 'operators' => ['exact', 'not'],
// 'values' => ['DELIVER', 'QUEUE', 'QUARANTINE', 'ARCHIVE', 'REJECT', 'DELETE', 'BOUNCE', 'ERROR', 'DEFER']
// ],
// 'metadata' => [
// 'label' => 'Metadata',
// 'operators' => ['exact', 'contains', 'not'],
// 'mapping' => ['metadata.*']
// ],
// 'rpdscore' => [
// 'label' => 'RPD score',
// 'operators' => ['exact', 'not'],
// 'values' => ['spam' => 100, 'bulk' => 50, 'valid-bulk' => 40, 'suspect' => 10, 'non-spam' => 0],
// 'mapping' => 'score_rpd'
// ],
// 'sascore' => [
// 'label' => 'SpamAssassin score',
// 'operators' => ['=', '<=', '>=', '<', '>'],
// 'mapping' => 'scores.sa'
// ],
// 'msgsize' => [
// 'label' => 'Message size',
// 'operators' => ['=', '<=', '>=', '<', '>'],
// 'mapping' => 'size'
// ]
// ];
/*
* Metadata filter, only fetch values when key matches (preg_match)
*/
// $settings['elasticsearch-metadata-filter'] = [
// '/^example$/'
// ];
/*
* Authentication
* You can use the following types:
* - Local accounts, statically configured in this file (with access rights).
* Use lower case letters when manually adding an access level.
* - Session transfer
* Rename session-transfer.php.txt to session-transfer.php
*/
//$settings['authentication'][] = array(
// 'type' => 'account',
// 'username' => 'foo',
// 'password' => 'foo',
// 'access' => array( // optional access restrictions
// 'domain' => array('example.com'),
// 'mail' => array('foo@example.com'),
// ),
// );
//$settings['authentication'][] = array(
// 'type' => 'control',
// 'url' => 'https://127.0.0.1',
// 'apikey' => 'secret',
// 'tls' => array('verify_peer' => true, 'verify_peer_name' => true, 'allow_self_signed' => false),
// 'filters' => [
// 'settings' => [
// 'field' => 'digestreport',
// 'value' => true
// ]
// ]
// );
/*
* Session transfer
* Allow only specfic IP addresses to access session-transfer.php to create a new session ID.
*/
//$settings['session-transfer-ip-restrict'] = ['127.0.0.1'];
/*
* If hosting multiple websites on the same server, it's important to use
* different session names for each site.
*/
//$settings['session-name'] = 'weblogui';
/*
* Customizable text in the interface.
*/
//$settings['theme'] = 'paper'; // see themes/
//$settings['brand-logo'] = '/logo.png';
//$settings['brand-logo-height'] = 40; // the real height of the image, should be double (hidpi) the size of themes brand container
//$settings['pagename'] = "Halon log server";
//$settings['logintext'] = "Some text you'd like to display on the login form";
/*
* Maxmind GEOIP2
* Dependencies:
* composer require geoip2/geoip2:~2.0
* composer require components/flag-icon-css
* Visit https://www.maxmind.com/ for more information
*/
//$settings['geoip'] = false;
//$settings['geoip-database'] = ''; // download the country database at https://dev.maxmind.com/geoip/geoip2/geolite2/ and specify the path to it
/*
* Session transfer
*/
//$settings['session-navbar-hide'] = false;
/*
* It's possible to send "digest" messages with a list of what's in
* the quarantine. It is added as a cron job, to be run every 24 hours:
* # php cron.php.txt digestday
* and it will use the authentication sources to find users. To use static
* users (type account), add a 'email' to them. To send digest messages to
* EVERY RECIPIENT (user or not) that has quarantine messages, enable the
* to-all option below. To have a "direct release link" and a "preview link"
* in the messages, set a digest secret below and then enable the
* relevant digest link setting.
*/
//$settings['digest']['to-all'] = true;
//$settings['digest']['secret'] = 'badsecret';
//$settings['digest']['release-link'] = false;
//$settings['digest']['preview-link'] = false;
//$settings['digest']['quarantine-filter'] = ['1'];
// Optional, only change if preview URL should be different from public URL
//$settings['digest']['preview-url'] = 'http://10.2.0.166/messages';