-
Notifications
You must be signed in to change notification settings - Fork 10
/
config.inc.php.dist
372 lines (278 loc) · 13 KB
/
config.inc.php.dist
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<?php
/**
* Toolbox configuration file
*/
// TOOL LIST
// available tools:
// 'aliases' [tool to manage aliases in postfixadmin]
// 'forward' [tool to manage forward addresses in postfixadmin]
// 'vacation' [tool to manage postfixadmin vacation]
// 'purge' [tool to periodically purge Trash and Junk folders]
// 'preview' [tool to disable message previe]
// 'customise' [tool to customise Blank Page and CSS per domain]
// 'attachments' [tool to replace large attachments with a link in outgoing messages]
$config['toolbox_tools'] = [
'aliases',
'forward',
'vacation',
'purge',
'preview',
'customise',
'attachments',
];
// POSTFIX/POSTFIXADMIN DATA SOURCE SETTINGS
// postfix/postfixadmin database connection string (DSN) for read+write operations
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
// Currently supported db_providers: mysql, pgsql, sqlite
// dsnw = connection with write permissions, dsnr = connection with read permission (if blank dsnw will be used)
$config['toolbox_postfix_dsnw'] = 'pgsql://postfix:password@localhost/postfix';
$config['toolbox_postfix_dsnr'] = '';
// use persistent db-connections
// beware this will not "always" work as expected
// see: http://www.php.net/manual/en/features.persistent-connections.php
$config['toolbox_postfix_db_persistent'] = false;
// TABLE ALIAS
// postfix/postfixadmin table that contains alias settings
// default value: 'alias'
$config['toolbox_postfix_sql_alias_table_name'] = 'alias';
// name of the address field in the postfix/postfixadmin alias table
// default value: 'address'
$config['toolbox_postfix_sql_address_field_in_alias'] = 'address';
// name of the domain field in the postfix/postfixadmin alias table
// default value: 'domain'
$config['toolbox_postfix_sql_domain_field_in_alias'] = 'domain';
// name of the goto field in the postfix/postfixadmin alias table
// default value: 'goto'
$config['toolbox_postfix_sql_goto_field_in_alias'] = 'goto';
// name of the created field in the postfix/postfixadmin alias table
// default value: 'created'
$config['toolbox_postfix_sql_created_field_in_alias'] = 'created';
// name of the modified field in the postfix/postfixadmin alias table
// default value: 'modified'
$config['toolbox_postfix_sql_modified_field_in_alias'] = 'modified';
// name of the active field in the postfix/postfixadmin alias table
// default value: 'active'
$config['toolbox_postfix_sql_active_field_in_alias'] = 'active';
// TABLE VACATION
// postfix/postfixadmin table that contains vacation settings
// default value: 'vacation'
$config['toolbox_postfix_sql_vacation_table_name'] = 'vacation';
// name of the email field in the postfix/postfixadmin vacation table
// default value: 'email'
$config['toolbox_postfix_sql_email_field_in_vacation'] = 'email';
// name of the domain field in the postfix/postfixadmin vacation table
// default value: 'domain'
$config['toolbox_postfix_sql_domain_field_in_vacation'] = 'domain';
// name of the subject field in the postfix/postfixadmin vacation table
// default value: 'subject'
$config['toolbox_postfix_sql_subject_field_in_vacation'] = 'subject';
// name of the body field in the postfix/postfixadmin vacation table
// default value: 'body'
$config['toolbox_postfix_sql_body_field_in_vacation'] = 'body';
// name of the active field in the postfix/postfixadmin vacation table
// default value: 'active'
$config['toolbox_postfix_sql_active_field_in_vacation'] = 'active';
// name of the activefrom field in the postfix/postfixadmin vacation table
// default value: 'activefrom'
$config['toolbox_postfix_sql_activefrom_field_in_vacation'] = 'activefrom';
// name of the activeuntil field in the postfix/postfixadmin vacation table
// default value: 'activeuntil'
$config['toolbox_postfix_sql_activeuntil_field_in_vacation'] = 'activeuntil';
// name of the interval_time field in the postfix/postfixadmin vacation table
// default value: 'interval_time'
$config['toolbox_postfix_sql_interval_time_field_in_vacation'] = 'interval_time';
// name of the modified field in the postfix/postfixadmin vacation table
// default value: 'modified'
$config['toolbox_postfix_sql_modified_field_in_vacation'] = 'modified';
// TABLE VACATION_NOTIFICATION
// postfix/postfixadmin table that contains vacation notification settings
// default value: 'vacation_notification'
$config['toolbox_postfix_sql_vacation_notification_table_name'] = 'vacation_notification';
// name of the on_vacation field in the postfix/postfixadmin vacation_notification table
// default value: 'on_vacation'
$config['toolbox_postfix_sql_on_vacation_field_in_vacation_notification'] = 'on_vacation';
// TABLE MAILBOX
// postfix/postfixadmin table that contains mailboxes
// default value: 'mailbox'
$config['toolbox_postfix_sql_mailbox_table_name'] = 'mailbox';
// name of the username field in the postfix/postfixadmin mailbox table
// default value: 'username'
$config['toolbox_postfix_sql_username_field_in_mailbox'] = 'username';
// name of the domain field in the postfix/postfixadmin mailbox table
// default value: 'domain'
$config['toolbox_postfix_sql_domain_field_in_mailbox'] = 'domain';
// name of the local_part field in the postfix/postfixadmin mailbox table
// default value: 'local_part'
$config['toolbox_postfix_sql_local_part_field_in_mailbox'] = 'local_part';
// name of the maildir field in the postfix/postfixadmin mailbox table
// default value: 'maildir'
$config['toolbox_postfix_sql_maildir_field_in_mailbox'] = 'maildir';
// TABLE DOMAIN
// postfix/postfixadmin table that contains domains
// default value: 'domain'
$config['toolbox_postfix_sql_domain_table_name'] = 'domain';
// name of the domain field in the postfix/postfixadmin domain table
// default value: 'domain'
$config['toolbox_postfix_sql_domain_field_in_domain'] = 'domain';
// TABLE DOMAIN ADMINS
// postfix/postfixadmin table that contains domain admins
// default value: 'domain_admins'
$config['toolbox_postfix_sql_domain_admins_table_name'] = 'domain_admins';
// name of the username field in the postfix/postfixadmin domain admins table
// default value: 'username'
$config['toolbox_postfix_sql_username_field_in_domain_admins'] = 'username';
// name of the domain field in the postfix/postfixadmin domain admins table
// default value: 'domain'
$config['toolbox_postfix_sql_domain_field_in_domain_admins'] = 'domain';
// AUTOREPLY
// name of postfix autoreply domain
// default value: 'autoreply.domainname'
$config['toolbox_postfixadmin_vacation_domain'] = 'autoreply.mydomain.tld';
// DOMAIN ADMINS
// Static
// list of domains for each admin email address
// used in 'purge' and 'customise' tools
// Format:
// all domains: 'ALL'
// some domains: string containing csv list of domains
// Example:
// [
// 'admin1' => 'domain1, domain2',
// 'admin2' => 'domain3',
// 'admin3' => 'ALL',
// ]
// the admins will be added to the domain admins from postfixadmin database if available
// default value: []
$config['toolbox_domain_admins'] = [];
// Postfixadmin
// use postfixadmin domain admins
// note: if false only static domain admins will be used if any
// default value: true
$config['toolbox_use_postfixadmin_domain_admins'] = true;
// ROUNDCUBE DATA SOURCE SETTINGS
// roundcube database connection string (DSN) for read+write operations
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
// Currently supported db_providers: mysql, pgsql, sqlite
// dsnw = connection with write permissions (if blank postfix/postfixadmin dsnw will be used), dsnr = connection with read permission (if blank dsnw will be used)
$config['toolbox_roundcube_dsnw'] = 'pgsql://roundcube:password@localhost/roundcubemail';
$config['toolbox_roundcube_dsnr'] = '';
// use persistent db-connections
// beware this will not "always" work as expected
// see: http://www.php.net/manual/en/features.persistent-connections.php
$config['toolbox_roundcube_db_persistent'] = false;
// ALIASES TOOL OPTIONS
// If false, single domain mode is used for aliases:
// * only aliases matching the user's domain are shown
// * on the settings page, the domain in each alias' address is hidden (and must not be specified by the used)
$config['toolbox_aliases_multiple_domains'] = true;
// FORWARD TOOL OPTIONS
// PURGE TOOL OPTIONS
// IMPORTANT: domain admins can set global parameters in customise tool
// path to maildirs
$config['toolbox_purge_maildir_path'] = '/web/vmail';
// Purge script debug
$config['toolbox_purge_script_debug'] = true;
// PREVIEW TOOL OPTIONS
// VACATION TOOL OPTIONS
// default vacation subject
$config['toolbox_vacation_subject'] = 'Out of office / Assente';
// default vacation message
$config['toolbox_vacation_message'] = 'I\'m currently out of office until...<br /><br />Sarò assente fino al...';
// vacation start/end date formats
// all formats must be consistent
$config['toolbox_vacation_dateformat'] = [
'php' => 'd/m/Y',
'pgsql' => 'DD/MM/YYYY',
'mysql' => '%d/%m/%Y',
'sqlite' => '%d/%m/%Y',
'oracle' => 'DD/MM/YYYY',
'mssql' => 'dd/mm/yyyy'
];
// jquery calendar (jqueryui plugin must be enabled)
$config['toolbox_vacation_jquery_calendar'] = true;
$config['toolbox_vacation_jquery_dateformat'] = 'dd/mm/yy';
// add MIME header before the message
$config['toolbox_vacation_message_mime'] = '';
// vacation reply type
$config['toolbox_vacation_interval_time'] = [
'replyonce' => 0, // Reply one time to each address
'replytoeverymail' => 1, // Reply to every message (considered annoying)
'replyonceperday' => 60*60 * 24, // Reply once per day to each address
'replyonceperweek' => 60*60 * 24*7 // Reply once per week to each address
];
// CUSTOMISE TOOL OPTIONS
// global default values for all domains
// Format: associative array per skin
// BLANK PAGE
// blankpage_type can be either url or image and the corresponding field (blankpage_url or blankpage_image) must be specified
// blankpage_type = 'url': the blank page will be taken from the specified url
// blankpage_type = 'image': the blank page will contain only a cenral image
// NOTE: if blankpage_type is not specified either blankpage_url or blankpage_image will be ignored
// blankpage_url: url of the blank page (local or remote)
// blankpage_image: image of the blank page
// NOTE: when blankpage_type is set to custom you must create a temporarty folder in the root folder of the plugin writable by the web server
// CSS
// and additional css can be specified per domain
// additional_css: the href of the additional css
// Example:
// [
// 'classic' => ['blankpage_type' => 'url', 'blankpage_url' => 'https://mypage.com', 'additional_css' => './myfolder/mycss.css'],
// 'larry' => ['additional_css' => 'skins/larry/mycss.css'],
// 'elastic' => ['blankpage_type' => 'image', 'blankpage_image' => 'images/myimage.png'],
// 'default' => ['blankpage_type' => 'image', 'blankpage_image' => 'images/defaultimage.png', 'additional_css' => 'skins/elastic/defaultcss.css'],
// ]
// per domain settings specified within the gui will override this configuration
// 'default', if set, is used for all skins not specified
// empty array or empty array elements mean roundcube default settings
// default value: []
$config['toolbox_customise_skins'] = [];
// ATTACHMENTS TOOL OPTIONS
// size of all attachments in bytes to trigger detachment
// type of value: Integer
// value of (1024 * 1024 * 1) means 1Mb
// 0 means detach always
// default value: 50 Mb
$config['toolbox_detach_total'] = 1024 * 1024 * 50;
// size of a single attachments in bytes to trigger detachment
// type of value: Integer
// value of (1024 * 1024 * 1) means 1Mb
// 0 means detach always
// default value: 25 Mb
$config['toolbox_detach_single'] = 1024 * 1024 * 25;
// lifespan of detached attachments
// type of value: Integer
// default value: 30 days
// per domain settings specified within the gui will override this configuration
$config['toolbox_detach_lifespan'] = 30;
// storage folder's relative url for detached attachments
// NOTE: you must create a dedicated folder in the root folder of the plugin writable by the web server
// default value: 'plugins/toolbox/attachments'
$config['toolbox_detach_storage'] = 'plugins/toolbox/attachments';
// PLUGIN LOG/DEBUG OPTIONS
// Log file
// default value: toolbox.log
// log file extension is added automatically by RC
$config['toolbox_logfile'] = 'toolbox';
// Log level
// values:
// 0 = no logs
// 1 = log errors [ERROR]
// 2 = log errors [ERROR] and sql queries [SQL]
// 3 = log errors [ERROR], sql queries [SQL] and program steps [STEP]
// default value: 1
$config['toolbox_loglevel'] = 1;
// SCRIPTS LOG/DEBUG OPTIONS
// Script log file
// default value: toolbox.script.log
// log file extension is added automatically by RC
$config['toolbox_script_logfile'] = 'toolbox.script';
// Log level
// values:
// 0 = no logs
// 1 = log info [NO LABEL] and warning [WARNING]
// 2 = log info [NO LABEL], warning [WARNING] and errors [ERROR]
// 3 = log info [NO LABEL], warning [WARNING], errors [ERROR] and sql queries [SQL]
// 4 = log info [NO LABEL], warning [WARNING], errors [ERROR], sql queries [SQL] and program steps [STEP]
// default value: 2
$config['toolbox_script_loglevel'] = 2;
// END OF FILE