Project

General

Profile

main.inc.php

template main.inc.php - Emmanuel GARETTE (2), 08/31/2011 07:32 PM

Download (18.1 KB)

 
1
<?php
2

    
3
/*
4
 +-----------------------------------------------------------------------+
5
 | Main configuration file                                               |
6
 |                                                                       |
7
 | This file is part of the RoundCube Webmail client                     |
8
 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                 |
9
 | Licensed under the GNU GPL                                            |
10
 |                                                                       |
11
 +-----------------------------------------------------------------------+
12

13
*/
14

    
15
$rcmail_config = array();
16

    
17
// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
18
$rcmail_config['debug_level'] = 1;
19

    
20
// log driver:  'syslog' or 'file'.
21
$rcmail_config['log_driver'] = 'file';
22

    
23
// date format for log entries
24
// (read http://php.net/manual/en/function.date.php for all format characters)
25
$rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
26

    
27
// Syslog ident string to use, if using the 'syslog' log driver.
28
$rcmail_config['syslog_id'] = 'roundcube';
29

    
30
// Syslog facility to use, if using the 'syslog' log driver.
31
// For possible values see installer or http://php.net/manual/en/function.openlog.php
32
$rcmail_config['syslog_facility'] = LOG_USER;
33

    
34
// use this folder to store log files (must be writeable for apache user)
35
// This is used by the 'file' log driver.
36
$rcmail_config['log_dir'] = 'logs/';
37

    
38
// use this folder to store temp files (must be writeable for apache user)
39
$rcmail_config['temp_dir'] = 'temp/';
40

    
41
// List of active plugins (in plugins/ directory)
42
%if %%activer_sso != 'non'
43
$rcmail_config['plugins'] = array('cas_authentication');
44
%else
45
$rcmail_config['plugins'] = array();
46
%end if
47

    
48
// enable caching of messages and mailbox data in the local database.
49
// this is recommended if the IMAP server does not run on the same machine
50
$rcmail_config['enable_caching'] = FALSE;
51

    
52
// lifetime of message cache
53
// possible units: s, m, h, d, w
54
$rcmail_config['message_cache_lifetime'] = '10d';
55

    
56
// enforce connections over https
57
// with this option enabled, all non-secure connections will be redirected.
58
// set the port for the ssl connection as value of this option if it differs from the default 443
59
$rcmail_config['force_https'] = FALSE;
60

    
61
// automatically create a new RoundCube user when log-in the first time.
62
// a new user will be created once the IMAP login succeeds.
63
// set to false if only registered users can use this service
64
$rcmail_config['auto_create_user'] = TRUE;
65

    
66
// the mail host chosen to perform the log-in
67
// leave blank to show a textbox at login, give a list of hosts
68
// to display a pulldown menu or set one host as string.
69
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
70
$rcmail_config['default_host'] = '%%adresse_ip_mail';
71

    
72
// TCP port used for IMAP connections
73
$rcmail_config['default_port'] = 143;
74

    
75
// IMAP auth type. Can be "auth" (CRAM-MD5), "plain" (PLAIN) or "check" to auto detect.
76
// Optional, defaults to "check"
77
$rcmail_config['imap_auth_type'] = 'plain';
78

    
79
// If you know your imap's root directory and its folder delimiter,
80
// you can specify them here. Otherwise they will be determined automatically.
81
$rcmail_config['imap_root'] = null;
82
$rcmail_config['imap_delimiter'] = null;
83

    
84
// Automatically add this domain to user names for login
85
// Only for IMAP servers that require full e-mail addresses for login
86
// Specify an array with 'host' => 'domain' values to support multiple hosts
87
$rcmail_config['username_domain'] = '%%domaine_messagerie_etab';
88

    
89
// This domain will be used to form e-mail addresses of new users
90
// Specify an array with 'host' => 'domain' values to support multiple hosts
91
$rcmail_config['mail_domain'] = '%%domaine_messagerie_etab';
92

    
93
// Path to a virtuser table file to resolve user names and e-mail addresses
94
$rcmail_config['virtuser_file'] = '';
95

    
96
// Query to resolve user names and e-mail addresses from the database
97
// %u will be replaced with the current username for login.
98
// The query should select the user's e-mail address as first column
99
// and optional identity name as second column
100
$rcmail_config['virtuser_query'] = '';
101

    
102
// use this host for sending mails.
103
// to use SSL connection, set ssl://smtp.host.com
104
// if left blank, the PHP mail() function is used
105
// Use %h variable as replacement for user's IMAP hostname
106
$rcmail_config['smtp_server'] = '%%adresse_ip_mail';
107

    
108
// SMTP port (default is 25; 465 for SSL)
109
$rcmail_config['smtp_port'] = 25;
110

    
111
// SMTP username (if required) if you use %u as the username RoundCube
112
// will use the current username for login
113
$rcmail_config['smtp_user'] = '';
114

    
115
// SMTP password (if required) if you use %p as the password RoundCube
116
// will use the current user's password for login
117
$rcmail_config['smtp_pass'] = '';
118

    
119
// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
120
// best server supported one)
121
$rcmail_config['smtp_auth_type'] = '';
122

    
123
// SMTP HELO host
124
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
125
// Leave this blank and you will get the server variable 'server_name' or
126
// localhost if that isn't defined.
127
$rcmail_config['smtp_helo_host'] = '';
128

    
129
// Log sent messages
130
$rcmail_config['smtp_log'] = TRUE;
131

    
132
// Log SQL queries to <log_dir>/sql or to syslog
133
$rcmail_config['sql_debug'] = false;
134

    
135
// Log IMAP conversation to <log_dir>/imap or to syslog
136
$rcmail_config['imap_debug'] = false;
137

    
138
// Log LDAP conversation to <log_dir>/ldap or to syslog
139
$rcmail_config['ldap_debug'] = false;
140

    
141
// Log SMTP conversation to <log_dir>/smtp or to syslog
142
$rcmail_config['smtp_debug'] = false;
143

    
144
// How many seconds must pass between emails sent by a user
145
$rcmail_config['sendmail_delay'] = 0;
146

    
147
// These cols are shown in the message list. Available cols are:
148
// subject, from, to, cc, replyto, date, size, flag, attachment
149
$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size', 'flag', 'attachment');
150

    
151
// Includes should be interpreted as PHP files
152
$rcmail_config['skin_include_php'] = FALSE;
153

    
154
// Session lifetime in minutes
155
// must be greater than 'keep_alive'/60
156
$rcmail_config['session_lifetime'] = 10;
157

    
158
// check client IP in session athorization
159
$rcmail_config['ip_check'] = false;
160

    
161
// Use an additional frequently changing cookie to athenticate user sessions.
162
// There have been problems reported with this feature.
163
$rcmail_config['double_auth'] = false;
164

    
165
// this key is used to encrypt the users imap password which is stored
166
// in the session record (and the client cookie if remember password is enabled).
167
// please provide a string of exactly 24 chars.
168
//FIXME: should not be here
169
$rcmail_config['des_key'] = '3wFwKsdXeYMQZRQk]kTYXnO]';
170

    
171
// the default locale setting (leave empty for auto-detection)
172
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
173
$rcmail_config['language'] = 'fr_FR';
174

    
175
// use this format for short date display (date or strftime format)
176
$rcmail_config['date_short'] = 'D H:i';
177

    
178
// use this format for detailed date/time formatting (date or strftime format)
179
$rcmail_config['date_long'] = 'd.m.Y H:i';
180

    
181
// use this format for today's date display (date or strftime format)
182
$rcmail_config['date_today'] = 'H:i';
183

    
184
// add this user-agent to message headers when sending
185
$rcmail_config['useragent'] = 'RoundCube Webmail/'.RCMAIL_VERSION;
186

    
187
// use this name to compose page titles
188
$rcmail_config['product_name'] = 'RoundCube Webmail';
189

    
190
// store draft message is this mailbox
191
// leave blank if draft messages should not be stored
192
$rcmail_config['drafts_mbox'] = 'Drafts';
193

    
194
// store spam messages in this mailbox
195
$rcmail_config['junk_mbox'] = 'Junk';
196

    
197
// store sent message is this mailbox
198
// leave blank if sent messages should not be stored
199
$rcmail_config['sent_mbox'] = 'Sent';
200

    
201
// move messages to this folder when deleting them
202
// leave blank if they should be deleted directly
203
$rcmail_config['trash_mbox'] = 'Trash';
204

    
205
// display these folders separately in the mailbox list.
206
// these folders will also be displayed with localized names
207
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
208

    
209
// automatically create the above listed default folders on login
210
$rcmail_config['create_default_folders'] = FALSE;
211

    
212
// protect the default folders from renames, deletes, and subscription changes
213
$rcmail_config['protect_default_folders'] = TRUE;
214

    
215
// if in your system 0 quota means no limit set this option to TRUE
216
$rcmail_config['quota_zero_as_unlimited'] = FALSE;
217

    
218
// Behavior if a received message requests a message delivery notification (read receipt)
219
// 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
220
$rcmail_config['mdn_requests'] = 0;
221

    
222
// Use this charset as fallback for message decoding
223
$rcmail_config['default_charset'] = 'UTF-8';
224

    
225
// Make use of the built-in spell checker. It is based on GoogieSpell.
226
// Since Google only accepts connections over https your PHP installatation
227
// requires to be compiled with Open SSL support
228
$rcmail_config['enable_spellcheck'] = TRUE;
229

    
230
// Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
231
// but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
232
$rcmail_config['spellcheck_engine'] = 'pspell';
233

    
234
// For a locally installed Nox Spell Server, please specify the URI to call it.
235
// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
236
// Leave empty to use the Google spell checking service, what means
237
// that the message content will be sent to Google in order to check spelling
238
$rcmail_config['spellcheck_uri'] = '';
239

    
240
// These languages can be selected for spell checking.
241
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
242
// Leave empty for default set of available language.
243
$rcmail_config['spellcheck_languages'] = NULL;
244

    
245
// path to a text file which will be added to each sent message
246
// paths are relative to the RoundCube root folder
247
$rcmail_config['generic_message_footer'] = '';
248

    
249
// add a received header to outgoing mails containing the creators IP and hostname
250
$rcmail_config['http_received_header'] = false;
251

    
252
// Whether or not to encrypt the IP address and the host name
253
// these could, in some circles, be considered as sensitive information;
254
// however, for the administrator, these could be invaluable help
255
// when tracking down issues.
256
$rcmail_config['http_received_header_encrypt'] = false;
257

    
258
// this string is used as a delimiter for message headers when sending
259
// leave empty for auto-detection
260
$rcmail_config['mail_header_delimiter'] = NULL;
261

    
262
// session domain: .example.org
263
$rcmail_config['session_domain'] = '';
264

    
265
// This indicates which type of address book to use. Possible choises:
266
// 'sql' (default) and 'ldap'.
267
// If set to 'ldap' then it will look at using the first writable LDAP
268
// address book as the primary address book and it will not display the
269
// SQL address book in the 'Address Book' view.
270
$rcmail_config['address_book_type'] = 'sql';
271

    
272
// In order to enable public ldap search, configure an array like the Verisign
273
// example further below. if you would like to test, simply uncomment the example.
274
$rcmail_config['ldap_public'] = array();
275

    
276
//
277
// If you are going to use LDAP for individual address books, you will need to
278
// set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
279
//
280
// The recommended directory structure for LDAP is to store all the address book entries
281
// under the users main entry, e.g.:
282
//
283
//  o=root
284
//   ou=people
285
//    uid=user@domain
286
//  mail=contact@contactdomain
287
//
288
// So the base_dn would be uid=%fu,ou=people,o=root
289
// The bind_dn would be the same as based_dn or some super user login.
290
/*
291
 * example config for Verisign directory
292
 *
293
$rcmail_config['ldap_public']['Verisign'] = array(
294
  'name'          => 'Verisign.com',
295
  'hosts'         => array('directory.verisign.com'),
296
  'port'          => 389,
297
  'use_tls'            => false,
298
  'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
299
  // %fu - The full username provided, assumes the username is an email
300
  //       address, uses the username_domain value if not an email address.
301
  // %u  - The username prior to the '@'.
302
  // %d  - The domain name after the '@'.
303
  'base_dn'       => '',
304
  'bind_dn'       => '',
305
  'bind_pass'     => '',
306
  'writable'      => false,   // Indicates if we can write to the LDAP directory or not.
307
  // If writable is true then these fields need to be populated:
308
  // LDAP_Object_Classes, required_fields, LDAP_rdn
309
  'LDAP_Object_Classes' => array("top", "inetOrgPerson"), // To create a new contact these are the object classes to specify (or any other classes you wish to use).
310
  'required_fields'     => array("cn", "sn", "mail"),     // The required fields needed to build a new contact as required by the object classes (can include additional fields not required by the object classes).
311
  'LDAP_rdn'      => 'mail', // The RDN field that is used for new entries, this field needs to be one of the search_fields, the base of base_dn is appended to the RDN to insert into the LDAP directory.
312
  'ldap_version'  => 3,       // using LDAPv3
313
  'search_fields' => array('mail', 'cn'),  // fields to search in
314
  'name_field'    => 'cn',    // this field represents the contact's name
315
  'email_field'   => 'mail',  // this field represents the contact's e-mail
316
  'surname_field' => 'sn',    // this field represents the contact's last name
317
  'firstname_field' => 'gn',  // this field represents the contact's first name
318
  'sort'          => 'cn',    // The field to sort the listing by.
319
  'scope'         => 'sub',   // search mode: sub|base|list
320
  'filter'        => '',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
321
  'fuzzy_search'  => true);   // server allows wildcard search
322
*/
323

    
324
// An ordered array of the ids of the addressbooks that should be searched
325
// when populating address autocomplete fields server-side. ex: array('sql','Verisign');
326
$rcmail_config['autocomplete_addressbooks'] = array('sql');
327

    
328
// don't allow these settings to be overriden by the user
329
$rcmail_config['dont_override'] = array();
330

    
331
// Set identities access level:
332
// 0 - many identities with possibility to edit all params
333
// 1 - many identities with possibility to edit all params but not email address
334
// 2 - one identity with possibility to edit all params
335
// 3 - one identity with possibility to edit all params but not email address
336
$rcmail_config['identities_level'] = 0;
337

    
338
// try to load host-specific configuration
339
// see http://trac.roundcube.net/wiki/Howto_Config for more details
340
$rcmail_config['include_host_config'] = false;
341

    
342
// don't let users set pagesize to more than this value if set
343
$rcmail_config['max_pagesize'] = 200;
344

    
345
// mime magic database
346
$rcmail_config['mime_magic'] = '/usr/share/file/magic';
347

    
348
// default sort col
349
$rcmail_config['message_sort_col'] = 'date';
350

    
351
// default sort order
352
$rcmail_config['message_sort_order'] = 'DESC';
353

    
354
// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
355
// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
356
$rcmail_config['enable_installer'] = false;
357

    
358
// Log successful logins
359
$rcmail_config['log_logins'] = false;
360

    
361
/**
362
 * 'Delete always'
363
 * This setting reflects if mail should be always marked as deleted,
364
 * even if moving to "Trash" fails. This is necessary in some setups
365
 * because a) people may not have a Trash folder or b) they are over
366
 * quota (and Trash is included in the quota).
367
 *
368
 * This is a failover setting for iil_C_Move when a message is moved
369
 * to the Trash.
370
 */
