· 7 years ago · Oct 01, 2018, 12:12 PM
1<?php
2
3/*
4 +-----------------------------------------------------------------------+
5 | Main configuration file with default settings |
6 | |
7 | This file is part of the Roundcube Webmail client |
8 | Copyright (C) 2005-2013, The Roundcube Dev Team |
9 | |
10 | Licensed under the GNU General Public License version 3 or |
11 | any later version with exceptions for skins & plugins. |
12 | See the README file for a full license statement. |
13 +-----------------------------------------------------------------------+
14*/
15
16$config = array();
17
18// ----------------------------------
19// SQL DATABASE
20// ----------------------------------
21
22// Database connection string (DSN) for read+write operations
23// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
24// Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv
25// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
26// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
27$config['db_dsnw'] = 'mysql://roundcube:@localhost/roundcubemail';
28
29// Database DSN for read-only operations (if empty write database will be used)
30// useful for database replication
31$config['db_dsnr'] = '';
32
33// Disable the use of already established dsnw connections for subsequent reads
34$config['db_dsnw_noread'] = false;
35
36// use persistent db-connections
37// beware this will not "always" work as expected
38// see: http://www.php.net/manual/en/features.persistent-connections.php
39$config['db_persistent'] = false;
40
41// you can define specific table (and sequence) names prefix
42$config['db_prefix'] = '';
43
44// Mapping of table names and connections to use for ALL operations.
45// This can be used in a setup with replicated databases and a DB master
46// where read/write access to cache tables should not go to master.
47$config['db_table_dsn'] = array(
48// 'cache' => 'r',
49// 'cache_index' => 'r',
50// 'cache_thread' => 'r',
51// 'cache_messages' => 'r',
52);
53
54// It is possible to specify database variable values e.g. some limits here.
55// Use them if your server is not MySQL or for better performance.
56// For example Roundcube uses max_allowed_packet value (in bytes)
57// which limits query size for database cache operations.
58$config['db_max_allowed_packet'] = null;
59
60
61// ----------------------------------
62// LOGGING/DEBUGGING
63// ----------------------------------
64
65// system error reporting, sum of: 1 = log; 4 = show
66$config['debug_level'] = 1;
67
68// log driver: 'syslog' or 'file'.
69$config['log_driver'] = 'file';
70
71// date format for log entries
72// (read http://php.net/manual/en/function.date.php for all format characters)
73$config['log_date_format'] = 'd-M-Y H:i:s O';
74
75// length of the session ID to prepend each log line with
76// set to 0 to avoid session IDs being logged.
77$config['log_session_id'] = 8;
78
79// Syslog ident string to use, if using the 'syslog' log driver.
80$config['syslog_id'] = 'roundcube';
81
82// Syslog facility to use, if using the 'syslog' log driver.
83// For possible values see installer or http://php.net/manual/en/function.openlog.php
84$config['syslog_facility'] = LOG_USER;
85
86// Activate this option if logs should be written to per-user directories.
87// Data will only be logged if a directry <log_dir>/<username>/ exists and is writable.
88$config['per_user_logging'] = false;
89
90// Log sent messages to <log_dir>/sendmail or to syslog
91$config['smtp_log'] = true;
92
93// Log successful/failed logins to <log_dir>/userlogins or to syslog
94$config['log_logins'] = false;
95
96// Log session authentication errors to <log_dir>/session or to syslog
97$config['log_session'] = false;
98
99// Log SQL queries to <log_dir>/sql or to syslog
100$config['sql_debug'] = false;
101
102// Log IMAP conversation to <log_dir>/imap or to syslog
103$config['imap_debug'] = false;
104
105// Log LDAP conversation to <log_dir>/ldap or to syslog
106$config['ldap_debug'] = false;
107
108// Log SMTP conversation to <log_dir>/smtp or to syslog
109$config['smtp_debug'] = false;
110
111// ----------------------------------
112// IMAP
113// ----------------------------------
114
115// The mail host chosen to perform the log-in.
116// Leave blank to show a textbox at login, give a list of hosts
117// to display a pulldown menu or set one host as string.
118// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
119// Supported replacement variables:
120// %n - hostname ($_SERVER['SERVER_NAME'])
121// %t - hostname without the first part
122// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
123// %s - domain name after the '@' from e-mail address provided at login screen
124// For example %n = mail.domain.tld, %t = domain.tld
125// WARNING: After hostname change update of mail_host column in users table is
126// required to match old user data records with the new host.
127$config['default_host'] = 'localhost';
128
129// TCP port used for IMAP connections
130$config['default_port'] = 143;
131
132// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null to use
133// best server supported one)
134$config['imap_auth_type'] = null;
135
136// IMAP socket context options
137// See http://php.net/manual/en/context.ssl.php
138// The example below enables server certificate validation
139//$config['imap_conn_options'] = array(
140// 'ssl' => array(
141// 'verify_peer' => true,
142// 'verify_depth' => 3,
143// 'cafile' => '/etc/openssl/certs/ca.crt',
144// ),
145// );
146$config['imap_conn_options'] = null;
147
148// IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
149$config['imap_timeout'] = 0;
150
151// Optional IMAP authentication identifier to be used as authorization proxy
152$config['imap_auth_cid'] = null;
153
154// Optional IMAP authentication password to be used for imap_auth_cid
155$config['imap_auth_pw'] = null;
156
157// If you know your imap's folder delimiter, you can specify it here.
158// Otherwise it will be determined automatically
159$config['imap_delimiter'] = null;
160
161// If IMAP server doesn't support NAMESPACE extension, but you're
162// using shared folders or personal root folder is non-empty, you'll need to
163// set these options. All can be strings or arrays of strings.
164// Folders need to be ended with directory separator, e.g. "INBOX."
165// (special directory "~" is an exception to this rule)
166// These can be used also to overwrite server's namespaces
167$config['imap_ns_personal'] = null;
168$config['imap_ns_other'] = null;
169$config['imap_ns_shared'] = null;
170
171// By default IMAP capabilities are readed after connection to IMAP server
172// In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
173// after login. Set to True if you've got this case.
174$config['imap_force_caps'] = false;
175
176// By default list of subscribed folders is determined using LIST-EXTENDED
177// extension if available. Some servers (dovecot 1.x) returns wrong results
178// for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
179// Enable this option to force LSUB command usage instead.
180// Deprecated: Use imap_disabled_caps = array('LIST-EXTENDED')
181$config['imap_force_lsub'] = false;
182
183// Some server configurations (e.g. Courier) doesn't list folders in all namespaces
184// Enable this option to force listing of folders in all namespaces
185$config['imap_force_ns'] = false;
186
187// List of disabled imap extensions.
188// Use if your IMAP server has broken implementation of some feature
189// and you can't remove it from CAPABILITY string on server-side.
190// For example UW-IMAP server has broken ESEARCH.
191// Note: Because the list is cached, re-login is required after change.
192$config['imap_disabled_caps'] = array();
193
194// Log IMAP session identifers after each IMAP login.
195// This is used to relate IMAP session with Roundcube user sessions
196$config['imap_log_session'] = false;
197
198// Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
199$config['imap_cache'] = null;
200
201// Enables messages cache. Only 'db' cache is supported.
202// This requires an IMAP server that supports QRESYNC and CONDSTORE
203// extensions (RFC7162). See synchronize() in program/lib/Roundcube/rcube_imap_cache.php
204// for further info, or if you experience syncing problems.
205$config['messages_cache'] = false;
206
207// Lifetime of IMAP indexes cache. Possible units: s, m, h, d, w
208$config['imap_cache_ttl'] = '10d';
209
210// Lifetime of messages cache. Possible units: s, m, h, d, w
211$config['messages_cache_ttl'] = '10d';
212
213// Maximum cached message size in kilobytes.
214// Note: On MySQL this should be less than (max_allowed_packet - 30%)
215$config['messages_cache_threshold'] = 50;
216
217
218// ----------------------------------
219// SMTP
220// ----------------------------------
221
222// SMTP server host (for sending mails).
223// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
224// If left blank, the PHP mail() function is used
225// Supported replacement variables:
226// %h - user's IMAP hostname
227// %n - hostname ($_SERVER['SERVER_NAME'])
228// %t - hostname without the first part
229// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
230// %z - IMAP domain (IMAP hostname without the first part)
231// For example %n = mail.domain.tld, %t = domain.tld
232$config['smtp_server'] = '';
233
234// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
235// deprecated SSL over SMTP (aka SMTPS))
236$config['smtp_port'] = 25;
237
238// SMTP username (if required) if you use %u as the username Roundcube
239// will use the current username for login
240$config['smtp_user'] = '';
241
242// SMTP password (if required) if you use %p as the password Roundcube
243// will use the current user's password for login
244$config['smtp_pass'] = '';
245
246// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
247// best server supported one)
248$config['smtp_auth_type'] = '';
249
250// Optional SMTP authentication identifier to be used as authorization proxy
251$config['smtp_auth_cid'] = null;
252
253// Optional SMTP authentication password to be used for smtp_auth_cid
254$config['smtp_auth_pw'] = null;
255
256// SMTP HELO host
257// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
258// Leave this blank and you will get the server variable 'server_name' or
259// localhost if that isn't defined.
260$config['smtp_helo_host'] = '';
261
262// SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
263// Note: There's a known issue where using ssl connection with
264// timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
265$config['smtp_timeout'] = 0;
266
267// SMTP socket context options
268// See http://php.net/manual/en/context.ssl.php
269// The example below enables server certificate validation, and
270// requires 'smtp_timeout' to be non zero.
271// $config['smtp_conn_options'] = array(
272// 'ssl' => array(
273// 'verify_peer' => true,
274// 'verify_depth' => 3,
275// 'cafile' => '/etc/openssl/certs/ca.crt',
276// ),
277// );
278$config['smtp_conn_options'] = null;
279
280
281// ----------------------------------
282// LDAP
283// ----------------------------------
284
285// Type of LDAP cache. Supported values: 'db', 'apc' and 'memcache'.
286$config['ldap_cache'] = 'db';
287
288// Lifetime of LDAP cache. Possible units: s, m, h, d, w
289$config['ldap_cache_ttl'] = '10m';
290
291// ----------------------------------
292// SYSTEM
293// ----------------------------------
294
295// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
296// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
297$config['enable_installer'] = false;
298
299// don't allow these settings to be overriden by the user
300$config['dont_override'] = array();
301
302// List of disabled UI elements/actions
303$config['disabled_actions'] = array();
304
305// define which settings should be listed under the 'advanced' block
306// which is hidden by default
307$config['advanced_prefs'] = array();
308
309// provide an URL where a user can get support for this Roundcube installation
310// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
311$config['support_url'] = '';
312
313// replace Roundcube logo with this image
314// specify an URL relative to the document root of this Roundcube installation
315// an array can be used to specify different logos for specific template files, '*' for default logo
316// for example array("*" => "/images/roundcube_logo.png", "messageprint" => "/images/roundcube_logo_print.png")
317$config['skin_logo'] = null;
318
319// automatically create a new Roundcube user when log-in the first time.
320// a new user will be created once the IMAP login succeeds.
321// set to false if only registered users can use this service
322$config['auto_create_user'] = true;
323
324// Enables possibility to log in using email address from user identities
325$config['user_aliases'] = false;
326
327// use this folder to store log files
328// must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
329// This is used by the 'file' log driver.
330$config['log_dir'] = '/var/log/roundcubemail/';
331
332// use this folder to store temp files
333// must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
334$config['temp_dir'] = '/var/lib/roundcubemail/';
335
336// expire files in temp_dir after 48 hours
337// possible units: s, m, h, d, w
338$config['temp_dir_ttl'] = '48h';
339
340// enforce connections over https
341// with this option enabled, all non-secure connections will be redirected.
342// set the port for the ssl connection as value of this option if it differs from the default 443
343$config['force_https'] = false;
344
345// tell PHP that it should work as under secure connection
346// even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
347// e.g. when you're running Roundcube behind a https proxy
348// this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
349$config['use_https'] = false;
350
351// Allow browser-autocompletion on login form.
352// 0 - disabled, 1 - username and host only, 2 - username, host, password
353$config['login_autocomplete'] = 0;
354
355// Forces conversion of logins to lower case.
356// 0 - disabled, 1 - only domain part, 2 - domain and local part.
357// If users authentication is case-insensitive this must be enabled.
358// Note: After enabling it all user records need to be updated, e.g. with query:
359// UPDATE users SET username = LOWER(username);
360$config['login_lc'] = 2;
361
362// Includes should be interpreted as PHP files
363$config['skin_include_php'] = false;
364
365// display software version on login screen
366$config['display_version'] = false;
367
368// Session lifetime in minutes
369$config['session_lifetime'] = 10;
370
371// Session domain: .example.org
372$config['session_domain'] = '';
373
374// Session name. Default: 'roundcube_sessid'
375$config['session_name'] = null;
376
377// Session authentication cookie name. Default: 'roundcube_sessauth'
378$config['session_auth_name'] = null;
379
380// Session path. Defaults to PHP session.cookie_path setting.
381$config['session_path'] = null;
382
383// Backend to use for session storage. Can either be 'db' (default), 'memcache' or 'php'
384// If set to 'memcache', a list of servers need to be specified in 'memcache_hosts'
385// Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
386// Setting this value to 'php' will use the default session save handler configured in PHP
387$config['session_storage'] = 'db';
388
389// Use these hosts for accessing memcached
390// Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
391$config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
392
393// Controls the use of a persistent connections to memcache servers
394// See http://php.net/manual/en/memcache.addserver.php
395$config['memcache_pconnect'] = true;
396
397// Value in seconds which will be used for connecting to the daemon
398// See http://php.net/manual/en/memcache.addserver.php
399$config['memcache_timeout'] = 1;
400
401// Controls how often a failed server will be retried (value in seconds).
402// Setting this parameter to -1 disables automatic retry.
403// See http://php.net/manual/en/memcache.addserver.php
404$config['memcache_retry_interval'] = 15;
405
406// check client IP in session authorization
407$config['ip_check'] = false;
408
409// List of trusted proxies
410// X_FORWARDED_* and X_REAL_IP headers are only accepted from these IPs
411$config['proxy_whitelist'] = array();
412
413// check referer of incoming requests
414$config['referer_check'] = false;
415
416// X-Frame-Options HTTP header value sent to prevent from Clickjacking.
417// Possible values: sameorigin|deny. Set to false in order to disable sending them
418$config['x_frame_options'] = 'sameorigin';
419
420// this key is used to encrypt the users imap password which is stored
421// in the session record (and the client cookie if remember password is enabled).
422// please provide a string of exactly 24 chars.
423$config['des_key'] = 'rcmail-!24ByteDESkey*Str';
424
425// Automatically add this domain to user names for login
426// Only for IMAP servers that require full e-mail addresses for login
427// Specify an array with 'host' => 'domain' values to support multiple hosts
428// Supported replacement variables:
429// %h - user's IMAP hostname
430// %n - hostname ($_SERVER['SERVER_NAME'])
431// %t - hostname without the first part
432// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
433// %z - IMAP domain (IMAP hostname without the first part)
434// For example %n = mail.domain.tld, %t = domain.tld
435$config['username_domain'] = '';
436
437// Force domain configured in username_domain to be used for login.
438// Any domain in username will be replaced by username_domain.
439$config['username_domain_forced'] = false;
440
441// This domain will be used to form e-mail addresses of new users
442// Specify an array with 'host' => 'domain' values to support multiple hosts
443// Supported replacement variables:
444// %h - user's IMAP hostname
445// %n - http hostname ($_SERVER['SERVER_NAME'])
446// %d - domain (http hostname without the first part)
447// %z - IMAP domain (IMAP hostname without the first part)
448// For example %n = mail.domain.tld, %t = domain.tld
449$config['mail_domain'] = '';
450
451// Password charset.
452// Use it if your authentication backend doesn't support UTF-8.
453// Defaults to ISO-8859-1 for backward compatibility
454$config['password_charset'] = 'ISO-8859-1';
455
456// How many seconds must pass between emails sent by a user
457$config['sendmail_delay'] = 0;
458
459// Maximum number of recipients per message. Default: 0 (no limit)
460$config['max_recipients'] = 0;
461
462// Maximum allowednumber of members of an address group. Default: 0 (no limit)
463// If 'max_recipients' is set this value should be less or equal
464$config['max_group_members'] = 0;
465
466// Name your service. This is displayed on the login screen and in the window title
467$config['product_name'] = 'Roundcube Webmail';
468
469// Add this user-agent to message headers when sending
470$config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
471
472// try to load host-specific configuration
473// see http://trac.roundcube.net/wiki/Howto_Config for more details
474$config['include_host_config'] = false;
475
476// path to a text file which will be added to each sent message
477// paths are relative to the Roundcube root folder
478$config['generic_message_footer'] = '';
479
480// path to a text file which will be added to each sent HTML message
481// paths are relative to the Roundcube root folder
482$config['generic_message_footer_html'] = '';
483
484// add a received header to outgoing mails containing the creators IP and hostname
485$config['http_received_header'] = false;
486
487// Whether or not to encrypt the IP address and the host name
488// these could, in some circles, be considered as sensitive information;
489// however, for the administrator, these could be invaluable help
490// when tracking down issues.
491$config['http_received_header_encrypt'] = false;
492
493// This string is used as a delimiter for message headers when sending
494// a message via mail() function. Leave empty for auto-detection
495$config['mail_header_delimiter'] = NULL;
496
497// number of chars allowed for line when wrapping text.
498// text wrapping is done when composing/sending messages
499$config['line_length'] = 72;
500
501// send plaintext messages as format=flowed
502$config['send_format_flowed'] = true;
503
504// According to RFC2298, return receipt envelope sender address must be empty.
505// If this option is true, Roundcube will use user's identity as envelope sender for MDN responses.
506$config['mdn_use_from'] = false;
507
508// Set identities access level:
509// 0 - many identities with possibility to edit all params
510// 1 - many identities with possibility to edit all params but not email address
511// 2 - one identity with possibility to edit all params
512// 3 - one identity with possibility to edit all params but not email address
513// 4 - one identity with possibility to edit only signature
514$config['identities_level'] = 0;
515
516// Maximum size of uploaded image in kilobytes
517// Images (in html signatures) are stored in database as data URIs
518$config['identity_image_size'] = 64;
519
520// Mimetypes supported by the browser.
521// attachments of these types will open in a preview window
522// either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
523$config['client_mimetypes'] = null; # null == default
524
525// Path to a local mime magic database file for PHPs finfo extension.
526// Set to null if the default path should be used.
527$config['mime_magic'] = null;
528
529// Absolute path to a local mime.types mapping table file.
530// This is used to derive mime-types from the filename extension or vice versa.
531// Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
532// download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
533$config['mime_types'] = '/etc/mime.types';
534
535// path to imagemagick identify binary (if not set we'll use Imagick or GD extensions)
536$config['im_identify_path'] = null;
537
538// path to imagemagick convert binary (if not set we'll use Imagick or GD extensions)
539$config['im_convert_path'] = null;
540
541// Size of thumbnails from image attachments displayed below the message content.
542// Note: whether images are displayed at all depends on the 'inline_images' option.
543// Set to 0 to display images in full size.
544$config['image_thumbnail_size'] = 240;
545
546// maximum size of uploaded contact photos in pixel
547$config['contact_photo_size'] = 160;
548
549// Enable DNS checking for e-mail address validation
550$config['email_dns_check'] = false;
551
552// Disables saving sent messages in Sent folder (like gmail) (Default: false)
553// Note: useful when SMTP server stores sent mail in user mailbox
554$config['no_save_sent_messages'] = false;
555
556// Improve system security by using special URL with security token.
557// This can be set to a number defining token length. Default: 16.
558// Warning: This requires http server configuration. Sample:
559// RewriteRule ^/roundcubemail/[a-f0-9]{16}/(.*) /roundcubemail/$1 [PT]
560// Alias /roundcubemail /var/www/roundcubemail/
561// Note: Use assets_path to not prevent the browser from caching assets
562$config['use_secure_urls'] = false;
563
564// Allows to define separate server/path for image/js/css files
565// Warning: If the domain is different cross-domain access to some
566// resources need to be allowed
567// Sample:
568// <FilesMatch ".(eot|ttf|woff)">
569// Header set Access-Control-Allow-Origin "*"
570// </FilesMatch>
571$config['assets_path'] = '';
572
573// While assets_path is for the browser, assets_dir informs
574// PHP code about the location of asset files in filesystem
575$config['assets_dir'] = '';
576
577
578// ----------------------------------
579// PLUGINS
580// ----------------------------------
581
582// List of active plugins (in plugins/ directory)
583$config['plugins'] = array();
584
585// ----------------------------------
586// USER INTERFACE
587// ----------------------------------
588
589// default messages sort column. Use empty value for default server's sorting,
590// or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc'
591$config['message_sort_col'] = '';
592
593// default messages sort order
594$config['message_sort_order'] = 'DESC';
595
596// These cols are shown in the message list. Available cols are:
597// subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority'
598$config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment');
599
600// the default locale setting (leave empty for auto-detection)
601// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
602$config['language'] = null;
603
604// use this format for date display (date or strftime format)
605$config['date_format'] = 'Y-m-d';
606
607// give this choice of date formats to the user to select from
608// Note: do not use ambiguous formats like m/d/Y
609$config['date_formats'] = array('Y-m-d', 'Y/m/d', 'Y.m.d', 'd-m-Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
610
611// use this format for time display (date or strftime format)
612$config['time_format'] = 'H:i';
613
614// give this choice of time formats to the user to select from
615$config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A');
616
617// use this format for short date display (derived from date_format and time_format)
618$config['date_short'] = 'D H:i';
619
620// use this format for detailed date/time formatting (derived from date_format and time_format)
621$config['date_long'] = 'Y-m-d H:i';
622
623// store draft message is this mailbox
624// leave blank if draft messages should not be stored
625// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
626$config['drafts_mbox'] = 'Drafts';
627
628// store spam messages in this mailbox
629// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
630$config['junk_mbox'] = 'Junk';
631
632// store sent message is this mailbox
633// leave blank if sent messages should not be stored
634// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
635$config['sent_mbox'] = 'Sent';
636
637// move messages to this folder when deleting them
638// leave blank if they should be deleted directly
639// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
640$config['trash_mbox'] = 'Trash';
641
642// automatically create the above listed default folders on first login
643$config['create_default_folders'] = false;
644
645// protect the default folders from renames, deletes, and subscription changes
646$config['protect_default_folders'] = true;
647
648// Disable localization of the default folder names listed above
649$config['show_real_foldernames'] = false;
650
651// if in your system 0 quota means no limit set this option to true
652$config['quota_zero_as_unlimited'] = false;
653
654// Make use of the built-in spell checker. It is based on GoogieSpell.
655// Since Google only accepts connections over https your PHP installatation
656// requires to be compiled with Open SSL support
657$config['enable_spellcheck'] = true;
658
659// Enables spellchecker exceptions dictionary.
660// Setting it to 'shared' will make the dictionary shared by all users.
661$config['spellcheck_dictionary'] = false;
662
663// Set the spell checking engine. Possible values:
664// - 'googie' - the default (also used for connecting to Nox Spell Server, see 'spellcheck_uri' setting)
665// - 'pspell' - requires the PHP Pspell module and aspell installed
666// - 'enchant' - requires the PHP Enchant module
667// - 'atd' - install your own After the Deadline server or check with the people at http://www.afterthedeadline.com before using their API
668// Since Google shut down their public spell checking service, the default settings
669// connect to http://spell.roundcube.net which is a hosted service provided by Roundcube.
670// You can connect to any other googie-compliant service by setting 'spellcheck_uri' accordingly.
671$config['spellcheck_engine'] = 'googie';
672
673// For locally installed Nox Spell Server or After the Deadline services,
674// please specify the URI to call it.
675// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 or
676// the After the Deadline package from http://www.afterthedeadline.com.
677// Leave empty to use the public API of service.afterthedeadline.com
678$config['spellcheck_uri'] = '';
679
680// These languages can be selected for spell checking.
681// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
682// Leave empty for default set of available language.
683$config['spellcheck_languages'] = NULL;
684
685// Makes that words with all letters capitalized will be ignored (e.g. GOOGLE)
686$config['spellcheck_ignore_caps'] = false;
687
688// Makes that words with numbers will be ignored (e.g. g00gle)
689$config['spellcheck_ignore_nums'] = false;
690
691// Makes that words with symbols will be ignored (e.g. g@@gle)
692$config['spellcheck_ignore_syms'] = false;
693
694// Use this char/string to separate recipients when composing a new message
695$config['recipients_separator'] = ',';
696
697// Number of lines at the end of a message considered to contain the signature.
698// Increase this value if signatures are not properly detected and colored
699$config['sig_max_lines'] = 15;
700
701// don't let users set pagesize to more than this value if set
702$config['max_pagesize'] = 200;
703
704// Minimal value of user's 'refresh_interval' setting (in seconds)
705$config['min_refresh_interval'] = 60;
706
707// Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
708// By default refresh time is set to 1 second. You can set this value to true
709// or any integer value indicating number of seconds.
710$config['upload_progress'] = false;
711
712// Specifies for how many seconds the Undo button will be available
713// after object delete action. Currently used with supporting address book sources.
714// Setting it to 0, disables the feature.
715$config['undo_timeout'] = 0;
716
717// A static list of canned responses which are immutable for the user
718$config['compose_responses_static'] = array(
719// array('name' => 'Canned Response 1', 'text' => 'Static Response One'),
720// array('name' => 'Canned Response 2', 'text' => 'Static Response Two'),
721);
722
723// ----------------------------------
724// ADDRESSBOOK SETTINGS
725// ----------------------------------
726
727// This indicates which type of address book to use. Possible choises:
728// 'sql' (default), 'ldap' and ''.
729// If set to 'ldap' then it will look at using the first writable LDAP
730// address book as the primary address book and it will not display the
731// SQL address book in the 'Address Book' view.
732// If set to '' then no address book will be displayed or only the
733// addressbook which is created by a plugin (like CardDAV).
734$config['address_book_type'] = 'sql';
735
736// In order to enable public ldap search, configure an array like the Verisign
737// example further below. if you would like to test, simply uncomment the example.
738// Array key must contain only safe characters, ie. a-zA-Z0-9_
739$config['ldap_public'] = array();
740
741// If you are going to use LDAP for individual address books, you will need to
742// set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
743//
744// The recommended directory structure for LDAP is to store all the address book entries
745// under the users main entry, e.g.:
746//
747// o=root
748// ou=people
749// uid=user@domain
750// mail=contact@contactdomain
751//
752// So the base_dn would be uid=%fu,ou=people,o=root
753// The bind_dn would be the same as based_dn or some super user login.
754/*
755 * example config for Verisign directory
756 *
757$config['ldap_public']['Verisign'] = array(
758 'name' => 'Verisign.com',
759 // Replacement variables supported in host names:
760 // %h - user's IMAP hostname
761 // %n - hostname ($_SERVER['SERVER_NAME'])
762 // %t - hostname without the first part
763 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
764 // %z - IMAP domain (IMAP hostname without the first part)
765 // For example %n = mail.domain.tld, %t = domain.tld
766 'hosts' => array('directory.verisign.com'),
767 'port' => 389,
768 'use_tls' => false,
769 'ldap_version' => 3, // using LDAPv3
770 'network_timeout' => 10, // The timeout (in seconds) for connect + bind arrempts. This is only supported in PHP >= 5.3.0 with OpenLDAP 2.x
771 'user_specific' => false, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
772 // When 'user_specific' is enabled following variables can be used in base_dn/bind_dn config:
773 // %fu - The full username provided, assumes the username is an email
774 // address, uses the username_domain value if not an email address.
775 // %u - The username prior to the '@'.
776 // %d - The domain name after the '@'.
777 // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
778 // %dn - DN found by ldap search when search_filter/search_base_dn are used
779 'base_dn' => '',
780 'bind_dn' => '',
781 'bind_pass' => '',
782 // It's possible to bind for an individual address book
783 // The login name is used to search for the DN to bind with
784 'search_base_dn' => '',
785 'search_filter' => '', // e.g. '(&(objectClass=posixAccount)(uid=%u))'
786 // DN and password to bind as before searching for bind DN, if anonymous search is not allowed
787 'search_bind_dn' => '',
788 'search_bind_pw' => '',
789 // Optional map of replacement strings => attributes used when binding for an individual address book
790 'search_bind_attrib' => array(), // e.g. array('%udc' => 'ou')
791 // Default for %dn variable if search doesn't return DN value
792 'search_dn_default' => '',
793 // Optional authentication identifier to be used as SASL authorization proxy
794 // bind_dn need to be empty
795 'auth_cid' => '',
796 // SASL authentication method (for proxy auth), e.g. DIGEST-MD5
797 'auth_method' => '',
798 // Indicates if the addressbook shall be hidden from the list.
799 // With this option enabled you can still search/view contacts.
800 'hidden' => false,
801 // Indicates if the addressbook shall not list contacts but only allows searching.
802 'searchonly' => false,
803 // Indicates if we can write to the LDAP directory or not.
804 // If writable is true then these fields need to be populated:
805 // LDAP_Object_Classes, required_fields, LDAP_rdn
806 'writable' => false,
807 // To create a new contact these are the object classes to specify
808 // (or any other classes you wish to use).
809 'LDAP_Object_Classes' => array('top', 'inetOrgPerson'),
810 // The RDN field that is used for new entries, this field needs
811 // to be one of the search_fields, the base of base_dn is appended
812 // to the RDN to insert into the LDAP directory.
813 'LDAP_rdn' => 'cn',
814 // The required fields needed to build a new contact as required by
815 // the object classes (can include additional fields not required by the object classes).
816 'required_fields' => array('cn', 'sn', 'mail'),
817 'search_fields' => array('mail', 'cn'), // fields to search in
818 // mapping of contact fields to directory attributes
819 // for every attribute one can specify the number of values (limit) allowed.
820 // default is 1, a wildcard * means unlimited
821 'fieldmap' => array(
822 // Roundcube => LDAP:limit
823 'name' => 'cn',
824 'surname' => 'sn',
825 'firstname' => 'givenName',
826 'jobtitle' => 'title',
827 'email' => 'mail:*',
828 'phone:home' => 'homePhone',
829 'phone:work' => 'telephoneNumber',
830 'phone:mobile' => 'mobile',
831 'phone:pager' => 'pager',
832 'phone:workfax' => 'facsimileTelephoneNumber',
833 'street' => 'street',
834 'zipcode' => 'postalCode',
835 'region' => 'st',
836 'locality' => 'l',
837 // if you country is a complex object, you need to configure 'sub_fields' below
838 'country' => 'c',
839 'organization' => 'o',
840 'department' => 'ou',
841 'jobtitle' => 'title',
842 'notes' => 'description',
843 'photo' => 'jpegPhoto',
844 // these currently don't work:
845 // 'manager' => 'manager',
846 // 'assistant' => 'secretary',
847 ),
848 // Map of contact sub-objects (attribute name => objectClass(es)), e.g. 'c' => 'country'
849 'sub_fields' => array(),
850 // Generate values for the following LDAP attributes automatically when creating a new record
851 'autovalues' => array(
852 // 'uid' => 'md5(microtime())', // You may specify PHP code snippets which are then eval'ed
853 // 'mail' => '{givenname}.{sn}@mydomain.com', // or composite strings with placeholders for existing attributes
854 ),
855 'sort' => 'cn', // The field to sort the listing by.
856 'scope' => 'sub', // search mode: sub|base|list
857 'filter' => '(objectClass=inetOrgPerson)', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
858 'fuzzy_search' => true, // server allows wildcard search
859 'vlv' => false, // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
860 'vlv_search' => false, // Use Virtual List View functions for autocompletion searches (if server supports it)
861 '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
862 'config_root_dn' => 'cn=config', // Root DN to search config entries (e.g. vlv indexes)
863 'sizelimit' => '0', // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
864 'timelimit' => '0', // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
865 'referrals' => false, // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
866 'dereference' => 0, // Sets the LDAP_OPT_DEREF option. One of: LDAP_DEREF_NEVER, LDAP_DEREF_SEARCHING, LDAP_DEREF_FINDING, LDAP_DEREF_ALWAYS
867 // Used where addressbook contains aliases to objects elsewhere in the LDAP tree.
868
869 // definition for contact groups (uncomment if no groups are supported)
870 // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
871 // if the groups base_dn is empty, the contact base_dn is used for the groups as well
872 // -> in this case, assure that groups and contacts are separated due to the concernig filters!
873 'groups' => array(
874 'base_dn' => '',
875 'scope' => 'sub', // Search mode: sub|base|list
876 'filter' => '(objectClass=groupOfNames)',
877 'object_classes' => array('top', 'groupOfNames'), // Object classes to be assigned to new groups
878 'member_attr' => 'member', // Name of the default member attribute, e.g. uniqueMember
879 'name_attr' => 'cn', // Attribute to be used as group name
880 'email_attr' => 'mail', // Group email address attribute (e.g. for mailing lists)
881 'member_filter' => '(objectclass=*)', // Optional filter to use when querying for group members
882 'vlv' => false, // Use VLV controls to list groups
883 'class_member_attr' => array( // Mapping of group object class to member attribute used in these objects
884 'groupofnames' => 'member',
885 'groupofuniquenames' => 'uniquemember'
886 ),
887 ),
888 // this configuration replaces the regular groups listing in the directory tree with
889 // a hard-coded list of groups, each listing entries with the configured base DN and filter.
890 // if the 'groups' option from above is set, it'll be shown as the first entry with the name 'Groups'
891 'group_filters' => array(
892 'departments' => array(
893 'name' => 'Company Departments',
894 'scope' => 'list',
895 'base_dn' => 'ou=Groups,dc=mydomain,dc=com',
896 'filter' => '(|(objectclass=groupofuniquenames)(objectclass=groupofurls))',
897 'name_attr' => 'cn',
898 ),
899 'customers' => array(
900 'name' => 'Customers',
901 'scope' => 'sub',
902 'base_dn' => 'ou=Customers,dc=mydomain,dc=com',
903 'filter' => '(objectClass=inetOrgPerson)',
904 'name_attr' => 'sn',
905 ),
906 ),
907);
908*/
909
910// An ordered array of the ids of the addressbooks that should be searched
911// when populating address autocomplete fields server-side. ex: array('sql','Verisign');
912$config['autocomplete_addressbooks'] = array('sql');
913
914// The minimum number of characters required to be typed in an autocomplete field
915// before address books will be searched. Most useful for LDAP directories that
916// may need to do lengthy results building given overly-broad searches
917$config['autocomplete_min_length'] = 1;
918
919// Number of parallel autocomplete requests.
920// If there's more than one address book, n parallel (async) requests will be created,
921// where each request will search in one address book. By default (0), all address
922// books are searched in one request.
923$config['autocomplete_threads'] = 0;
924
925// Max. numer of entries in autocomplete popup. Default: 15.
926$config['autocomplete_max'] = 15;
927
928// show address fields in this order
929// available placeholders: {street}, {locality}, {zipcode}, {country}, {region}
930$config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
931
932// Matching mode for addressbook search (including autocompletion)
933// 0 - partial (*abc*), default
934// 1 - strict (abc)
935// 2 - prefix (abc*)
936// Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode
937$config['addressbook_search_mode'] = 0;
938
939// List of fields used on contacts list and for autocompletion searches
940// Warning: These are field names not LDAP attributes (see 'fieldmap' setting)!
941$config['contactlist_fields'] = array('name', 'firstname', 'surname', 'email');
942
943// Template of contact entry on the autocompletion list.
944// You can use contact fields as: name, email, organization, department, etc.
945// See program/steps/addressbook/func.inc for a list
946$config['contact_search_name'] = '{name} <{email}>';
947
948// ----------------------------------
949// USER PREFERENCES
950// ----------------------------------
951
952// Use this charset as fallback for message decoding
953$config['default_charset'] = 'ISO-8859-1';
954
955// skin name: folder from skins/
956$config['skin'] = 'larry';
957
958// Enables using standard browser windows (that can be handled as tabs)
959// instead of popup windows
960$config['standard_windows'] = false;
961
962// show up to X items in messages list view
963$config['mail_pagesize'] = 50;
964
965// show up to X items in contacts list view
966$config['addressbook_pagesize'] = 50;
967
968// sort contacts by this col (preferably either one of name, firstname, surname)
969$config['addressbook_sort_col'] = 'surname';
970
971// The way how contact names are displayed in the list.
972// 0: prefix firstname middlename surname suffix (only if display name is not set)
973// 1: firstname middlename surname
974// 2: surname firstname middlename
975// 3: surname, firstname middlename
976$config['addressbook_name_listing'] = 0;
977
978// use this timezone to display date/time
979// valid timezone identifers are listed here: php.net/manual/en/timezones.php
980// 'auto' will use the browser's timezone settings
981$config['timezone'] = 'auto';
982
983// prefer displaying HTML messages
984$config['prefer_html'] = true;
985
986// display remote inline images
987// 0 - Never, always ask
988// 1 - Ask if sender is not in address book
989// 2 - Always show inline images
990$config['show_images'] = 0;
991
992// open messages in new window
993$config['message_extwin'] = false;
994
995// open message compose form in new window
996$config['compose_extwin'] = false;
997
998// compose html formatted messages by default
999// 0 - never, 1 - always, 2 - on reply to HTML message, 3 - on forward or reply to HTML message
1000$config['htmleditor'] = 0;
1001
1002// save copies of compose messages in the browser's local storage
1003// for recovery in case of browser crashes and session timeout.
1004$config['compose_save_localstorage'] = true;
1005
1006// show pretty dates as standard
1007$config['prettydate'] = true;
1008
1009// save compose message every 300 seconds (5min)
1010$config['draft_autosave'] = 300;
1011
1012// default setting if preview pane is enabled
1013$config['preview_pane'] = false;
1014
1015// Mark as read when viewed in preview pane (delay in seconds)
1016// Set to -1 if messages in preview pane should not be marked as read
1017$config['preview_pane_mark_read'] = 0;
1018
1019// Clear Trash on logout
1020$config['logout_purge'] = false;
1021
1022// Compact INBOX on logout
1023$config['logout_expunge'] = false;
1024
1025// Display attached images below the message body
1026$config['inline_images'] = true;
1027
1028// Encoding of long/non-ascii attachment names:
1029// 0 - Full RFC 2231 compatible
1030// 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
1031// 2 - Full 2047 compatible
1032$config['mime_param_folding'] = 1;
1033
1034// Set true if deleted messages should not be displayed
1035// This will make the application run slower
1036$config['skip_deleted'] = false;
1037
1038// Set true to Mark deleted messages as read as well as deleted
1039// False means that a message's read status is not affected by marking it as deleted
1040$config['read_when_deleted'] = true;
1041
1042// Set to true to never delete messages immediately
1043// Use 'Purge' to remove messages marked as deleted
1044$config['flag_for_deletion'] = false;
1045
1046// Default interval for auto-refresh requests (in seconds)
1047// These are requests for system state updates e.g. checking for new messages, etc.
1048// Setting it to 0 disables the feature.
1049$config['refresh_interval'] = 60;
1050
1051// If true all folders will be checked for recent messages
1052$config['check_all_folders'] = false;
1053
1054// If true, after message delete/move, the next message will be displayed
1055$config['display_next'] = true;
1056
1057// Default messages listing mode. One of 'threads' or 'list'.
1058$config['default_list_mode'] = 'list';
1059
1060// 0 - Do not expand threads
1061// 1 - Expand all threads automatically
1062// 2 - Expand only threads with unread messages
1063$config['autoexpand_threads'] = 0;
1064
1065// When replying:
1066// -1 - don't cite the original message
1067// 0 - place cursor below the original message
1068// 1 - place cursor above original message (top posting)
1069$config['reply_mode'] = 0;
1070
1071// When replying strip original signature from message
1072$config['strip_existing_sig'] = true;
1073
1074// Show signature:
1075// 0 - Never
1076// 1 - Always
1077// 2 - New messages only
1078// 3 - Forwards and Replies only
1079$config['show_sig'] = 1;
1080
1081// By default the signature is placed depending on cursor position (reply_mode).
1082// Sometimes it might be convenient to start the reply on top but keep
1083// the signature below the quoted text (sig_below = true).
1084$config['sig_below'] = false;
1085
1086// Use MIME encoding (quoted-printable) for 8bit characters in message body
1087$config['force_7bit'] = false;
1088
1089// Defaults of the search field configuration.
1090// The array can contain a per-folder list of header fields which should be considered when searching
1091// The entry with key '*' stands for all folders which do not have a specific list set.
1092// Please note that folder names should to be in sync with $config['*_mbox'] options
1093$config['search_mods'] = null; // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
1094
1095// Defaults of the addressbook search field configuration.
1096$config['addressbook_search_mods'] = null; // Example: array('name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1);
1097
1098// 'Delete always'
1099// This setting reflects if mail should be always deleted
1100// when moving to Trash fails. This is necessary in some setups
1101// when user is over quota and Trash is included in the quota.
1102$config['delete_always'] = false;
1103
1104// Directly delete messages in Junk instead of moving to Trash
1105$config['delete_junk'] = false;
1106
1107// Behavior if a received message requests a message delivery notification (read receipt)
1108// 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
1109// 3 = send automatically if sender is in addressbook, otherwise ask the user
1110// 4 = send automatically if sender is in addressbook, otherwise ignore
1111$config['mdn_requests'] = 0;
1112
1113// Return receipt checkbox default state
1114$config['mdn_default'] = 0;
1115
1116// Delivery Status Notification checkbox default state
1117// Note: This can be used only if smtp_server is non-empty
1118$config['dsn_default'] = 0;
1119
1120// Place replies in the folder of the message being replied to
1121$config['reply_same_folder'] = false;
1122
1123// Sets default mode of Forward feature to "forward as attachment"
1124$config['forward_attachment'] = false;
1125
1126// Defines address book (internal index) to which new contacts will be added
1127// By default it is the first writeable addressbook.
1128// Note: Use '0' for built-in address book.
1129$config['default_addressbook'] = null;
1130
1131// Enables spell checking before sending a message.
1132$config['spellcheck_before_send'] = false;
1133
1134// Skip alternative email addresses in autocompletion (show one address per contact)
1135$config['autocomplete_single'] = false;
1136
1137// Default font for composed HTML message.
1138// Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New,
1139// Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana
1140$config['default_font'] = 'Verdana';
1141
1142// Default font size for composed HTML message.
1143// Supported sizes: 8pt, 10pt, 12pt, 14pt, 18pt, 24pt, 36pt
1144$config['default_font_size'] = '10pt';
1145
1146// Enables display of email address with name instead of a name (and address in title)
1147$config['message_show_email'] = false;
1148
1149// Default behavior of Reply-All button:
1150// 0 - Reply-All always
1151// 1 - Reply-List if mailing list is detected
1152$config['reply_all_mode'] = 0;