Ticket #1484961: main.inc.php

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