You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

defaults.inc.php 51KB

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