371
$rcmail_config['delete_always'] = false;
372

    
373
// Minimal value of user's 'keep_alive' setting (in seconds)
374
// Must be less than 'session_lifetime'
375
$rcmail_config['min_keep_alive'] = 60;
376

    
377
// Enable DNS checking for e-mail address validation
378
$rcmail_config['email_dns_check'] = false;
379

    
380
/***** these settings can be overwritten by user's preferences *****/
381

    
382
// skin name: folder from skins/
383
$rcmail_config['skin'] = 'default';
384

    
385
// show up to X items in list view
386
$rcmail_config['pagesize'] = 40;
387

    
388
// use this timezone to display date/time
389
$rcmail_config['timezone'] = 'auto';
390

    
391
// is daylight saving On?
392
$rcmail_config['dst_active'] = (bool)date('I');
393

    
394
// prefer displaying HTML messages
395
$rcmail_config['prefer_html'] = TRUE;
396

    
397
// display remote inline images
398
// 0 - Never, always ask
399
// 1 - Ask if sender is not in address book
400
// 2 - Always show inline images
401
$rcmail_config['show_images'] = 0;
402

    
403
// compose html formatted messages by default
404
$rcmail_config['htmleditor'] = FALSE;
405

    
406
// show pretty dates as standard
407
$rcmail_config['prettydate'] = TRUE;
408

    
409
// save compose message every 300 seconds (5min)
410
$rcmail_config['draft_autosave'] = 300;
411

    
412
// default setting if preview pane is enabled
413
$rcmail_config['preview_pane'] = FALSE;
414

    
415
// focus new window if new message arrives
416
$rcmail_config['focus_on_new_message'] = true;
417

    
418
// Clear Trash on logout
419
$rcmail_config['logout_purge'] = FALSE;
420

    
421
// Compact INBOX on logout
422
$rcmail_config['logout_expunge'] = FALSE;
423

    
424
// Display attached images below the message body
425
$rcmail_config['inline_images'] = TRUE;
426

    
427
// Encoding of long/non-ascii attachment names:
428
// 0 - Full RFC 2231 compatible
429
// 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
430
// 2 - Full 2047 compatible
431
$rcmail_config['mime_param_folding'] = 1;
432

    
433
// Set TRUE if deleted messages should not be displayed
434
// This will make the application run slower
435
$rcmail_config['skip_deleted'] = FALSE;
436

    
437
// Set true to Mark deleted messages as read as well as deleted
438
// False means that a message's read status is not affected by marking it as deleted
439
$rcmail_config['read_when_deleted'] = TRUE;
440

    
441
// Set to TRUE to newer delete messages immediately
442
// Use 'Purge' to remove messages marked as deleted
443
$rcmail_config['flag_for_deletion'] = FALSE;
444

    
445
// Default interval for keep-alive/check-recent requests (in seconds)
446
// Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
447
$rcmail_config['keep_alive'] = 60;
448

    
449
// If true all folders will be checked for recent messages
450
$rcmail_config['check_all_folders'] = FALSE;
451

    
452
// If true, after message delete/move, the next message will be displayed
453
$rcmail_config['display_next'] = FALSE;
454

    
455
// If true, messages list will be sorted by message index instead of message date
456
$rcmail_config['index_sort'] = TRUE;
457

    
458
// end of config file
459
?>