Ajout : roundcube.
[lhc/ateliers.git] / etc / roundcube / main.inc.php
1 <?php
2
3 /*
4 +-----------------------------------------------------------------------+
5 | Main configuration file |
6 | |
7 | This file is part of the Roundcube Webmail client |
8 | Copyright (C) 2005-2011, The Roundcube Dev Team |
9 | Licensed under the GNU GPL |
10 | |
11 +-----------------------------------------------------------------------+
12
13 */
14
15 $http_host=$_SERVER['HTTP_HOST'];
16 if (substr($http_host, 0, strlen("roundcube.")) == "roundcube.") {
17 $http_host = substr($http_host, strlen("roundcube."));
18 }
19
20 $rcmail_config = array();
21
22 // ----------------------------------
23 // LOGGING/DEBUGGING
24 // ----------------------------------
25
26 // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
27 $rcmail_config['debug_level'] = 1;
28
29 // log driver: 'syslog' or 'file'.
30 $rcmail_config['log_driver'] = 'file';
31
32 // date format for log entries
33 // (read http://php.net/manual/en/function.date.php for all format characters)
34 $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
35
36 // Syslog ident string to use, if using the 'syslog' log driver.
37 $rcmail_config['syslog_id'] = 'roundcube';
38
39 // Syslog facility to use, if using the 'syslog' log driver.
40 // For possible values see installer or http://php.net/manual/en/function.openlog.php
41 $rcmail_config['syslog_facility'] = LOG_MAIL;
42
43 // Log sent messages to <log_dir>/sendmail or to syslog
44 $rcmail_config['smtp_log'] = true;
45
46 // Log successful logins to <log_dir>/userlogins or to syslog
47 $rcmail_config['log_logins'] = false;
48
49 // Log session authentication errors to <log_dir>/session or to syslog
50 $rcmail_config['log_session'] = false;
51
52 // Log SQL queries to <log_dir>/sql or to syslog
53 $rcmail_config['sql_debug'] = false;
54
55 // Log IMAP conversation to <log_dir>/imap or to syslog
56 $rcmail_config['imap_debug'] = false;
57
58 // Log LDAP conversation to <log_dir>/ldap or to syslog
59 $rcmail_config['ldap_debug'] = false;
60
61 // Log SMTP conversation to <log_dir>/smtp or to syslog
62 $rcmail_config['smtp_debug'] = false;
63
64 // ----------------------------------
65 // IMAP
66 // ----------------------------------
67
68 // the mail host chosen to perform the log-in
69 // leave blank to show a textbox at login, give a list of hosts
70 // to display a pulldown menu or set one host as string.
71 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
72 // Supported replacement variables:
73 // %n - http hostname ($_SERVER['SERVER_NAME'])
74 // %d - domain (http hostname without the first part)
75 // %s - domain name after the '@' from e-mail address provided at login screen
76 // For example %n = mail.domain.tld, %d = domain.tld
77 $rcmail_config['default_host'] = 'localhost';
78
79 // TCP port used for IMAP connections
80 $rcmail_config['default_port'] = 143;
81
82 // IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
83 // best server supported one)
84 $rcmail_config['imap_auth_type'] = null;
85
86 // If you know your imap's folder delimiter, you can specify it here.
87 // Otherwise it will be determined automatically
88 $rcmail_config['imap_delimiter'] = null;
89
90 // If IMAP server doesn't support NAMESPACE extension, but you're
91 // using shared folders or personal root folder is non-empty, you'll need to
92 // set these options. All can be strings or arrays of strings.
93 // Folders need to be ended with directory separator, e.g. "INBOX."
94 // (special directory "~" is an exception to this rule)
95 // These can be used also to overwrite server's namespaces
96 $rcmail_config['imap_ns_personal'] = null;
97 $rcmail_config['imap_ns_other'] = null;
98 $rcmail_config['imap_ns_shared'] = null;
99
100 // By default IMAP capabilities are readed after connection to IMAP server
101 // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
102 // after login. Set to True if you've got this case.
103 $rcmail_config['imap_force_caps'] = false;
104
105 // By default list of subscribed folders is determined using LIST-EXTENDED
106 // extension if available. Some servers (dovecot 1.x) returns wrong results
107 // for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
108 // Enable this option to force LSUB command usage instead.
109 $rcmail_config['imap_force_lsub'] = false;
110
111 // IMAP connection timeout, in seconds. Default: 0 (no limit)
112 $rcmail_config['imap_timeout'] = 0;
113
114 // Optional IMAP authentication identifier to be used as authorization proxy
115 $rcmail_config['imap_auth_cid'] = null;
116
117 // Optional IMAP authentication password to be used for imap_auth_cid
118 $rcmail_config['imap_auth_pw'] = null;
119
120 // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
121 $rcmail_config['imap_cache'] = null;
122
123 // Enables messages cache. Only 'db' cache is supported.
124 $rcmail_config['messages_cache'] = false;
125
126
127 // ----------------------------------
128 // SMTP
129 // ----------------------------------
130
131 // SMTP server host (for sending mails).
132 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
133 // If left blank, the PHP mail() function is used
134 // Supported replacement variables:
135 // %h - user's IMAP hostname
136 // %n - http hostname ($_SERVER['SERVER_NAME'])
137 // %d - domain (http hostname without the first part)
138 // %z - IMAP domain (IMAP hostname without the first part)
139 // For example %n = mail.domain.tld, %d = domain.tld
140 $rcmail_config['smtp_server'] = '';
141
142 // SMTP port (default is 25; 465 for SSL)
143 $rcmail_config['smtp_port'] = 465;
144
145 // SMTP username (if required) if you use %u as the username Roundcube
146 // will use the current username for login
147 $rcmail_config['smtp_user'] = '';
148
149 // SMTP password (if required) if you use %p as the password Roundcube
150 // will use the current user's password for login
151 $rcmail_config['smtp_pass'] = '';
152
153 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
154 // best server supported one)
155 $rcmail_config['smtp_auth_type'] = '';
156
157 // Optional SMTP authentication identifier to be used as authorization proxy
158 $rcmail_config['smtp_auth_cid'] = null;
159
160 // Optional SMTP authentication password to be used for smtp_auth_cid
161 $rcmail_config['smtp_auth_pw'] = null;
162
163 // SMTP HELO host
164 // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
165 // Leave this blank and you will get the server variable 'server_name' or
166 // localhost if that isn't defined.
167 $rcmail_config['smtp_helo_host'] = '';
168
169 // SMTP connection timeout, in seconds. Default: 0 (no limit)
170 $rcmail_config['smtp_timeout'] = 0;
171
172 // ----------------------------------
173 // SYSTEM
174 // ----------------------------------
175
176 // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
177 // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
178 $rcmail_config['enable_installer'] = false;
179
180 // use this folder to store log files (must be writeable for apache user)
181 // This is used by the 'file' log driver.
182 $rcmail_config['log_dir'] = '/home/www/log/php5/fpm/roundcube/';
183
184 // use this folder to store temp files (must be writeable for apache user)
185 $rcmail_config['temp_dir'] = 'temp/';
186
187 // lifetime of message cache
188 // possible units: s, m, h, d, w
189 $rcmail_config['message_cache_lifetime'] = '10d';
190
191 // enforce connections over https
192 // with this option enabled, all non-secure connections will be redirected.
193 // set the port for the ssl connection as value of this option if it differs from the default 443
194 $rcmail_config['force_https'] = true;
195
196 // tell PHP that it should work as under secure connection
197 // even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
198 // e.g. when you're running Roundcube behind a https proxy
199 $rcmail_config['use_https'] = true;
200
201 // Allow browser-autocompletion on login form.
202 // 0 - disabled, 1 - username and host only, 2 - username, host, password
203 $rcmail_config['login_autocomplete'] = 2;
204
205 // If users authentication is not case sensitive this must be enabled.
206 // You can also use it to force conversion of logins to lower case.
207 // After enabling it all user records need to be updated, e.g. with query:
208 // UPDATE users SET username = LOWER(username);
209 $rcmail_config['login_lc'] = false;
210
211 // automatically create a new Roundcube user when log-in the first time.
212 // a new user will be created once the IMAP login succeeds.
213 // set to false if only registered users can use this service
214 $rcmail_config['auto_create_user'] = true;
215
216 // replace Roundcube logo with this image
217 // specify an URL relative to the document root of this Roundcube installation
218 $http_host=$_SERVER['HTTP_HOST'];
219 if (substr($http_host, 0, strlen("roundcube.")) == "roundcube.") {
220 $http_host = substr($http_host, strlen("roundcube."));
221 }
222 if (file_exists("/home/www/pub/roundcube/images/logo-$http_host.png")) {
223 $rcmail_config['skin_logo'] = "./images/logo-$http_host.png";
224 }
225 else {
226 $rcmail_config['skin_logo'] = null;
227 }
228
229 // Includes should be interpreted as PHP files
230 $rcmail_config['skin_include_php'] = false;
231
232 // Session lifetime in minutes
233 // must be greater than 'keep_alive'/60
234 $rcmail_config['session_lifetime'] = 10;
235
236 // session domain: .example.org
237 $rcmail_config['session_domain'] = '';
238
239 // session name. Default: 'roundcube_sessid'
240 $rcmail_config['session_name'] = null;
241
242 // Backend to use for session storage. Can either be 'db' (default) or 'memcache'
243 // If set to memcache, a list of servers need to be specified in 'memcache_hosts'
244 // Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
245 $rcmail_config['session_storage'] = 'db';
246
247 // Use these hosts for accessing memcached
248 // Define any number of hosts in the form hostname:port
249 $rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211' );
250
251 // check client IP in session authorization
252 $rcmail_config['ip_check'] = false;
253
254 // check referer of incoming requests
255 $rcmail_config['referer_check'] = false;
256
257 // X-Frame-Options HTTP header value sent to prevent from Clickjacking.
258 // Possible values: sameorigin|deny. Set to false in order to disable sending them
259 $rcmail_config['x_frame_options'] = 'sameorigin';
260
261 // this key is used to encrypt the users imap password which is stored
262 // in the session record (and the client cookie if remember password is enabled).
263 // please provide a string of exactly 24 chars.
264 // $rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
265 include_once("/etc/roundcube/key.inc.php");
266
267 // Automatically add this domain to user names for login
268 // Only for IMAP servers that require full e-mail addresses for login
269 // Specify an array with 'host' => 'domain' values to support multiple hosts
270 // Supported replacement variables:
271 // %h - user's IMAP hostname
272 // %n - http hostname ($_SERVER['SERVER_NAME'])
273 // %d - domain (http hostname without the first part)
274 // %z - IMAP domain (IMAP hostname without the first part)
275 // For example %n = mail.domain.tld, %d = domain.tld
276 $rcmail_config['username_domain'] = "$http_host";
277
278 // This domain will be used to form e-mail addresses of new users
279 // Specify an array with 'host' => 'domain' values to support multiple hosts
280 // Supported replacement variables:
281 // %h - user's IMAP hostname
282 // %n - http hostname ($_SERVER['SERVER_NAME'])
283 // %d - domain (http hostname without the first part)
284 // %z - IMAP domain (IMAP hostname without the first part)
285 // For example %n = mail.domain.tld, %d = domain.tld
286 $rcmail_config['mail_domain'] = "$http_host";
287
288 // Password charset.
289 // Use it if your authentication backend doesn't support UTF-8.
290 // Defaults to ISO-8859-1 for backward compatibility
291 $rcmail_config['password_charset'] = 'UTF-8';
292
293 // How many seconds must pass between emails sent by a user
294 $rcmail_config['sendmail_delay'] = 10;
295
296 // Maximum number of recipients per message. Default: 0 (no limit)
297 $rcmail_config['max_recipients'] = 100;
298
299 // Maximum allowednumber of members of an address group. Default: 0 (no limit)
300 // If 'max_recipients' is set this value should be less or equal
301 $rcmail_config['max_group_members'] = 0;
302
303 // add this user-agent to message headers when sending
304 $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
305
306 // use this name to compose page titles
307 $rcmail_config['product_name'] = 'Roundcube Webmail';
308
309 // try to load host-specific configuration
310 // see http://trac.roundcube.net/wiki/Howto_Config for more details
311 $rcmail_config['include_host_config'] = false;
312
313 // path to a text file which will be added to each sent message
314 // paths are relative to the Roundcube root folder
315 $rcmail_config['generic_message_footer'] = '';
316
317 // path to a text file which will be added to each sent HTML message
318 // paths are relative to the Roundcube root folder
319 $rcmail_config['generic_message_footer_html'] = '';
320
321 // add a received header to outgoing mails containing the creators IP and hostname
322 $rcmail_config['http_received_header'] = false;
323
324 // Whether or not to encrypt the IP address and the host name
325 // these could, in some circles, be considered as sensitive information;
326 // however, for the administrator, these could be invaluable help
327 // when tracking down issues.
328 $rcmail_config['http_received_header_encrypt'] = false;
329
330 // This string is used as a delimiter for message headers when sending
331 // a message via mail() function. Leave empty for auto-detection
332 $rcmail_config['mail_header_delimiter'] = NULL;
333
334 // number of chars allowed for line when wrapping text.
335 // text wrapping is done when composing/sending messages
336 $rcmail_config['line_length'] = 72;
337
338 // send plaintext messages as format=flowed
339 $rcmail_config['send_format_flowed'] = true;
340
341 // don't allow these settings to be overriden by the user
342 $rcmail_config['dont_override'] = array();
343
344 // Set identities access level:
345 // 0 - many identities with possibility to edit all params
346 // 1 - many identities with possibility to edit all params but not email address
347 // 2 - one identity with possibility to edit all params
348 // 3 - one identity with possibility to edit all params but not email address
349 $rcmail_config['identities_level'] = 0;
350
351 // Mimetypes supported by the browser.
352 // attachments of these types will open in a preview window
353 // either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
354 $rcmail_config['client_mimetypes'] = null; # null == default
355
356 // mime magic database
357 $rcmail_config['mime_magic'] = '/usr/share/misc/magic';
358
359 // path to imagemagick identify binary
360 $rcmail_config['im_identify_path'] = null;
361
362 // path to imagemagick convert binary
363 $rcmail_config['im_convert_path'] = null;
364
365 // maximum size of uploaded contact photos in pixel
366 $rcmail_config['contact_photo_size'] = 160;
367
368 // Enable DNS checking for e-mail address validation
369 $rcmail_config['email_dns_check'] = false;
370
371 // ----------------------------------
372 // PLUGINS
373 // ----------------------------------
374
375 // List of active plugins (in plugins/ directory)
376 $rcmail_config['plugins'] = array(
377 'acl',
378 'jqueryui',
379 'recipient_to_contact',
380 'password',
381 'userinfo',
382 #'hide_blockquote',
383 'markasjunk',
384 'managesieve',
385 'show_additional_headers',
386 #'subscriptions_option',
387 );
388
389 // ----------------------------------
390 // plugin acl
391 // ----------------------------------
392
393 // Default look of access rights table
394 // In advanced mode all access rights are displayed separately
395 // In simple mode access rights are grouped into four groups: read, write, delete, full
396 $rcmail_config['acl_advanced_mode'] = false;
397
398 // LDAP addressbook that would be searched for user names autocomplete.
399 // That should be an array refering to the $rcmail_config['ldap_public'] array key
400 // or complete addressbook configuration array.
401 $rcmail_config['acl_users_source'] = '';
402
403 // The LDAP attribute which will be used as ACL user identifier
404 $rcmail_config['acl_users_field'] = 'mail';
405
406 // The LDAP search filter will be &'d with search queries
407 $rcmail_config['acl_users_filter'] = '';
408
409 // ----------------------------------
410 // plugin managesieve
411 // ----------------------------------
412
413 // managesieve server port
414 $rcmail_config['managesieve_port'] = 4190;
415
416 // managesieve server address, default is localhost.
417 // Replacement variables supported in host name:
418 // %h - user's IMAP hostname
419 // %n - http hostname ($_SERVER['SERVER_NAME'])
420 // %d - domain (http hostname without the first part)
421 // For example %n = mail.domain.tld, %d = domain.tld
422 $rcmail_config['managesieve_host'] = 'localhost';
423
424 // authentication method. Can be CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, EXTERNAL
425 // or none. Optional, defaults to best method supported by server.
426 $rcmail_config['managesieve_auth_type'] = null;
427
428 // Optional managesieve authentication identifier to be used as authorization proxy.
429 // Authenticate as a different user but act on behalf of the logged in user.
430 // Works with PLAIN and DIGEST-MD5 auth.
431 $rcmail_config['managesieve_auth_cid'] = null;
432
433 // Optional managesieve authentication password to be used for imap_auth_cid
434 $rcmail_config['managesieve_auth_pw'] = null;
435
436 // use or not TLS for managesieve server connection
437 // it's because I've problems with TLS and dovecot's managesieve plugin
438 // and it's not needed on localhost
439 $rcmail_config['managesieve_usetls'] = false;
440
441 // default contents of filters script (eg. default spam filter)
442 $rcmail_config['managesieve_default'] = '/home/mail/sieve/global.d';
443
444 // The name of the script which will be used when there's no user script
445 $rcmail_config['managesieve_script_name'] = 'roundcube';
446
447 // Sieve RFC says that we should use UTF-8 endcoding for mailbox names,
448 // but some implementations does not covert UTF-8 to modified UTF-7.
449 // Defaults to UTF7-IMAP
450 $rcmail_config['managesieve_mbox_encoding'] = 'UTF-8';
451
452 // I need this because my dovecot (with listescape plugin) uses
453 // ':' delimiter, but creates folders with dot delimiter
454 $rcmail_config['managesieve_replace_delimiter'] = '';
455
456 // disabled sieve extensions (body, copy, date, editheader, encoded-character,
457 // envelope, environment, ereject, fileinto, ihave, imap4flags, index,
458 // mailbox, mboxmetadata, regex, reject, relational, servermetadata,
459 // spamtest, spamtestplus, subaddress, vacation, variables, virustest, etc.
460 // Note: not all extensions are implemented
461 $rcmail_config['managesieve_disabled_extensions'] = array();
462
463 // Enables debugging of conversation with sieve server. Logs it into <log_dir>/sieve
464 $rcmail_config['managesieve_debug'] = true;
465
466 // Enables features described in http://wiki.kolab.org/KEP:14
467 $rcmail_config['managesieve_kolab_master'] = false;
468
469 // Script name extension used for scripts including. Dovecot uses '.sieve',
470 // Cyrus uses '.siv'. Doesn't matter if you have managesieve_kolab_master disabled.
471 $rcmail_config['managesieve_filename_extension'] = '.sieve';
472
473 // List of reserved script names (without extension).
474 // Scripts listed here will be not presented to the user.
475 $rcmail_config['managesieve_filename_exceptions'] = array();
476
477 // ----------------------------------
478 // plugin password
479 // ----------------------------------
480
481 // Password Plugin options
482 // -----------------------
483 // A driver to use for password change. Default: "sql".
484 // See README file for list of supported driver names.
485 $rcmail_config['password_driver'] = 'chpasswd';
486
487 // Determine whether current password is required to change password.
488 // Default: false.
489 $rcmail_config['password_confirm_current'] = true;
490
491 // Require the new password to be a certain length.
492 // set to blank to allow passwords of any length
493 $rcmail_config['password_minimum_length'] = 12;
494
495 // Require the new password to contain a letter and punctuation character
496 // Change to false to remove this check.
497 $rcmail_config['password_require_nonalpha'] = true;
498
499 // Enables logging of password changes into logs/password
500 $rcmail_config['password_log'] = true;
501
502 // Comma-separated list of login exceptions for which password change
503 // will be not available (no Password tab in Settings)
504 $rcmail_config['password_login_exceptions'] = null;
505
506 // Array of hosts that support password changing. Default is NULL.
507 // Listed hosts will feature a Password option in Settings; others will not.
508 // Example:
509 //$rcmail_config['password_hosts'] = array('mail.example.com', 'mail2.example.org');
510 $rcmail_config['password_hosts'] = null;
511
512 // chpasswd Driver options
513 // ---------------------
514 // Command to use
515 $rcmail_config['password_chpasswd_cmd'] = '/usr/local/bin/roundcube-chpasswd';
516
517 // ----------------------------------
518 // plugin recipient_to_contact
519 // ----------------------------------
520
521 /**
522 * Defines which address books are used for searching and adding new contacts to.
523 *
524 * Empty array means the plugins uses 'autocomplete_addressbooks' setting from main.inc.php
525 */
526 $rcmail_config['recipient_to_contact_addressbooks'] = array('sql');
527
528 /**
529 * Whether the plugin is enabled or disabled for users by default.
530 *
531 * If set to true, the plugin is enabled and users can disable it through settings menu.
532 */
533 $rcmail_config['recipient_to_contact_enabled_by_default'] = true;
534
535 /**
536 * Whether the groups feature is enabled or not.
537 *
538 * If set to true, the contact group dropdown is shown in the dialog.
539 */
540 $rcmail_config['recipient_to_contact_use_groups'] = true;
541
542 // ----------------------------------
543 // USER INTERFACE
544 // ----------------------------------
545
546 // default messages sort column. Use empty value for default server's sorting,
547 // or 'arrival', 'date', 'subject', 'from', 'to', 'size', 'cc'
548 $rcmail_config['message_sort_col'] = '';
549
550 // default messages sort order
551 $rcmail_config['message_sort_order'] = 'DESC';
552
553 // These cols are shown in the message list. Available cols are:
554 // subject, from, to, cc, replyto, date, size, status, flag, attachment, 'priority'
555 $rcmail_config['list_cols'] = array('subject', 'status', 'from', 'date', 'size', 'flag', 'attachment');
556
557 // the default locale setting (leave empty for auto-detection)
558 // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
559 $rcmail_config['language'] = fr_FR;
560
561 // use this format for date display (date or strftime format)
562 $rcmail_config['date_format'] = 'Y-m-d';
563
564 // give this choice of date formats to the user to select from
565 $rcmail_config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
566
567 // use this format for time display (date or strftime format)
568 $rcmail_config['time_format'] = 'H:i';
569
570 // give this choice of time formats to the user to select from
571 $rcmail_config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A');
572
573 // use this format for short date display (derived from date_format and time_format)
574 $rcmail_config['date_short'] = 'D H:i';
575
576 // use this format for detailed date/time formatting (derived from date_format and time_format)
577 $rcmail_config['date_long'] = 'Y-m-d H:i';
578
579 // store draft message is this mailbox
580 // leave blank if draft messages should not be stored
581 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
582 $rcmail_config['drafts_mbox'] = 'Drafts';
583
584 // store spam messages in this mailbox
585 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
586 $rcmail_config['junk_mbox'] = 'Junk';
587
588 // store sent message is this mailbox
589 // leave blank if sent messages should not be stored
590 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
591 $rcmail_config['sent_mbox'] = 'Sent';
592
593 // move messages to this folder when deleting them
594 // leave blank if they should be deleted directly
595 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
596 $rcmail_config['trash_mbox'] = 'Trash';
597
598 // display these folders separately in the mailbox list.
599 // these folders will also be displayed with localized names
600 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
601 $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
602
603 // automatically create the above listed default folders on first login
604 $rcmail_config['create_default_folders'] = false;
605
606 // protect the default folders from renames, deletes, and subscription changes
607 $rcmail_config['protect_default_folders'] = true;
608
609 // if in your system 0 quota means no limit set this option to true
610 $rcmail_config['quota_zero_as_unlimited'] = false;
611
612 // Make use of the built-in spell checker. It is based on GoogieSpell.
613 // Since Google only accepts connections over https your PHP installatation
614 // requires to be compiled with Open SSL support
615 $rcmail_config['enable_spellcheck'] = true;
616
617 // Enables spellchecker exceptions dictionary.
618 // Setting it to 'shared' will make the dictionary shared by all users.
619 $rcmail_config['spellcheck_dictionary'] = true;
620
621 // Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
622 // but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
623 $rcmail_config['spellcheck_engine'] = 'pspell';
624
625 // For a locally installed Nox Spell Server, please specify the URI to call it.
626 // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
627 // Leave empty to use the Google spell checking service, what means
628 // that the message content will be sent to Google in order to check spelling
629 $rcmail_config['spellcheck_uri'] = '';
630
631 // These languages can be selected for spell checking.
632 // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
633 // Leave empty for default set of available language.
634 $rcmail_config['spellcheck_languages'] = array
635 ( 'de' => 'Deutsch'
636 , 'en' => 'English'
637 , 'es' => 'Español'
638 , 'fr' => 'Français'
639 , 'it' => 'Italiano'
640 , 'pl' => 'Polski'
641 );
642
643 // Makes that words with all letters capitalized will be ignored (e.g. GOOGLE)
644 $rcmail_config['spellcheck_ignore_caps'] = false;
645
646 // Makes that words with numbers will be ignored (e.g. g00gle)
647 $rcmail_config['spellcheck_ignore_nums'] = false;
648
649 // Makes that words with symbols will be ignored (e.g. g@@gle)
650 $rcmail_config['spellcheck_ignore_syms'] = false;
651
652 // Use this char/string to separate recipients when composing a new message
653 $rcmail_config['recipients_separator'] = ',';
654
655 // don't let users set pagesize to more than this value if set
656 $rcmail_config['max_pagesize'] = 200;
657
658 // Minimal value of user's 'keep_alive' setting (in seconds)
659 // Must be less than 'session_lifetime'
660 $rcmail_config['min_keep_alive'] = 60;
661
662 // Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
663 // By default refresh time is set to 1 second. You can set this value to true
664 // or any integer value indicating number of seconds.
665 $rcmail_config['upload_progress'] = true;
666
667 // Specifies for how many seconds the Undo button will be available
668 // after object delete action. Currently used with supporting address book sources.
669 // Setting it to 0, disables the feature.
670 $rcmail_config['undo_timeout'] = 0;
671
672 // ----------------------------------
673 // ADDRESSBOOK SETTINGS
674 // ----------------------------------
675
676 // This indicates which type of address book to use. Possible choises:
677 // 'sql' (default) and 'ldap'.
678 // If set to 'ldap' then it will look at using the first writable LDAP
679 // address book as the primary address book and it will not display the
680 // SQL address book in the 'Address Book' view.
681 $rcmail_config['address_book_type'] = 'sql';
682
683 // In order to enable public ldap search, configure an array like the Verisign
684 // example further below. if you would like to test, simply uncomment the example.
685 // Array key must contain only safe characters, ie. a-zA-Z0-9_
686 $rcmail_config['ldap_public'] = array();
687
688 // If you are going to use LDAP for individual address books, you will need to
689 // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
690 //
691 // The recommended directory structure for LDAP is to store all the address book entries
692 // under the users main entry, e.g.:
693 //
694 // o=root
695 // ou=people
696 // uid=user@domain
697 // mail=contact@contactdomain
698 //
699 // So the base_dn would be uid=%fu,ou=people,o=root
700 // The bind_dn would be the same as based_dn or some super user login.
701 /*
702 * example config for Verisign directory
703 *
704 $rcmail_config['ldap_public']['Verisign'] = array(
705 'name' => 'Verisign.com',
706 // Replacement variables supported in host names:
707 // %h - user's IMAP hostname
708 // %n - http hostname ($_SERVER['SERVER_NAME'])
709 // %d - domain (http hostname without the first part)
710 // %z - IMAP domain (IMAP hostname without the first part)
711 // For example %n = mail.domain.tld, %d = domain.tld
712 'hosts' => array('directory.verisign.com'),
713 'port' => 389,
714 'use_tls' => false,
715 'ldap_version' => 3, // using LDAPv3
716 'user_specific' => false, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
717 // %fu - The full username provided, assumes the username is an email
718 // address, uses the username_domain value if not an email address.
719 // %u - The username prior to the '@'.
720 // %d - The domain name after the '@'.
721 // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
722 // %dn - DN found by ldap search when search_filter/search_base_dn are used
723 'base_dn' => '',
724 'bind_dn' => '',
725 'bind_pass' => '',
726 // It's possible to bind for an individual address book
727 // The login name is used to search for the DN to bind with
728 'search_base_dn' => '',
729 'search_filter' => '', // e.g. '(&(objectClass=posixAccount)(uid=%u))'
730 // DN and password to bind as before searching for bind DN, if anonymous search is not allowed
731 'search_bind_dn' => '',
732 'search_bind_pw' => '',
733 // Default for %dn variable if search doesn't return DN value
734 'search_dn_default' => '',
735 // Optional authentication identifier to be used as SASL authorization proxy
736 // bind_dn need to be empty
737 'auth_cid' => '',
738 // SASL authentication method (for proxy auth), e.g. DIGEST-MD5
739 'auth_method' => '',
740 // Indicates if the addressbook shall be hidden from the list.
741 // With this option enabled you can still search/view contacts.
742 'hidden' => false,
743 // Indicates if the addressbook shall not list contacts but only allows searching.
744 'searchonly' => false,
745 // Indicates if we can write to the LDAP directory or not.
746 // If writable is true then these fields need to be populated:
747 // LDAP_Object_Classes, required_fields, LDAP_rdn
748 'writable' => false,
749 // To create a new contact these are the object classes to specify
750 // (or any other classes you wish to use).
751 'LDAP_Object_Classes' => array('top', 'inetOrgPerson'),
752 // The RDN field that is used for new entries, this field needs
753 // to be one of the search_fields, the base of base_dn is appended
754 // to the RDN to insert into the LDAP directory.
755 'LDAP_rdn' => 'mail',
756 // The required fields needed to build a new contact as required by
757 // the object classes (can include additional fields not required by the object classes).
758 'required_fields' => array('cn', 'sn', 'mail'),
759 'search_fields' => array('mail', 'cn'), // fields to search in
760 // mapping of contact fields to directory attributes
761 'fieldmap' => array(
762 // Roundcube => LDAP
763 'name' => 'cn',
764 'surname' => 'sn',
765 'firstname' => 'givenName',
766 'email' => 'mail',
767 'phone:home' => 'homePhone',
768 'phone:work' => 'telephoneNumber',
769 'phone:mobile' => 'mobile',
770 'street' => 'street',
771 'zipcode' => 'postalCode',
772 'locality' => 'l',
773 'country' => 'c',
774 'organization' => 'o',
775 ),
776 'sort' => 'cn', // The field to sort the listing by.
777 'scope' => 'sub', // search mode: sub|base|list
778 'filter' => '(objectClass=inetOrgPerson)', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
779 'fuzzy_search' => true, // server allows wildcard search
780 'vlv' => false, // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
781 'numsub_filter' => '(objectClass=organizationalUnit)', // with VLV, we also use numSubOrdinates to query the total number of records. Set this filter to get all numSubOrdinates attributes for counting
782 'sizelimit' => '0', // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
783 'timelimit' => '0', // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
784 'referrals' => true|false, // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
785
786 // definition for contact groups (uncomment if no groups are supported)
787 // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
788 // if the groups base_dn is empty, the contact base_dn is used for the groups as well
789 // -> in this case, assure that groups and contacts are separated due to the concernig filters!
790 'groups' => array(
791 'base_dn' => '',
792 'scope' => 'sub', // search mode: sub|base|list
793 'filter' => '(objectClass=groupOfNames)',
794 'object_classes' => array("top", "groupOfNames"),
795 'member_attr' => 'member', // name of the member attribute, e.g. uniqueMember
796 'name_attr' => 'cn', // attribute to be used as group name
797 ),
798 );
799 */
800
801 // An ordered array of the ids of the addressbooks that should be searched
802 // when populating address autocomplete fields server-side. ex: array('sql','Verisign');
803 $rcmail_config['autocomplete_addressbooks'] = array('sql');
804
805 // The minimum number of characters required to be typed in an autocomplete field
806 // before address books will be searched. Most useful for LDAP directories that
807 // may need to do lengthy results building given overly-broad searches
808 $rcmail_config['autocomplete_min_length'] = 1;
809
810 // Number of parallel autocomplete requests.
811 // If there's more than one address book, n parallel (async) requests will be created,
812 // where each request will search in one address book. By default (0), all address
813 // books are searched in one request.
814 $rcmail_config['autocomplete_threads'] = 0;
815
816 // Max. numer of entries in autocomplete popup. Default: 15.
817 $rcmail_config['autocomplete_max'] = 15;
818
819 // show address fields in this order
820 // available placeholders: {street}, {locality}, {zipcode}, {country}, {region}
821 $rcmail_config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
822
823 // Matching mode for addressbook search (including autocompletion)
824 // 0 - partial (*abc*), default
825 // 1 - strict (abc)
826 // 2 - prefix (abc*)
827 // Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode
828 $rcmail_config['addressbook_search_mode'] = 0;
829
830 // ----------------------------------
831 // USER PREFERENCES
832 // ----------------------------------
833
834 // Use this charset as fallback for message decoding
835 $rcmail_config['default_charset'] = 'UTF-8';
836
837 // skin name: folder from skins/
838 $rcmail_config['skin'] = 'default';
839
840 // show up to X items in list view
841 $rcmail_config['pagesize'] = 40;
842
843 // sort contacts by this col (preferably either one of name, firstname, surname)
844 $rcmail_config['addressbook_sort_col'] = 'surname';
845
846 // the way how contact names are displayed in the list
847 // 0: display name
848 // 1: (prefix) firstname middlename surname (suffix)
849 // 2: (prefix) surname firstname middlename (suffix)
850 // 3: (prefix) surname, firstname middlename (suffix)
851 $rcmail_config['addressbook_name_listing'] = 0;
852
853 // use this timezone to display date/time
854 $rcmail_config['timezone'] = 'auto';
855
856 // is daylight saving On? Default: (bool)date('I');
857 $rcmail_config['dst_active'] = null;
858
859 // prefer displaying HTML messages
860 $rcmail_config['prefer_html'] = true;
861
862 // display remote inline images
863 // 0 - Never, always ask
864 // 1 - Ask if sender is not in address book
865 // 2 - Always show inline images
866 $rcmail_config['show_images'] = 0;
867
868 // compose html formatted messages by default
869 // 0 - never, 1 - always, 2 - on reply to HTML message only
870 $rcmail_config['htmleditor'] = 2;
871
872 // show pretty dates as standard
873 $rcmail_config['prettydate'] = true;
874
875 // save compose message every 300 seconds (5min)
876 $rcmail_config['draft_autosave'] = 300;
877
878 // default setting if preview pane is enabled
879 $rcmail_config['preview_pane'] = true;
880
881 // Mark as read when viewed in preview pane (delay in seconds)
882 // Set to -1 if messages in preview pane should not be marked as read
883 $rcmail_config['preview_pane_mark_read'] = 0;
884
885 // Clear Trash on logout
886 $rcmail_config['logout_purge'] = false;
887
888 // Compact INBOX on logout
889 $rcmail_config['logout_expunge'] = true;
890
891 // Display attached images below the message body
892 $rcmail_config['inline_images'] = true;
893
894 // Encoding of long/non-ascii attachment names:
895 // 0 - Full RFC 2231 compatible
896 // 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
897 // 2 - Full 2047 compatible
898 $rcmail_config['mime_param_folding'] = 1;
899
900 // Set true if deleted messages should not be displayed
901 // This will make the application run slower
902 $rcmail_config['skip_deleted'] = false;
903
904 // Set true to Mark deleted messages as read as well as deleted
905 // False means that a message's read status is not affected by marking it as deleted
906 $rcmail_config['read_when_deleted'] = true;
907
908 // Set to true to never delete messages immediately
909 // Use 'Purge' to remove messages marked as deleted
910 $rcmail_config['flag_for_deletion'] = false;
911
912 // Default interval for keep-alive/check-recent requests (in seconds)
913 // Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
914 $rcmail_config['keep_alive'] = 60;
915
916 // If true all folders will be checked for recent messages
917 $rcmail_config['check_all_folders'] = true;
918
919 // If true, after message delete/move, the next message will be displayed
920 $rcmail_config['display_next'] = false;
921
922 // 0 - Do not expand threads
923 // 1 - Expand all threads automatically
924 // 2 - Expand only threads with unread messages
925 $rcmail_config['autoexpand_threads'] = 2;
926
927 // When replying place cursor above original message (top posting)
928 $rcmail_config['top_posting'] = false;
929
930 // When replying strip original signature from message
931 $rcmail_config['strip_existing_sig'] = true;
932
933 // Show signature:
934 // 0 - Never
935 // 1 - Always
936 // 2 - New messages only
937 // 3 - Forwards and Replies only
938 $rcmail_config['show_sig'] = 1;
939
940 // When replying or forwarding place sender's signature above existing message
941 $rcmail_config['sig_above'] = false;
942
943 // Use MIME encoding (quoted-printable) for 8bit characters in message body
944 $rcmail_config['force_7bit'] = false;
945
946 // Defaults of the search field configuration.
947 // The array can contain a per-folder list of header fields which should be considered when searching
948 // The entry with key '*' stands for all folders which do not have a specific list set.
949 // Please note that folder names should to be in sync with $rcmail_config['default_imap_folders']
950 $rcmail_config['search_mods'] = null; // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
951
952 // Defaults of the addressbook search field configuration.
953 $rcmail_config['addressbook_search_mods'] = null; // Example: array('name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1);
954
955 // 'Delete always'
956 // This setting reflects if mail should be always deleted
957 // when moving to Trash fails. This is necessary in some setups
958 // when user is over quota and Trash is included in the quota.
959 $rcmail_config['delete_always'] = true;
960
961 // Behavior if a received message requests a message delivery notification (read receipt)
962 // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
963 // 3 = send automatically if sender is in addressbook, otherwise ask the user
964 // 4 = send automatically if sender is in addressbook, otherwise ignore
965 $rcmail_config['mdn_requests'] = 0;
966
967 // Return receipt checkbox default state
968 $rcmail_config['mdn_default'] = 0;
969
970 // Delivery Status Notification checkbox default state
971 $rcmail_config['dsn_default'] = 0;
972
973 // Place replies in the folder of the message being replied to
974 $rcmail_config['reply_same_folder'] = true;
975
976 // Sets default mode of Forward feature to "forward as attachment"
977 $rcmail_config['forward_attachment'] = false;
978
979 // Defines address book (internal index) to which new contacts will be added
980 // By default it is the first writeable addressbook.
981 // Note: Use '0' for built-in address book.
982 $rcmail_config['default_addressbook'] = null;
983
984 // Enables spell checking before sending a message.
985 $rcmail_config['spellcheck_before_send'] = false;
986
987 // Skip alternative email addresses in autocompletion (show one address per contact)
988 $rcmail_config['autocomplete_single'] = false;
989
990 // end of config file