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

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