source: github/config/main.inc.php.dist @ d8c440c

HEADcourier-fixdev-browser-capabilitiespdorelease-0.6release-0.7release-0.8
Last change on this file since d8c440c was d8c440c, checked in by alecpl <alec@…>, 3 years ago
  • Added 'imap_force_caps' option for after-login CAPABILITY checking (#1485750)
  • Property mode set to 100644
File size: 19.7 KB
Line 
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// ----------------------------------
18// LOGGING/DEBUGGING
19// ----------------------------------
20
21// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
22$rcmail_config['debug_level'] = 1;
23
24// log driver:  'syslog' or 'file'.
25$rcmail_config['log_driver'] = 'file';
26
27// date format for log entries
28// (read http://php.net/manual/en/function.date.php for all format characters) 
29$rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
30
31// Syslog ident string to use, if using the 'syslog' log driver.
32$rcmail_config['syslog_id'] = 'roundcube';
33
34// Syslog facility to use, if using the 'syslog' log driver.
35// For possible values see installer or http://php.net/manual/en/function.openlog.php
36$rcmail_config['syslog_facility'] = LOG_USER;
37
38// Log sent messages to <log_dir>/sendmail or to syslog
39$rcmail_config['smtp_log'] = true;
40
41// Log successful logins to <log_dir>/userlogins or to syslog
42$rcmail_config['log_logins'] = false;
43
44// Log SQL queries to <log_dir>/sql or to syslog
45$rcmail_config['sql_debug'] = false;
46
47// Log IMAP conversation to <log_dir>/imap or to syslog
48$rcmail_config['imap_debug'] = false;
49
50// Log LDAP conversation to <log_dir>/ldap or to syslog
51$rcmail_config['ldap_debug'] = false;
52
53// Log SMTP conversation to <log_dir>/smtp or to syslog
54$rcmail_config['smtp_debug'] = false;
55
56// ----------------------------------
57// IMAP
58// ----------------------------------
59
60// the mail host chosen to perform the log-in
61// leave blank to show a textbox at login, give a list of hosts
62// to display a pulldown menu or set one host as string.
63// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
64$rcmail_config['default_host'] = '';
65
66// TCP port used for IMAP connections
67$rcmail_config['default_port'] = 143;
68
69// IMAP auth type. Can be "auth" (CRAM-MD5), "plain" (PLAIN) or "check" to auto detect.
70// Optional, defaults to "check"
71$rcmail_config['imap_auth_type'] = null;
72
73// If you know your imap's root directory and its folder delimiter,
74// you can specify them here. Otherwise they will be determined automatically.
75$rcmail_config['imap_root'] = null;
76$rcmail_config['imap_delimiter'] = null;
77
78// By default IMAP capabilities are readed after connection to IMAP server
79// In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
80// after login. Set to True if you've got this case.
81$rcmail_config['imap_force_caps'] = false;
82
83// ----------------------------------
84// SMTP
85// ----------------------------------
86
87// SMTP server host (for sending mails).
88// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
89// If left blank, the PHP mail() function is used
90// Use %h variable as replacement for user's IMAP hostname
91$rcmail_config['smtp_server'] = '';
92
93// SMTP port (default is 25; 465 for SSL)
94$rcmail_config['smtp_port'] = 25;
95
96// SMTP username (if required) if you use %u as the username RoundCube
97// will use the current username for login
98$rcmail_config['smtp_user'] = '';
99
100// SMTP password (if required) if you use %p as the password RoundCube
101// will use the current user's password for login
102$rcmail_config['smtp_pass'] = '';
103
104// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
105// best server supported one)
106$rcmail_config['smtp_auth_type'] = '';
107
108// SMTP HELO host
109// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
110// Leave this blank and you will get the server variable 'server_name' or
111// localhost if that isn't defined.
112$rcmail_config['smtp_helo_host'] = '';
113
114// ----------------------------------
115// SYSTEM
116// ----------------------------------
117
118// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
119// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
120$rcmail_config['enable_installer'] = false;
121
122// use this folder to store log files (must be writeable for apache user)
123// This is used by the 'file' log driver.
124$rcmail_config['log_dir'] = 'logs/';
125
126// use this folder to store temp files (must be writeable for apache user)
127$rcmail_config['temp_dir'] = 'temp/';
128
129// enable caching of messages and mailbox data in the local database.
130// this is recommended if the IMAP server does not run on the same machine
131$rcmail_config['enable_caching'] = false;
132
133// lifetime of message cache
134// possible units: s, m, h, d, w
135$rcmail_config['message_cache_lifetime'] = '10d';
136
137// enforce connections over https
138// with this option enabled, all non-secure connections will be redirected.
139// set the port for the ssl connection as value of this option if it differs from the default 443
140$rcmail_config['force_https'] = false;
141
142// automatically create a new RoundCube user when log-in the first time.
143// a new user will be created once the IMAP login succeeds.
144// set to false if only registered users can use this service
145$rcmail_config['auto_create_user'] = true;
146
147// Includes should be interpreted as PHP files
148$rcmail_config['skin_include_php'] = false;
149
150// Session lifetime in minutes
151// must be greater than 'keep_alive'/60
152$rcmail_config['session_lifetime'] = 10;
153
154// check client IP in session athorization
155$rcmail_config['ip_check'] = false;
156
157// Use an additional frequently changing cookie to athenticate user sessions.
158// There have been problems reported with this feature.
159$rcmail_config['double_auth'] = false;
160
161// this key is used to encrypt the users imap password which is stored
162// in the session record (and the client cookie if remember password is enabled).
163// please provide a string of exactly 24 chars.
164$rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
165
166// Automatically add this domain to user names for login
167// Only for IMAP servers that require full e-mail addresses for login
168// Specify an array with 'host' => 'domain' values to support multiple hosts
169$rcmail_config['username_domain'] = '';
170
171// This domain will be used to form e-mail addresses of new users
172// Specify an array with 'host' => 'domain' values to support multiple hosts
173$rcmail_config['mail_domain'] = '';
174
175// Password charset.
176// Use it if your authentication backend doesn't support UTF-8.
177// Defaults to ISO-8859-1 for backward compatibility
178$rcmail_config['password_charset'] = 'ISO-8859-1';
179
180// How many seconds must pass between emails sent by a user
181$rcmail_config['sendmail_delay'] = 0;
182
183// add this user-agent to message headers when sending
184$rcmail_config['useragent'] = 'RoundCube Webmail/'.RCMAIL_VERSION;
185
186// use this name to compose page titles
187$rcmail_config['product_name'] = 'RoundCube Webmail';
188
189// try to load host-specific configuration
190// see http://trac.roundcube.net/wiki/Howto_Config for more details
191$rcmail_config['include_host_config'] = false;
192
193// path to a text file which will be added to each sent message
194// paths are relative to the RoundCube root folder
195$rcmail_config['generic_message_footer'] = '';
196
197// add a received header to outgoing mails containing the creators IP and hostname
198$rcmail_config['http_received_header'] = false;
199
200// Whether or not to encrypt the IP address and the host name
201// these could, in some circles, be considered as sensitive information;
202// however, for the administrator, these could be invaluable help
203// when tracking down issues.
204$rcmail_config['http_received_header_encrypt'] = false;
205
206// this string is used as a delimiter for message headers when sending
207// leave empty for auto-detection
208$rcmail_config['mail_header_delimiter'] = NULL;
209
210// session domain: .example.org
211$rcmail_config['session_domain'] = '';
212
213// don't allow these settings to be overriden by the user
214$rcmail_config['dont_override'] = array();
215
216// Set identities access level:
217// 0 - many identities with possibility to edit all params
218// 1 - many identities with possibility to edit all params but not email address
219// 2 - one identity with possibility to edit all params
220// 3 - one identity with possibility to edit all params but not email address
221$rcmail_config['identities_level'] = 0;
222
223// mime magic database
224$rcmail_config['mime_magic'] = '/usr/share/misc/magic';
225
226// Enable DNS checking for e-mail address validation
227$rcmail_config['email_dns_check'] = false;
228
229// ----------------------------------
230// PLUGINS
231// ----------------------------------
232
233// List of active plugins (in plugins/ directory)
234$rcmail_config['plugins'] = array();
235
236// ----------------------------------
237// USER INTERFACE
238// ----------------------------------
239
240// default messages sort column. Use empty value for default server's sorting,
241// or 'arrival', 'date', 'subject', 'from', 'to', 'size', 'cc'
242$rcmail_config['message_sort_col'] = '';
243
244// default messages sort order
245$rcmail_config['message_sort_order'] = 'DESC';
246
247// These cols are shown in the message list. Available cols are:
248// subject, from, to, cc, replyto, date, size, flag, attachment
249$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size', 'flag', 'attachment');
250
251// the default locale setting (leave empty for auto-detection)
252// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
253$rcmail_config['language'] = null;
254
255// use this format for short date display (date or strftime format)
256$rcmail_config['date_short'] = 'D H:i';
257
258// use this format for detailed date/time formatting (date or strftime format)
259$rcmail_config['date_long'] = 'd.m.Y H:i';
260
261// use this format for today's date display (date or strftime format)
262$rcmail_config['date_today'] = 'H:i';
263
264// store draft message is this mailbox
265// leave blank if draft messages should not be stored
266$rcmail_config['drafts_mbox'] = 'Drafts';
267
268// store spam messages in this mailbox
269$rcmail_config['junk_mbox'] = 'Junk';
270
271// store sent message is this mailbox
272// leave blank if sent messages should not be stored
273$rcmail_config['sent_mbox'] = 'Sent';
274
275// move messages to this folder when deleting them
276// leave blank if they should be deleted directly
277$rcmail_config['trash_mbox'] = 'Trash';
278
279// display these folders separately in the mailbox list.
280// these folders will also be displayed with localized names
281$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
282
283// automatically create the above listed default folders on login
284$rcmail_config['create_default_folders'] = false;
285
286// protect the default folders from renames, deletes, and subscription changes
287$rcmail_config['protect_default_folders'] = true;
288
289// if in your system 0 quota means no limit set this option to true
290$rcmail_config['quota_zero_as_unlimited'] = false;
291
292// Behavior if a received message requests a message delivery notification (read receipt)
293// 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
294$rcmail_config['mdn_requests'] = 0;
295
296// Make use of the built-in spell checker. It is based on GoogieSpell.
297// Since Google only accepts connections over https your PHP installatation
298// requires to be compiled with Open SSL support
299$rcmail_config['enable_spellcheck'] = true;
300
301// Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
302// but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
303$rcmail_config['spellcheck_engine'] = 'googie';
304
305// For a locally installed Nox Spell Server, please specify the URI to call it.
306// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
307// Leave empty to use the Google spell checking service, what means
308// that the message content will be sent to Google in order to check spelling
309$rcmail_config['spellcheck_uri'] = '';
310
311// These languages can be selected for spell checking.
312// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
313// Leave empty for default set of available language.
314$rcmail_config['spellcheck_languages'] = NULL;
315
316// don't let users set pagesize to more than this value if set
317$rcmail_config['max_pagesize'] = 200;
318
319// Minimal value of user's 'keep_alive' setting (in seconds)
320// Must be less than 'session_lifetime'
321$rcmail_config['min_keep_alive'] = 60;
322
323// ----------------------------------
324// ADDRESSBOOK SETTINGS
325// ----------------------------------
326
327// This indicates which type of address book to use. Possible choises:
328// 'sql' (default) and 'ldap'.
329// If set to 'ldap' then it will look at using the first writable LDAP
330// address book as the primary address book and it will not display the
331// SQL address book in the 'Address Book' view.
332$rcmail_config['address_book_type'] = 'sql';
333
334// In order to enable public ldap search, configure an array like the Verisign
335// example further below. if you would like to test, simply uncomment the example.
336$rcmail_config['ldap_public'] = array();
337
338//
339// If you are going to use LDAP for individual address books, you will need to
340// set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
341//
342// The recommended directory structure for LDAP is to store all the address book entries
343// under the users main entry, e.g.:
344//
345//  o=root
346//   ou=people
347//    uid=user@domain
348//  mail=contact@contactdomain
349//
350// So the base_dn would be uid=%fu,ou=people,o=root
351// The bind_dn would be the same as based_dn or some super user login.
352/*
353 * example config for Verisign directory
354 *
355$rcmail_config['ldap_public']['Verisign'] = array(
356  'name'          => 'Verisign.com',
357  'hosts'         => array('directory.verisign.com'),
358  'port'          => 389,
359  'use_tls'         => false,
360  'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
361  // %fu - The full username provided, assumes the username is an email
362  //       address, uses the username_domain value if not an email address.
363  // %u  - The username prior to the '@'.
364  // %d  - The domain name after the '@'.
365  'base_dn'       => '',
366  'bind_dn'       => '',
367  'bind_pass'     => '',
368  'writable'      => false,   // Indicates if we can write to the LDAP directory or not.
369  // If writable is true then these fields need to be populated:
370  // LDAP_Object_Classes, required_fields, LDAP_rdn
371  '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).
372  '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).
373  '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.
374  'ldap_version'  => 3,       // using LDAPv3
375  'search_fields' => array('mail', 'cn'),  // fields to search in
376  'name_field'    => 'cn',    // this field represents the contact's name
377  'email_field'   => 'mail',  // this field represents the contact's e-mail
378  'surname_field' => 'sn',    // this field represents the contact's last name
379  'firstname_field' => 'gn',  // this field represents the contact's first name
380  'sort'          => 'cn',    // The field to sort the listing by.
381  'scope'         => 'sub',   // search mode: sub|base|list
382  'filter'        => '',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
383  'fuzzy_search'  => true);   // server allows wildcard search
384*/
385
386// An ordered array of the ids of the addressbooks that should be searched
387// when populating address autocomplete fields server-side. ex: array('sql','Verisign');
388$rcmail_config['autocomplete_addressbooks'] = array('sql');
389
390// ----------------------------------
391// USER PREFERENCES
392// ----------------------------------
393
394// Use this charset as fallback for message decoding
395$rcmail_config['default_charset'] = 'ISO-8859-1';
396
397// skin name: folder from skins/
398$rcmail_config['skin'] = 'default';
399
400// show up to X items in list view
401$rcmail_config['pagesize'] = 40;
402
403// use this timezone to display date/time
404$rcmail_config['timezone'] = 'auto';
405
406// is daylight saving On?
407$rcmail_config['dst_active'] = (bool)date('I');
408
409// prefer displaying HTML messages
410$rcmail_config['prefer_html'] = true;
411
412// display remote inline images
413// 0 - Never, always ask
414// 1 - Ask if sender is not in address book
415// 2 - Always show inline images
416$rcmail_config['show_images'] = 0;
417
418// compose html formatted messages by default
419$rcmail_config['htmleditor'] = false;
420
421// show pretty dates as standard
422$rcmail_config['prettydate'] = true;
423
424// save compose message every 300 seconds (5min)
425$rcmail_config['draft_autosave'] = 300;
426
427// default setting if preview pane is enabled
428$rcmail_config['preview_pane'] = false;
429
430// focus new window if new message arrives
431$rcmail_config['focus_on_new_message'] = true;
432
433// Clear Trash on logout
434$rcmail_config['logout_purge'] = false;
435
436// Compact INBOX on logout
437$rcmail_config['logout_expunge'] = false;
438
439// Display attached images below the message body
440$rcmail_config['inline_images'] = true;
441
442// Encoding of long/non-ascii attachment names:
443// 0 - Full RFC 2231 compatible
444// 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
445// 2 - Full 2047 compatible
446$rcmail_config['mime_param_folding'] = 1;
447
448// Set true if deleted messages should not be displayed
449// This will make the application run slower
450$rcmail_config['skip_deleted'] = false;
451
452// Set true to Mark deleted messages as read as well as deleted
453// False means that a message's read status is not affected by marking it as deleted
454$rcmail_config['read_when_deleted'] = true;
455
456// Set to true to newer delete messages immediately
457// Use 'Purge' to remove messages marked as deleted
458$rcmail_config['flag_for_deletion'] = false;
459
460// Default interval for keep-alive/check-recent requests (in seconds)
461// Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
462$rcmail_config['keep_alive'] = 60;
463
464// If true all folders will be checked for recent messages
465$rcmail_config['check_all_folders'] = false;
466
467// If true, after message delete/move, the next message will be displayed
468$rcmail_config['display_next'] = false;
469
470// 0 - Do not expand threads
471// 1 - Expand all threads automatically
472// 2 - Expand only threads with unread messages
473$rcmail_config['autoexpand_threads'] = 0;
474
475// When replying place cursor above original message (top posting)
476$rcmail_config['top_posting'] = false;
477
478// When replying strip original signature from message
479$rcmail_config['strip_existing_sig'] = true;
480
481// Show signature:
482// 0 - Never
483// 1 - Always
484// 2 - New messages only
485// 3 - Forwards and Replies only
486$rcmail_config['show_sig'] = 1;
487
488// When replying or forwarding place sender's signature above existing message
489$rcmail_config['sig_above'] = false;
490
491// Use MIME encoding (quoted-printable) for 8bit characters in message body
492$rcmail_config['force_7bit'] = false;
493
494// Defaults of the search field configuration.
495// The array can contain a per-folder list of header fields which should be considered when searching
496// The entry with key '*' stands for all folders which do not have a specific list set.
497// Please note that folder names should to be in sync with $rcmail_config['default_imap_folders']
498$rcmail_config['search_mods'] = null;  // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
499
500// 'Delete always'
501// This setting reflects if mail should be always deleted
502// when moving to Trash fails. This is necessary in some setups
503// when user is over quota and Trash is included in the quota.
504$rcmail_config['delete_always'] = false;
505
506// end of config file
507?>
Note: See TracBrowser for help on using the repository browser.