source: subversion/trunk/roundcubemail/config/main.inc.php.dist @ 3192

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