PageRenderTime 64ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

/install/ubuntu/roundcube-main.conf

https://github.com/ricardo777/vesta
Config | 847 lines | 669 code | 178 blank | 0 comment | 0 complexity | 45a401760cb637a7b0e01e5d1cc5e70e MD5 | raw file
Possible License(s): GPL-3.0
  1. <?php
  2. /*
  3. +-----------------------------------------------------------------------+
  4. | Main configuration file |
  5. | |
  6. | This file is part of the Roundcube Webmail client |
  7. | Copyright (C) 2005-2011, 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. */
  15. $rcmail_config = array();
  16. // ----------------------------------
  17. // LOGGING/DEBUGGING
  18. // ----------------------------------
  19. // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
  20. $rcmail_config['debug_level'] = 1;
  21. // log driver: 'syslog' or 'file'.
  22. $rcmail_config['log_driver'] = 'file';
  23. // date format for log entries
  24. // (read http://php.net/manual/en/function.date.php for all format characters)
  25. $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
  26. // Syslog ident string to use, if using the 'syslog' log driver.
  27. $rcmail_config['syslog_id'] = 'roundcube';
  28. // Syslog facility to use, if using the 'syslog' log driver.
  29. // For possible values see installer or http://php.net/manual/en/function.openlog.php
  30. $rcmail_config['syslog_facility'] = LOG_USER;
  31. // Log sent messages to <log_dir>/sendmail or to syslog
  32. $rcmail_config['smtp_log'] = true;
  33. // Log successful logins to <log_dir>/userlogins or to syslog
  34. $rcmail_config['log_logins'] = false;
  35. // Log session authentication errors to <log_dir>/session or to syslog
  36. $rcmail_config['log_session'] = false;
  37. // Log SQL queries to <log_dir>/sql or to syslog
  38. $rcmail_config['sql_debug'] = false;
  39. // Log IMAP conversation to <log_dir>/imap or to syslog
  40. $rcmail_config['imap_debug'] = false;
  41. // Log LDAP conversation to <log_dir>/ldap or to syslog
  42. $rcmail_config['ldap_debug'] = false;
  43. // Log SMTP conversation to <log_dir>/smtp or to syslog
  44. $rcmail_config['smtp_debug'] = false;
  45. // ----------------------------------
  46. // IMAP
  47. // ----------------------------------
  48. // the mail host chosen to perform the log-in
  49. // leave blank to show a textbox at login, give a list of hosts
  50. // to display a pulldown menu or set one host as string.
  51. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  52. // Supported replacement variables:
  53. // %n - http hostname ($_SERVER['SERVER_NAME'])
  54. // %d - domain (http hostname without the first part)
  55. // %s - domain name after the '@' from e-mail address provided at login screen
  56. // For example %n = mail.domain.tld, %d = domain.tld
  57. $rcmail_config['default_host'] = 'localhost';
  58. // TCP port used for IMAP connections
  59. $rcmail_config['default_port'] = 143;
  60. // IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
  61. // best server supported one)
  62. $rcmail_config['imap_auth_type'] = null;
  63. // If you know your imap's folder delimiter, you can specify it here.
  64. // Otherwise it will be determined automatically
  65. $rcmail_config['imap_delimiter'] = null;
  66. // If IMAP server doesn't support NAMESPACE extension, but you're
  67. // using shared folders or personal root folder is non-empty, you'll need to
  68. // set these options. All can be strings or arrays of strings.
  69. // Folders need to be ended with directory separator, e.g. "INBOX."
  70. // (special directory "~" is an exception to this rule)
  71. // These can be used also to overwrite server's namespaces
  72. $rcmail_config['imap_ns_personal'] = null;
  73. $rcmail_config['imap_ns_other'] = null;
  74. $rcmail_config['imap_ns_shared'] = null;
  75. // By default IMAP capabilities are readed after connection to IMAP server
  76. // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
  77. // after login. Set to True if you've got this case.
  78. $rcmail_config['imap_force_caps'] = false;
  79. // By default list of subscribed folders is determined using LIST-EXTENDED
  80. // extension if available. Some servers (dovecot 1.x) returns wrong results
  81. // for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
  82. // Enable this option to force LSUB command usage instead.
  83. $rcmail_config['imap_force_lsub'] = false;
  84. // Some server configurations (e.g. Courier) doesn't list folders in all namespaces
  85. // Enable this option to force listing of folders in all namespaces
  86. $rcmail_config['imap_force_ns'] = false;
  87. // IMAP connection timeout, in seconds. Default: 0 (no limit)
  88. $rcmail_config['imap_timeout'] = 0;
  89. // Optional IMAP authentication identifier to be used as authorization proxy
  90. $rcmail_config['imap_auth_cid'] = null;
  91. // Optional IMAP authentication password to be used for imap_auth_cid
  92. $rcmail_config['imap_auth_pw'] = null;
  93. // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
  94. $rcmail_config['imap_cache'] = null;
  95. // Enables messages cache. Only 'db' cache is supported.
  96. $rcmail_config['messages_cache'] = false;
  97. // ----------------------------------
  98. // SMTP
  99. // ----------------------------------
  100. // SMTP server host (for sending mails).
  101. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  102. // If left blank, the PHP mail() function is used
  103. // Supported replacement variables:
  104. // %h - user's IMAP hostname
  105. // %n - http hostname ($_SERVER['SERVER_NAME'])
  106. // %d - domain (http hostname without the first part)
  107. // %z - IMAP domain (IMAP hostname without the first part)
  108. // For example %n = mail.domain.tld, %d = domain.tld
  109. $rcmail_config['smtp_server'] = '';
  110. // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
  111. // deprecated SSL over SMTP (aka SMTPS))
  112. $rcmail_config['smtp_port'] = 25;
  113. // SMTP username (if required) if you use %u as the username Roundcube
  114. // will use the current username for login
  115. $rcmail_config['smtp_user'] = '';
  116. // SMTP password (if required) if you use %p as the password Roundcube
  117. // will use the current user's password for login
  118. $rcmail_config['smtp_pass'] = '';
  119. // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
  120. // best server supported one)
  121. $rcmail_config['smtp_auth_type'] = '';
  122. // Optional SMTP authentication identifier to be used as authorization proxy
  123. $rcmail_config['smtp_auth_cid'] = null;
  124. // Optional SMTP authentication password to be used for smtp_auth_cid
  125. $rcmail_config['smtp_auth_pw'] = null;
  126. // SMTP HELO host
  127. // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
  128. // Leave this blank and you will get the server variable 'server_name' or
  129. // localhost if that isn't defined.
  130. $rcmail_config['smtp_helo_host'] = '';
  131. // SMTP connection timeout, in seconds. Default: 0 (no limit)
  132. $rcmail_config['smtp_timeout'] = 0;
  133. // ----------------------------------
  134. // SYSTEM
  135. // ----------------------------------
  136. // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
  137. // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
  138. $rcmail_config['enable_installer'] = false;
  139. // provide an URL where a user can get support for this Roundcube installation
  140. // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
  141. $rcmail_config['support_url'] = '';
  142. // replace Roundcube logo with this image
  143. // specify an URL relative to the document root of this Roundcube installation
  144. $rcmail_config['skin_logo'] = null;
  145. // automatically create a new Roundcube user when log-in the first time.
  146. // a new user will be created once the IMAP login succeeds.
  147. // set to false if only registered users can use this service
  148. $rcmail_config['auto_create_user'] = true;
  149. // use this folder to store log files (must be writeable for apache user)
  150. // This is used by the 'file' log driver.
  151. $rcmail_config['log_dir'] = '/var/log/roundcubemail/';
  152. // use this folder to store temp files (must be writeable for apache user)
  153. $rcmail_config['temp_dir'] = '/tmp';
  154. // lifetime of message cache
  155. // possible units: s, m, h, d, w
  156. $rcmail_config['message_cache_lifetime'] = '10d';
  157. // enforce connections over https
  158. // with this option enabled, all non-secure connections will be redirected.
  159. // set the port for the ssl connection as value of this option if it differs from the default 443
  160. $rcmail_config['force_https'] = false;
  161. // tell PHP that it should work as under secure connection
  162. // even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
  163. // e.g. when you're running Roundcube behind a https proxy
  164. // this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
  165. $rcmail_config['use_https'] = false;
  166. // Allow browser-autocompletion on login form.
  167. // 0 - disabled, 1 - username and host only, 2 - username, host, password
  168. $rcmail_config['login_autocomplete'] = 0;
  169. // Forces conversion of logins to lower case.
  170. // 0 - disabled, 1 - only domain part, 2 - domain and local part.
  171. // If users authentication is not case-sensitive this must be enabled.
  172. // After enabling it all user records need to be updated, e.g. with query:
  173. // UPDATE users SET username = LOWER(username);
  174. $rcmail_config['login_lc'] = 0;
  175. // Includes should be interpreted as PHP files
  176. $rcmail_config['skin_include_php'] = false;
  177. // display software version on login screen
  178. $rcmail_config['display_version'] = false;
  179. // Session lifetime in minutes
  180. // must be greater than 'keep_alive'/60
  181. $rcmail_config['session_lifetime'] = 10;
  182. // session domain: .example.org
  183. $rcmail_config['session_domain'] = '';
  184. // session name. Default: 'roundcube_sessid'
  185. $rcmail_config['session_name'] = null;
  186. // Backend to use for session storage. Can either be 'db' (default) or 'memcache'
  187. // If set to memcache, a list of servers need to be specified in 'memcache_hosts'
  188. // Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
  189. $rcmail_config['session_storage'] = 'db';
  190. // Use these hosts for accessing memcached
  191. // Define any number of hosts in the form of hostname:port or unix:///path/to/sock.file
  192. $rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
  193. // check client IP in session athorization
  194. $rcmail_config['ip_check'] = false;
  195. // check referer of incoming requests
  196. $rcmail_config['referer_check'] = false;
  197. // X-Frame-Options HTTP header value sent to prevent from Clickjacking.
  198. // Possible values: sameorigin|deny. Set to false in order to disable sending them
  199. $rcmail_config['x_frame_options'] = 'sameorigin';
  200. // this key is used to encrypt the users imap password which is stored
  201. // in the session record (and the client cookie if remember password is enabled).
  202. // please provide a string of exactly 24 chars.
  203. $rcmail_config['des_key'] = 'vtIOjLZo9kffJoqzpSbm5r1r';
  204. // Automatically add this domain to user names for login
  205. // Only for IMAP servers that require full e-mail addresses for login
  206. // Specify an array with 'host' => 'domain' values to support multiple hosts
  207. // Supported replacement variables:
  208. // %h - user's IMAP hostname
  209. // %n - http hostname ($_SERVER['SERVER_NAME'])
  210. // %d - domain (http hostname without the first part)
  211. // %z - IMAP domain (IMAP hostname without the first part)
  212. // For example %n = mail.domain.tld, %d = domain.tld
  213. $rcmail_config['username_domain'] = '';
  214. // This domain will be used to form e-mail addresses of new users
  215. // Specify an array with 'host' => 'domain' values to support multiple hosts
  216. // Supported replacement variables:
  217. // %h - user's IMAP hostname
  218. // %n - http hostname ($_SERVER['SERVER_NAME'])
  219. // %d - domain (http hostname without the first part)
  220. // %z - IMAP domain (IMAP hostname without the first part)
  221. // For example %n = mail.domain.tld, %d = domain.tld
  222. $rcmail_config['mail_domain'] = '';
  223. // Password charset.
  224. // Use it if your authentication backend doesn't support UTF-8.
  225. // Defaults to ISO-8859-1 for backward compatibility
  226. $rcmail_config['password_charset'] = 'ISO-8859-1';
  227. // How many seconds must pass between emails sent by a user
  228. $rcmail_config['sendmail_delay'] = 0;
  229. // Maximum number of recipients per message. Default: 0 (no limit)
  230. $rcmail_config['max_recipients'] = 0;
  231. // Maximum allowednumber of members of an address group. Default: 0 (no limit)
  232. // If 'max_recipients' is set this value should be less or equal
  233. $rcmail_config['max_group_members'] = 0;
  234. // add this user-agent to message headers when sending
  235. $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
  236. // use this name to compose page titles
  237. $rcmail_config['product_name'] = 'Roundcube Webmail';
  238. // try to load host-specific configuration
  239. // see http://trac.roundcube.net/wiki/Howto_Config for more details
  240. $rcmail_config['include_host_config'] = false;
  241. // path to a text file which will be added to each sent message
  242. // paths are relative to the Roundcube root folder
  243. $rcmail_config['generic_message_footer'] = '';
  244. // path to a text file which will be added to each sent HTML message
  245. // paths are relative to the Roundcube root folder
  246. $rcmail_config['generic_message_footer_html'] = '';
  247. // add a received header to outgoing mails containing the creators IP and hostname
  248. $rcmail_config['http_received_header'] = false;
  249. // Whether or not to encrypt the IP address and the host name
  250. // these could, in some circles, be considered as sensitive information;
  251. // however, for the administrator, these could be invaluable help
  252. // when tracking down issues.
  253. $rcmail_config['http_received_header_encrypt'] = false;
  254. // This string is used as a delimiter for message headers when sending
  255. // a message via mail() function. Leave empty for auto-detection
  256. $rcmail_config['mail_header_delimiter'] = NULL;
  257. // number of chars allowed for line when wrapping text.
  258. // text wrapping is done when composing/sending messages
  259. $rcmail_config['line_length'] = 72;
  260. // send plaintext messages as format=flowed
  261. $rcmail_config['send_format_flowed'] = true;
  262. // don't allow these settings to be overriden by the user
  263. $rcmail_config['dont_override'] = array();
  264. // Set identities access level:
  265. // 0 - many identities with possibility to edit all params
  266. // 1 - many identities with possibility to edit all params but not email address
  267. // 2 - one identity with possibility to edit all params
  268. // 3 - one identity with possibility to edit all params but not email address
  269. $rcmail_config['identities_level'] = 0;
  270. // Mimetypes supported by the browser.
  271. // attachments of these types will open in a preview window
  272. // either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
  273. $rcmail_config['client_mimetypes'] = null; # null == default
  274. // mime magic database
  275. $rcmail_config['mime_magic'] = null;
  276. // path to imagemagick identify binary
  277. $rcmail_config['im_identify_path'] = null;
  278. // path to imagemagick convert binary
  279. $rcmail_config['im_convert_path'] = null;
  280. // maximum size of uploaded contact photos in pixel
  281. $rcmail_config['contact_photo_size'] = 160;
  282. // Enable DNS checking for e-mail address validation
  283. $rcmail_config['email_dns_check'] = false;
  284. // ----------------------------------
  285. // PLUGINS
  286. // ----------------------------------
  287. // List of active plugins (in plugins/ directory)
  288. $rcmail_config['plugins'] = array('password');
  289. // ----------------------------------
  290. // USER INTERFACE
  291. // ----------------------------------
  292. // default messages sort column. Use empty value for default server's sorting,
  293. // or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc'
  294. $rcmail_config['message_sort_col'] = '';
  295. // default messages sort order
  296. $rcmail_config['message_sort_order'] = 'DESC';
  297. // These cols are shown in the message list. Available cols are:
  298. // subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority'
  299. $rcmail_config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment');
  300. // the default locale setting (leave empty for auto-detection)
  301. // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
  302. $rcmail_config['language'] = null;
  303. // use this format for date display (date or strftime format)
  304. $rcmail_config['date_format'] = 'Y-m-d';
  305. // give this choice of date formats to the user to select from
  306. $rcmail_config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
  307. // use this format for time display (date or strftime format)
  308. $rcmail_config['time_format'] = 'H:i';
  309. // give this choice of time formats to the user to select from
  310. $rcmail_config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A');
  311. // use this format for short date display (derived from date_format and time_format)
  312. $rcmail_config['date_short'] = 'D H:i';
  313. // use this format for detailed date/time formatting (derived from date_format and time_format)
  314. $rcmail_config['date_long'] = 'Y-m-d H:i';
  315. // store draft message is this mailbox
  316. // leave blank if draft messages should not be stored
  317. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  318. $rcmail_config['drafts_mbox'] = 'Drafts';
  319. // store spam messages in this mailbox
  320. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  321. $rcmail_config['junk_mbox'] = 'Junk';
  322. // store sent message is this mailbox
  323. // leave blank if sent messages should not be stored
  324. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  325. $rcmail_config['sent_mbox'] = 'Sent';
  326. // move messages to this folder when deleting them
  327. // leave blank if they should be deleted directly
  328. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  329. $rcmail_config['trash_mbox'] = 'Trash';
  330. // display these folders separately in the mailbox list.
  331. // these folders will also be displayed with localized names
  332. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  333. $rcmail_config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
  334. // automatically create the above listed default folders on first login
  335. $rcmail_config['create_default_folders'] = true;
  336. // protect the default folders from renames, deletes, and subscription changes
  337. $rcmail_config['protect_default_folders'] = true;
  338. // if in your system 0 quota means no limit set this option to true
  339. $rcmail_config['quota_zero_as_unlimited'] = false;
  340. // Make use of the built-in spell checker. It is based on GoogieSpell.
  341. // Since Google only accepts connections over https your PHP installatation
  342. // requires to be compiled with Open SSL support
  343. $rcmail_config['enable_spellcheck'] = true;
  344. // Enables spellchecker exceptions dictionary.
  345. // Setting it to 'shared' will make the dictionary shared by all users.
  346. $rcmail_config['spellcheck_dictionary'] = false;
  347. // Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
  348. // but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
  349. $rcmail_config['spellcheck_engine'] = 'googie';
  350. // For a locally installed Nox Spell Server, please specify the URI to call it.
  351. // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
  352. // Leave empty to use the Google spell checking service, what means
  353. // that the message content will be sent to Google in order to check spelling
  354. $rcmail_config['spellcheck_uri'] = '';
  355. // These languages can be selected for spell checking.
  356. // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
  357. // Leave empty for default set of available language.
  358. $rcmail_config['spellcheck_languages'] = NULL;
  359. // Makes that words with all letters capitalized will be ignored (e.g. GOOGLE)
  360. $rcmail_config['spellcheck_ignore_caps'] = false;
  361. // Makes that words with numbers will be ignored (e.g. g00gle)
  362. $rcmail_config['spellcheck_ignore_nums'] = false;
  363. // Makes that words with symbols will be ignored (e.g. g@@gle)
  364. $rcmail_config['spellcheck_ignore_syms'] = false;
  365. // Use this char/string to separate recipients when composing a new message
  366. $rcmail_config['recipients_separator'] = ',';
  367. // don't let users set pagesize to more than this value if set
  368. $rcmail_config['max_pagesize'] = 200;
  369. // Minimal value of user's 'keep_alive' setting (in seconds)
  370. // Must be less than 'session_lifetime'
  371. $rcmail_config['min_keep_alive'] = 60;
  372. // Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
  373. // By default refresh time is set to 1 second. You can set this value to true
  374. // or any integer value indicating number of seconds.
  375. $rcmail_config['upload_progress'] = false;
  376. // Specifies for how many seconds the Undo button will be available
  377. // after object delete action. Currently used with supporting address book sources.
  378. // Setting it to 0, disables the feature.
  379. $rcmail_config['undo_timeout'] = 0;
  380. // ----------------------------------
  381. // ADDRESSBOOK SETTINGS
  382. // ----------------------------------
  383. // This indicates which type of address book to use. Possible choises:
  384. // 'sql' (default) and 'ldap'.
  385. // If set to 'ldap' then it will look at using the first writable LDAP
  386. // address book as the primary address book and it will not display the
  387. // SQL address book in the 'Address Book' view.
  388. $rcmail_config['address_book_type'] = 'sql';
  389. // In order to enable public ldap search, configure an array like the Verisign
  390. // example further below. if you would like to test, simply uncomment the example.
  391. // Array key must contain only safe characters, ie. a-zA-Z0-9_
  392. $rcmail_config['ldap_public'] = array();
  393. // If you are going to use LDAP for individual address books, you will need to
  394. // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
  395. //
  396. // The recommended directory structure for LDAP is to store all the address book entries
  397. // under the users main entry, e.g.:
  398. //
  399. // o=root
  400. // ou=people
  401. // uid=user@domain
  402. // mail=contact@contactdomain
  403. //
  404. // So the base_dn would be uid=%fu,ou=people,o=root
  405. // The bind_dn would be the same as based_dn or some super user login.
  406. /*
  407. * example config for Verisign directory
  408. *
  409. $rcmail_config['ldap_public']['Verisign'] = array(
  410. 'name' => 'Verisign.com',
  411. // Replacement variables supported in host names:
  412. // %h - user's IMAP hostname
  413. // %n - http hostname ($_SERVER['SERVER_NAME'])
  414. // %d - domain (http hostname without the first part)
  415. // %z - IMAP domain (IMAP hostname without the first part)
  416. // For example %n = mail.domain.tld, %d = domain.tld
  417. 'hosts' => array('directory.verisign.com'),
  418. 'port' => 389,
  419. 'use_tls' => false,
  420. 'ldap_version' => 3, // using LDAPv3
  421. 'user_specific' => false, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
  422. // %fu - The full username provided, assumes the username is an email
  423. // address, uses the username_domain value if not an email address.
  424. // %u - The username prior to the '@'.
  425. // %d - The domain name after the '@'.
  426. // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
  427. // %dn - DN found by ldap search when search_filter/search_base_dn are used
  428. 'base_dn' => '',
  429. 'bind_dn' => '',
  430. 'bind_pass' => '',
  431. // It's possible to bind for an individual address book
  432. // The login name is used to search for the DN to bind with
  433. 'search_base_dn' => '',
  434. 'search_filter' => '', // e.g. '(&(objectClass=posixAccount)(uid=%u))'
  435. // DN and password to bind as before searching for bind DN, if anonymous search is not allowed
  436. 'search_bind_dn' => '',
  437. 'search_bind_pw' => '',
  438. // Default for %dn variable if search doesn't return DN value
  439. 'search_dn_default' => '',
  440. // Optional authentication identifier to be used as SASL authorization proxy
  441. // bind_dn need to be empty
  442. 'auth_cid' => '',
  443. // SASL authentication method (for proxy auth), e.g. DIGEST-MD5
  444. 'auth_method' => '',
  445. // Indicates if the addressbook shall be hidden from the list.
  446. // With this option enabled you can still search/view contacts.
  447. 'hidden' => false,
  448. // Indicates if the addressbook shall not list contacts but only allows searching.
  449. 'searchonly' => false,
  450. // Indicates if we can write to the LDAP directory or not.
  451. // If writable is true then these fields need to be populated:
  452. // LDAP_Object_Classes, required_fields, LDAP_rdn
  453. 'writable' => false,
  454. // To create a new contact these are the object classes to specify
  455. // (or any other classes you wish to use).
  456. 'LDAP_Object_Classes' => array('top', 'inetOrgPerson'),
  457. // The RDN field that is used for new entries, this field needs
  458. // to be one of the search_fields, the base of base_dn is appended
  459. // to the RDN to insert into the LDAP directory.
  460. 'LDAP_rdn' => 'cn',
  461. // The required fields needed to build a new contact as required by
  462. // the object classes (can include additional fields not required by the object classes).
  463. 'required_fields' => array('cn', 'sn', 'mail'),
  464. 'search_fields' => array('mail', 'cn'), // fields to search in
  465. // mapping of contact fields to directory attributes
  466. // for every attribute one can specify the number of values (limit) allowed.
  467. // default is 1, a wildcard * means unlimited
  468. 'fieldmap' => array(
  469. // Roundcube => LDAP:limit
  470. 'name' => 'cn',
  471. 'surname' => 'sn',
  472. 'firstname' => 'givenName',
  473. 'title' => 'title',
  474. 'email' => 'mail:*',
  475. 'phone:home' => 'homePhone',
  476. 'phone:work' => 'telephoneNumber',
  477. 'phone:mobile' => 'mobile',
  478. 'phone:pager' => 'pager',
  479. 'street' => 'street',
  480. 'zipcode' => 'postalCode',
  481. 'region' => 'st',
  482. 'locality' => 'l',
  483. // if you uncomment country, you need to modify 'sub_fields' above
  484. // 'country' => 'c',
  485. 'department' => 'departmentNumber',
  486. 'notes' => 'description',
  487. // these currently don't work:
  488. // 'phone:workfax' => 'facsimileTelephoneNumber',
  489. // 'photo' => 'jpegPhoto',
  490. // 'organization' => 'o',
  491. // 'manager' => 'manager',
  492. // 'assistant' => 'secretary',
  493. ),
  494. // Map of contact sub-objects (attribute name => objectClass(es)), e.g. 'c' => 'country'
  495. 'sub_fields' => array(),
  496. 'sort' => 'cn', // The field to sort the listing by.
  497. 'scope' => 'sub', // search mode: sub|base|list
  498. 'filter' => '(objectClass=inetOrgPerson)', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
  499. 'fuzzy_search' => true, // server allows wildcard search
  500. 'vlv' => false, // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
  501. '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
  502. 'sizelimit' => '0', // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
  503. 'timelimit' => '0', // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
  504. 'referrals' => true|false, // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
  505. // definition for contact groups (uncomment if no groups are supported)
  506. // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
  507. // if the groups base_dn is empty, the contact base_dn is used for the groups as well
  508. // -> in this case, assure that groups and contacts are separated due to the concernig filters!
  509. 'groups' => array(
  510. 'base_dn' => '',
  511. 'scope' => 'sub', // search mode: sub|base|list
  512. 'filter' => '(objectClass=groupOfNames)',
  513. 'object_classes' => array("top", "groupOfNames"),
  514. 'member_attr' => 'member', // name of the member attribute, e.g. uniqueMember
  515. 'name_attr' => 'cn', // attribute to be used as group name
  516. ),
  517. );
  518. */
  519. // An ordered array of the ids of the addressbooks that should be searched
  520. // when populating address autocomplete fields server-side. ex: array('sql','Verisign');
  521. $rcmail_config['autocomplete_addressbooks'] = array('sql');
  522. // The minimum number of characters required to be typed in an autocomplete field
  523. // before address books will be searched. Most useful for LDAP directories that
  524. // may need to do lengthy results building given overly-broad searches
  525. $rcmail_config['autocomplete_min_length'] = 1;
  526. // Number of parallel autocomplete requests.
  527. // If there's more than one address book, n parallel (async) requests will be created,
  528. // where each request will search in one address book. By default (0), all address
  529. // books are searched in one request.
  530. $rcmail_config['autocomplete_threads'] = 0;
  531. // Max. numer of entries in autocomplete popup. Default: 15.
  532. $rcmail_config['autocomplete_max'] = 15;
  533. // show address fields in this order
  534. // available placeholders: {street}, {locality}, {zipcode}, {country}, {region}
  535. $rcmail_config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
  536. // Matching mode for addressbook search (including autocompletion)
  537. // 0 - partial (*abc*), default
  538. // 1 - strict (abc)
  539. // 2 - prefix (abc*)
  540. // Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode
  541. $rcmail_config['addressbook_search_mode'] = 0;
  542. // ----------------------------------
  543. // USER PREFERENCES
  544. // ----------------------------------
  545. // Use this charset as fallback for message decoding
  546. //$rcmail_config['default_charset'] = 'ISO-8859-1';
  547. $rcmail_config['default_charset'] = 'UTF-8';
  548. // skin name: folder from skins/
  549. $rcmail_config['skin'] = 'larry';
  550. // show up to X items in messages list view
  551. $rcmail_config['mail_pagesize'] = 50;
  552. // show up to X items in contacts list view
  553. $rcmail_config['addressbook_pagesize'] = 50;
  554. // sort contacts by this col (preferably either one of name, firstname, surname)
  555. $rcmail_config['addressbook_sort_col'] = 'surname';
  556. // the way how contact names are displayed in the list
  557. // 0: display name
  558. // 1: (prefix) firstname middlename surname (suffix)
  559. // 2: (prefix) surname firstname middlename (suffix)
  560. // 3: (prefix) surname, firstname middlename (suffix)
  561. $rcmail_config['addressbook_name_listing'] = 0;
  562. // use this timezone to display date/time
  563. // valid timezone identifers are listed here: php.net/manual/en/timezones.php
  564. // 'auto' will use the browser's timezone settings
  565. $rcmail_config['timezone'] = 'auto';
  566. // prefer displaying HTML messages
  567. $rcmail_config['prefer_html'] = true;
  568. // display remote inline images
  569. // 0 - Never, always ask
  570. // 1 - Ask if sender is not in address book
  571. // 2 - Always show inline images
  572. $rcmail_config['show_images'] = 0;
  573. // compose html formatted messages by default
  574. // 0 - never, 1 - always, 2 - on reply to HTML message only
  575. $rcmail_config['htmleditor'] = 0;
  576. // show pretty dates as standard
  577. $rcmail_config['prettydate'] = true;
  578. // save compose message every 300 seconds (5min)
  579. $rcmail_config['draft_autosave'] = 300;
  580. // default setting if preview pane is enabled
  581. $rcmail_config['preview_pane'] = false;
  582. // Mark as read when viewed in preview pane (delay in seconds)
  583. // Set to -1 if messages in preview pane should not be marked as read
  584. $rcmail_config['preview_pane_mark_read'] = 0;
  585. // Clear Trash on logout
  586. $rcmail_config['logout_purge'] = false;
  587. // Compact INBOX on logout
  588. $rcmail_config['logout_expunge'] = false;
  589. // Display attached images below the message body
  590. $rcmail_config['inline_images'] = true;
  591. // Encoding of long/non-ascii attachment names:
  592. // 0 - Full RFC 2231 compatible
  593. // 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
  594. // 2 - Full 2047 compatible
  595. $rcmail_config['mime_param_folding'] = 1;
  596. // Set true if deleted messages should not be displayed
  597. // This will make the application run slower
  598. $rcmail_config['skip_deleted'] = false;
  599. // Set true to Mark deleted messages as read as well as deleted
  600. // False means that a message's read status is not affected by marking it as deleted
  601. $rcmail_config['read_when_deleted'] = true;
  602. // Set to true to never delete messages immediately
  603. // Use 'Purge' to remove messages marked as deleted
  604. $rcmail_config['flag_for_deletion'] = false;
  605. // Default interval for keep-alive/check-recent requests (in seconds)
  606. // Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
  607. $rcmail_config['keep_alive'] = 60;
  608. // If true all folders will be checked for recent messages
  609. $rcmail_config['check_all_folders'] = false;
  610. // If true, after message delete/move, the next message will be displayed
  611. $rcmail_config['display_next'] = false;
  612. // 0 - Do not expand threads
  613. // 1 - Expand all threads automatically
  614. // 2 - Expand only threads with unread messages
  615. $rcmail_config['autoexpand_threads'] = 0;
  616. // When replying place cursor above original message (top posting)
  617. $rcmail_config['top_posting'] = false;
  618. // When replying strip original signature from message
  619. $rcmail_config['strip_existing_sig'] = true;
  620. // Show signature:
  621. // 0 - Never
  622. // 1 - Always
  623. // 2 - New messages only
  624. // 3 - Forwards and Replies only
  625. $rcmail_config['show_sig'] = 1;
  626. // When replying or forwarding place sender's signature above existing message
  627. $rcmail_config['sig_above'] = false;
  628. // Use MIME encoding (quoted-printable) for 8bit characters in message body
  629. $rcmail_config['force_7bit'] = false;
  630. // Defaults of the search field configuration.
  631. // The array can contain a per-folder list of header fields which should be considered when searching
  632. // The entry with key '*' stands for all folders which do not have a specific list set.
  633. // Please note that folder names should to be in sync with $rcmail_config['default_folders']
  634. $rcmail_config['search_mods'] = null; // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
  635. // Defaults of the addressbook search field configuration.
  636. $rcmail_config['addressbook_search_mods'] = null; // Example: array('name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1);
  637. // 'Delete always'
  638. // This setting reflects if mail should be always deleted
  639. // when moving to Trash fails. This is necessary in some setups
  640. // when user is over quota and Trash is included in the quota.
  641. $rcmail_config['delete_always'] = false;
  642. // Directly delete messages in Junk instead of moving to Trash
  643. $rcmail_config['delete_junk'] = false;
  644. // Behavior if a received message requests a message delivery notification (read receipt)
  645. // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
  646. // 3 = send automatically if sender is in addressbook, otherwise ask the user
  647. // 4 = send automatically if sender is in addressbook, otherwise ignore
  648. $rcmail_config['mdn_requests'] = 0;
  649. // Return receipt checkbox default state
  650. $rcmail_config['mdn_default'] = 0;
  651. // Delivery Status Notification checkbox default state
  652. $rcmail_config['dsn_default'] = 0;
  653. // Place replies in the folder of the message being replied to
  654. $rcmail_config['reply_same_folder'] = false;
  655. // Sets default mode of Forward feature to "forward as attachment"
  656. $rcmail_config['forward_attachment'] = false;
  657. // Defines address book (internal index) to which new contacts will be added
  658. // By default it is the first writeable addressbook.
  659. // Note: Use '0' for built-in address book.
  660. $rcmail_config['default_addressbook'] = null;
  661. // Enables spell checking before sending a message.
  662. $rcmail_config['spellcheck_before_send'] = false;
  663. // Skip alternative email addresses in autocompletion (show one address per contact)
  664. $rcmail_config['autocomplete_single'] = false;
  665. // Default font for composed HTML message.
  666. // Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New,
  667. // Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana
  668. $rcmail_config['default_font'] = '';
  669. // end of config file