source: github/config/main.inc.php.dist @ 6153e20

HEADcourier-fixdev-browser-capabilitiespdorelease-0.6release-0.7release-0.8
Last change on this file since 6153e20 was 6153e20, checked in by alecpl <alec@…>, 5 years ago
  • Option 'use_SQL_address_book' replaced by 'address_book_type'
  • Property mode set to 100644
File size: 12.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-2008, 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// enable caching of messages and mailbox data in the local database.
22// this is recommended if the IMAP server does not run on the same machine
23$rcmail_config['enable_caching'] = TRUE;
24
25// lifetime of message cache
26// possible units: s, m, h, d, w
27$rcmail_config['message_cache_lifetime'] = '10d';
28
29// automatically create a new RoundCube user when log-in the first time.
30// a new user will be created once the IMAP login succeeds.
31// set to false if only registered users can use this service
32$rcmail_config['auto_create_user'] = TRUE;
33
34// the mail host chosen to perform the log-in
35// leave blank to show a textbox at login, give a list of hosts
36// to display a pulldown menu or set one host as string.
37// To use SSL connection, enter ssl://hostname:993
38$rcmail_config['default_host'] = '';
39
40// TCP port used for IMAP connections
41$rcmail_config['default_port'] = 143;
42
43// Automatically add this domain to user names for login
44// Only for IMAP servers that require full e-mail addresses for login
45// Specify an array with 'host' => 'domain' values to support multiple hosts
46$rcmail_config['username_domain'] = '';
47
48// This domain will be used to form e-mail addresses of new users
49// Specify an array with 'host' => 'domain' values to support multiple hosts
50$rcmail_config['mail_domain'] = '';
51
52// Path to a virtuser table file to resolve user names and e-mail addresses
53$rcmail_config['virtuser_file'] = '';
54
55// Query to resolve user names and e-mail addresses from the database
56// %u will be replaced with the current username for login.
57// The query should select the user's e-mail address as first col
58$rcmail_config['virtuser_query'] = '';
59
60// use this host for sending mails.
61// to use SSL connection, set ssl://smtp.host.com
62// if left blank, the PHP mail() function is used
63$rcmail_config['smtp_server'] = '';
64
65// SMTP port (default is 25; 465 for SSL)
66$rcmail_config['smtp_port'] = 25;
67
68// SMTP username (if required) if you use %u as the username RoundCube
69// will use the current username for login
70$rcmail_config['smtp_user'] = '';
71
72// SMTP password (if required) if you use %p as the password RoundCube
73// will use the current user's password for login
74$rcmail_config['smtp_pass'] = '';
75
76// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
77// best server supported one)
78$rcmail_config['smtp_auth_type'] = '';
79
80// SMTP HELO host
81// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
82// Leave this blank and you will get the server variable 'server_name' or
83// localhost if that isn't defined.
84$rcmail_config['smtp_helo_host'] = '';
85
86// Log sent messages
87$rcmail_config['smtp_log'] = TRUE;
88
89// these cols are shown in the message list
90// available cols are: subject, from, to, cc, replyto, date, size, encoding
91$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');
92
93// relative path to the skin folder
94$rcmail_config['skin_path'] = 'skins/default/';
95
96// includes should be interpreted as PHP files
97$rcmail_config['skin_include_php'] = FALSE;
98
99// use this folder to store temp files (must be writebale for apache user)
100$rcmail_config['temp_dir'] = 'temp/';
101
102// use this folder to store log files (must be writebale for apache user)
103$rcmail_config['log_dir'] = 'logs/';
104
105// session lifetime in minutes
106$rcmail_config['session_lifetime'] = 10;
107
108// check client IP in session athorization
109$rcmail_config['ip_check'] = false;
110
111// Use an additional frequently changing cookie to athenticate user sessions.
112// There have been problems reported with this feature.
113$rcmail_config['double_auth'] = false;
114
115// this key is used to encrypt the users imap password which is stored
116// in the session record (and the client cookie if remember password is enabled).
117// please provide a string of exactly 24 chars.
118$rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
119
120// the default locale setting
121$rcmail_config['language'] = 'en';
122
123// use this format for short date display
124$rcmail_config['date_short'] = 'D H:i';
125
126// use this format for detailed date/time formatting
127$rcmail_config['date_long'] = 'd.m.Y H:i';
128
129// use this format for today's date display
130$rcmail_config['date_today'] = 'H:i';
131
132// add this user-agent to message headers when sending
133$rcmail_config['useragent'] = 'RoundCube Webmail/0.1';
134
135// use this name to compose page titles
136$rcmail_config['product_name'] = 'RoundCube Webmail';
137
138// only list folders within this path
139$rcmail_config['imap_root'] = '';
140
141// store draft message is this mailbox
142// leave blank if draft messages should not be stored
143$rcmail_config['drafts_mbox'] = 'Drafts';
144
145// store spam messages in this mailbox
146$rcmail_config['junk_mbox'] = 'Junk';
147
148// store sent message is this mailbox
149// leave blank if sent messages should not be stored
150$rcmail_config['sent_mbox'] = 'Sent';
151
152// move messages to this folder when deleting them
153// leave blank if they should be deleted directly
154$rcmail_config['trash_mbox'] = 'Trash';
155
156// display these folders separately in the mailbox list.
157// these folders will also be displayed with localized names
158$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
159
160// automatically create the above listed default folders on login
161$rcmail_config['create_default_folders'] = FALSE;
162
163// protect the default folders from renames, deletes, and subscription changes
164$rcmail_config['protect_default_folders'] = TRUE;
165
166// Set TRUE if deleted messages should not be displayed
167// This will make the application run slower
168$rcmail_config['skip_deleted'] = FALSE;
169
170// Set true to Mark deleted messages as read as well as deleted
171// False means that a message's read status is not affected by marking it as deleted
172$rcmail_config['read_when_deleted'] = TRUE;
173
174// When a Trash folder is not present and a message is deleted, flag
175// the message for deletion rather than deleting it immediately.  Setting this to
176// false causes deleted messages to be permanantly removed if there is no Trash folder
177$rcmail_config['flag_for_deletion'] = TRUE;
178
179// Behavior if a received message requests a message delivery notification (read receipt)
180// 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
181$rcmail_config['mdn_requests'] = 0;
182
183// Use this charset as fallback for message decoding
184$rcmail_config['default_charset'] = 'ISO-8859-1';
185
186// Make use of the built-in spell checker. It is based on GoogieSpell.
187// Since Google only accepts connections over https your PHP installatation
188// requires to be compiled with Open SSL support
189$rcmail_config['enable_spellcheck'] = TRUE;
190
191// For a locally installed Nox Spell Server, please specify the URI to call it.
192// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
193// Leave empty to use the Google spell checking service, what means
194// that the message content will be sent to Google in order to check spelling
195$rcmail_config['spellcheck_uri'] = '';
196
197// These languages can be selected for spell checking.
198// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
199// Leave empty for default set of Google spell check languages
200$rcmail_config['spellcheck_languages'] = NULL;
201
202// path to a text file which will be added to each sent message
203// paths are relative to the RoundCube root folder
204$rcmail_config['generic_message_footer'] = '';
205
206// add a received header to outgoing mails containing the creators IP and hostname
207$rcmail_config['http_received_header'] = false;
208
209// this string is used as a delimiter for message headers when sending
210// leave empty for auto-detection
211$rcmail_config['mail_header_delimiter'] = NULL;
212
213// session domain: .example.org
214$rcmail_config['session_domain'] = '';
215
216// This indicates which type of address book to use. Possible choises:
217// 'sql' (default) and 'ldap'.
218// If set to 'ldap' then it will look at using the first writable LDAP
219// address book as the primary address book and it will not display the
220// SQL address book in the 'Address Book' view.
221$rcmail_config['address_book_type'] = 'sql';
222
223// In order to enable public ldap search, configure an array like the Verisign
224// example further below. if you would like to test, simply uncomment the example.
225//
226// If you are going to use LDAP for individual address books, you will need to
227// set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
228//
229// The recommended directory structure for LDAP is to store all the address book entries
230// under the users main entry, e.g.:
231//
232//  o=root
233//   ou=people
234//    uid=user@domain
235//      mail=contact@contactdomain
236//     
237// So the base_dn would be uid=%fu,ou=people,o=root
238// The bind_dn would be the same as based_dn or some super user login.
239/**
240 * example config for Verisign directory
241 *
242 * $rcmail_config['ldap_public']['Verisign'] = array(
243 *  'name'          => 'Verisign.com',
244 *  'hosts'         => array('directory.verisign.com'),
245 *  'port'          => 389,
246 *  'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
247 *  // %fu - The full username provided, assumes the username is an email
248 *  //       address, uses the username_domain value if not an email address.
249 *  // %u  - The username prior to the '@'.
250 *  // %d  - The domain name after the '@'.
251 *  'base_dn'       => '',
252 *  'bind_dn'       => '',
253 *  'bind_pass'     => '',
254 *  'writable'      => false,   // Indicates if we can write to the LDAP directory or not.
255 *  // If writable is true then these fields need to be populated:
256 *  // LDAP_Object_Classes, required_fields, LDAP_rdn
257 *  '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).
258 *  '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).
259 *  '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.
260 *  'ldap_version'  => 3,       // using LDAPv3
261 *  'search_fields' => array('mail', 'cn'),  // fields to search in
262 *  'name_field'    => 'cn',    // this field represents the contact's name
263 *  'email_field'   => 'mail',  // this field represents the contact's e-mail
264 *  'surname_field' => 'sn',    // this field represents the contact's last name
265 *  'firstname_field' => 'gn',  // this field represents the contact's first name
266 *  'sort'          => 'cn',    // The field to sort the listing by.
267 *  'scope'         => 'sub',   // search mode: sub|base|list
268 *  'filter'        => '',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
269 *  'fuzzy_search'  => true);   // server allows wildcard search
270 */
271
272// don't allow these settings to be overriden by the user
273$rcmail_config['dont_override'] = array();
274
275// try to load host-specific configuration
276$rcmail_config['include_host_config'] = false;
277
278// don't let users set pagesize to more than this value if set
279$rcmail_config['max_pagesize'] = 200;
280
281// mime magic database
282$rcmail_config['mime_magic'] = '/usr/share/misc/magic';
283
284// default sort col
285$rcmail_config['message_sort_col'] = 'date';
286
287// default sort order
288$rcmail_config['message_sort_order'] = 'DESC';
289
290// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
291// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
292$rcmail_config['enable_installer'] = false;
293
294/***** these settings can be overwritten by user's preferences *****/
295
296// show up to X items in list view
297$rcmail_config['pagesize'] = 40;
298
299// use this timezone to display date/time
300$rcmail_config['timezone'] = intval(date('O'))/100 - date('I');
301
302// is daylight saving On?
303$rcmail_config['dst_active'] = (bool)date('I');
304
305// prefer displaying HTML messages
306$rcmail_config['prefer_html'] = TRUE;
307
308// compose html formatted messages by default
309$rcmail_config['htmleditor'] = FALSE;
310
311// show pretty dates as standard
312$rcmail_config['prettydate'] = TRUE;
313
314// save compose message every 300 seconds (5min)
315$rcmail_config['draft_autosave'] = 300;
316
317// default setting if preview pane is enabled
318$rcmail_config['preview_pane'] = FALSE;
319
320// Clear Trash on logout
321$rcmail_config['logout_purge'] = FALSE;
322
323// Compact INBOX on logout
324$rcmail_config['logout_expunge'] = FALSE;
325
326// end of config file
327?>
Note: See TracBrowser for help on using the repository browser.