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

HEADcourier-fixdev-browser-capabilitiespdorelease-0.6release-0.7release-0.8
Last change on this file since e48a10a was e48a10a, checked in by thomascube <thomas@…>, 4 years ago

Add option to enforce https connections

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