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