| [10] | 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /* |
|---|
| 4 | +-----------------------------------------------------------------------+ |
|---|
| 5 | | Main configuration file | |
|---|
| 6 | | | |
|---|
| [3989] | 7 | | This file is part of the Roundcube Webmail client | |
|---|
| 8 | | Copyright (C) 2005-2010, Roundcube Dev. - Switzerland | |
|---|
| [16] | 9 | | Licensed under the GNU GPL | |
|---|
| [10] | 10 | | | |
|---|
| 11 | +-----------------------------------------------------------------------+ |
|---|
| 12 | |
|---|
| 13 | */ |
|---|
| 14 | |
|---|
| 15 | $rcmail_config = array(); |
|---|
| 16 | |
|---|
| [3324] | 17 | // ---------------------------------- |
|---|
| 18 | // LOGGING/DEBUGGING |
|---|
| 19 | // ---------------------------------- |
|---|
| 20 | |
|---|
| [11] | 21 | // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace |
|---|
| [147] | 22 | $rcmail_config['debug_level'] = 1; |
|---|
| [10] | 23 | |
|---|
| [1683] | 24 | // log driver: 'syslog' or 'file'. |
|---|
| 25 | $rcmail_config['log_driver'] = 'file'; |
|---|
| 26 | |
|---|
| [2419] | 27 | // date format for log entries |
|---|
| 28 | // (read http://php.net/manual/en/function.date.php for all format characters) |
|---|
| 29 | $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O'; |
|---|
| 30 | |
|---|
| [1683] | 31 | // Syslog ident string to use, if using the 'syslog' log driver. |
|---|
| 32 | $rcmail_config['syslog_id'] = 'roundcube'; |
|---|
| 33 | |
|---|
| 34 | // Syslog facility to use, if using the 'syslog' log driver. |
|---|
| 35 | // For possible values see installer or http://php.net/manual/en/function.openlog.php |
|---|
| 36 | $rcmail_config['syslog_facility'] = LOG_USER; |
|---|
| 37 | |
|---|
| [3368] | 38 | // Log sent messages to <log_dir>/sendmail or to syslog |
|---|
| [3324] | 39 | $rcmail_config['smtp_log'] = true; |
|---|
| [1683] | 40 | |
|---|
| [3368] | 41 | // Log successful logins to <log_dir>/userlogins or to syslog |
|---|
| [3324] | 42 | $rcmail_config['log_logins'] = false; |
|---|
| [1683] | 43 | |
|---|
| [3324] | 44 | // Log SQL queries to <log_dir>/sql or to syslog |
|---|
| 45 | $rcmail_config['sql_debug'] = false; |
|---|
| [2401] | 46 | |
|---|
| [3324] | 47 | // Log IMAP conversation to <log_dir>/imap or to syslog |
|---|
| 48 | $rcmail_config['imap_debug'] = false; |
|---|
| [19] | 49 | |
|---|
| [3324] | 50 | // Log LDAP conversation to <log_dir>/ldap or to syslog |
|---|
| 51 | $rcmail_config['ldap_debug'] = false; |
|---|
| [132] | 52 | |
|---|
| [3324] | 53 | // Log SMTP conversation to <log_dir>/smtp or to syslog |
|---|
| 54 | $rcmail_config['smtp_debug'] = false; |
|---|
| [3049] | 55 | |
|---|
| [3324] | 56 | // ---------------------------------- |
|---|
| 57 | // IMAP |
|---|
| 58 | // ---------------------------------- |
|---|
| [10] | 59 | |
|---|
| 60 | // the mail host chosen to perform the log-in |
|---|
| 61 | // leave blank to show a textbox at login, give a list of hosts |
|---|
| [21] | 62 | // to display a pulldown menu or set one host as string. |
|---|
| [2388] | 63 | // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// |
|---|
| [3701] | 64 | // Supported replacement variables: |
|---|
| 65 | // %n - http hostname ($_SERVER['SERVER_NAME']) |
|---|
| 66 | // %d - domain (http hostname without the first part) |
|---|
| 67 | // For example %n = mail.domain.tld, %d = domain.tld |
|---|
| [10] | 68 | $rcmail_config['default_host'] = ''; |
|---|
| 69 | |
|---|
| [21] | 70 | // TCP port used for IMAP connections |
|---|
| 71 | $rcmail_config['default_port'] = 143; |
|---|
| 72 | |
|---|
| [1395] | 73 | // IMAP auth type. Can be "auth" (CRAM-MD5), "plain" (PLAIN) or "check" to auto detect. |
|---|
| 74 | // Optional, defaults to "check" |
|---|
| [1394] | 75 | $rcmail_config['imap_auth_type'] = null; |
|---|
| 76 | |
|---|
| [2143] | 77 | // If you know your imap's root directory and its folder delimiter, |
|---|
| [2188] | 78 | // you can specify them here. Otherwise they will be determined automatically. |
|---|
| [2143] | 79 | $rcmail_config['imap_root'] = null; |
|---|
| 80 | $rcmail_config['imap_delimiter'] = null; |
|---|
| 81 | |
|---|
| [3415] | 82 | // By default IMAP capabilities are readed after connection to IMAP server |
|---|
| 83 | // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list |
|---|
| 84 | // after login. Set to True if you've got this case. |
|---|
| 85 | $rcmail_config['imap_force_caps'] = false; |
|---|
| 86 | |
|---|
| [3684] | 87 | // IMAP connection timeout, in seconds. Default: 0 (no limit) |
|---|
| 88 | $rcmail_config['imap_timeout'] = 0; |
|---|
| 89 | |
|---|
| [3324] | 90 | // ---------------------------------- |
|---|
| 91 | // SMTP |
|---|
| 92 | // ---------------------------------- |
|---|
| [183] | 93 | |
|---|
| [3192] | 94 | // SMTP server host (for sending mails). |
|---|
| [3324] | 95 | // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// |
|---|
| [3192] | 96 | // If left blank, the PHP mail() function is used |
|---|
| [3701] | 97 | // Supported replacement variables: |
|---|
| 98 | // %h - user's IMAP hostname |
|---|
| 99 | // %n - http hostname ($_SERVER['SERVER_NAME']) |
|---|
| 100 | // %d - domain (http hostname without the first part) |
|---|
| [3977] | 101 | // %z - IMAP domain (IMAP hostname without the first part) |
|---|
| [3701] | 102 | // For example %n = mail.domain.tld, %d = domain.tld |
|---|
| [10] | 103 | $rcmail_config['smtp_server'] = ''; |
|---|
| 104 | |
|---|
| [83] | 105 | // SMTP port (default is 25; 465 for SSL) |
|---|
| [11] | 106 | $rcmail_config['smtp_port'] = 25; |
|---|
| 107 | |
|---|
| [3989] | 108 | // SMTP username (if required) if you use %u as the username Roundcube |
|---|
| [34] | 109 | // will use the current username for login |
|---|
| [10] | 110 | $rcmail_config['smtp_user'] = ''; |
|---|
| 111 | |
|---|
| [3989] | 112 | // SMTP password (if required) if you use %p as the password Roundcube |
|---|
| [34] | 113 | // will use the current user's password for login |
|---|
| [10] | 114 | $rcmail_config['smtp_pass'] = ''; |
|---|
| 115 | |
|---|
| [34] | 116 | // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use |
|---|
| 117 | // best server supported one) |
|---|
| 118 | $rcmail_config['smtp_auth_type'] = ''; |
|---|
| 119 | |
|---|
| [804] | 120 | // SMTP HELO host |
|---|
| 121 | // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages |
|---|
| 122 | // Leave this blank and you will get the server variable 'server_name' or |
|---|
| 123 | // localhost if that isn't defined. |
|---|
| 124 | $rcmail_config['smtp_helo_host'] = ''; |
|---|
| 125 | |
|---|
| [3684] | 126 | // SMTP connection timeout, in seconds. Default: 0 (no limit) |
|---|
| 127 | $rcmail_config['smtp_timeout'] = 0; |
|---|
| 128 | |
|---|
| [3324] | 129 | // ---------------------------------- |
|---|
| 130 | // SYSTEM |
|---|
| 131 | // ---------------------------------- |
|---|
| [3289] | 132 | |
|---|
| [3324] | 133 | // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA. |
|---|
| 134 | // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING! |
|---|
| 135 | $rcmail_config['enable_installer'] = false; |
|---|
| [10] | 136 | |
|---|
| [3324] | 137 | // use this folder to store log files (must be writeable for apache user) |
|---|
| 138 | // This is used by the 'file' log driver. |
|---|
| 139 | $rcmail_config['log_dir'] = 'logs/'; |
|---|
| [2719] | 140 | |
|---|
| [3324] | 141 | // use this folder to store temp files (must be writeable for apache user) |
|---|
| 142 | $rcmail_config['temp_dir'] = 'temp/'; |
|---|
| [2719] | 143 | |
|---|
| [3324] | 144 | // enable caching of messages and mailbox data in the local database. |
|---|
| 145 | // this is recommended if the IMAP server does not run on the same machine |
|---|
| 146 | $rcmail_config['enable_caching'] = false; |
|---|
| [2976] | 147 | |
|---|
| [3324] | 148 | // lifetime of message cache |
|---|
| 149 | // possible units: s, m, h, d, w |
|---|
| 150 | $rcmail_config['message_cache_lifetime'] = '10d'; |
|---|
| [2754] | 151 | |
|---|
| [3324] | 152 | // enforce connections over https |
|---|
| 153 | // with this option enabled, all non-secure connections will be redirected. |
|---|
| 154 | // set the port for the ssl connection as value of this option if it differs from the default 443 |
|---|
| 155 | $rcmail_config['force_https'] = false; |
|---|
| [1793] | 156 | |
|---|
| [3989] | 157 | // automatically create a new Roundcube user when log-in the first time. |
|---|
| [3324] | 158 | // a new user will be created once the IMAP login succeeds. |
|---|
| 159 | // set to false if only registered users can use this service |
|---|
| 160 | $rcmail_config['auto_create_user'] = true; |
|---|
| [10] | 161 | |
|---|
| [2013] | 162 | // Includes should be interpreted as PHP files |
|---|
| [3324] | 163 | $rcmail_config['skin_include_php'] = false; |
|---|
| [801] | 164 | |
|---|
| [2013] | 165 | // Session lifetime in minutes |
|---|
| 166 | // must be greater than 'keep_alive'/60 |
|---|
| [49] | 167 | $rcmail_config['session_lifetime'] = 10; |
|---|
| 168 | |
|---|
| [10] | 169 | // check client IP in session athorization |
|---|
| [521] | 170 | $rcmail_config['ip_check'] = false; |
|---|
| [10] | 171 | |
|---|
| [521] | 172 | // Use an additional frequently changing cookie to athenticate user sessions. |
|---|
| 173 | // There have been problems reported with this feature. |
|---|
| 174 | $rcmail_config['double_auth'] = false; |
|---|
| 175 | |
|---|
| [275] | 176 | // this key is used to encrypt the users imap password which is stored |
|---|
| 177 | // in the session record (and the client cookie if remember password is enabled). |
|---|
| 178 | // please provide a string of exactly 24 chars. |
|---|
| 179 | $rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str'; |
|---|
| 180 | |
|---|
| [3324] | 181 | // Automatically add this domain to user names for login |
|---|
| 182 | // Only for IMAP servers that require full e-mail addresses for login |
|---|
| 183 | // Specify an array with 'host' => 'domain' values to support multiple hosts |
|---|
| [3724] | 184 | // Supported replacement variables: |
|---|
| 185 | // %h - user's IMAP hostname |
|---|
| 186 | // %n - http hostname ($_SERVER['SERVER_NAME']) |
|---|
| 187 | // %d - domain (http hostname without the first part) |
|---|
| [3977] | 188 | // %z - IMAP domain (IMAP hostname without the first part) |
|---|
| [3724] | 189 | // For example %n = mail.domain.tld, %d = domain.tld |
|---|
| [3324] | 190 | $rcmail_config['username_domain'] = ''; |
|---|
| 191 | |
|---|
| 192 | // This domain will be used to form e-mail addresses of new users |
|---|
| 193 | // Specify an array with 'host' => 'domain' values to support multiple hosts |
|---|
| [3701] | 194 | // Supported replacement variables: |
|---|
| 195 | // %h - user's IMAP hostname |
|---|
| 196 | // %n - http hostname ($_SERVER['SERVER_NAME']) |
|---|
| 197 | // %d - domain (http hostname without the first part) |
|---|
| [3977] | 198 | // %z - IMAP domain (IMAP hostname without the first part) |
|---|
| [3701] | 199 | // For example %n = mail.domain.tld, %d = domain.tld |
|---|
| [3324] | 200 | $rcmail_config['mail_domain'] = ''; |
|---|
| 201 | |
|---|
| 202 | // Password charset. |
|---|
| 203 | // Use it if your authentication backend doesn't support UTF-8. |
|---|
| 204 | // Defaults to ISO-8859-1 for backward compatibility |
|---|
| 205 | $rcmail_config['password_charset'] = 'ISO-8859-1'; |
|---|
| 206 | |
|---|
| 207 | // How many seconds must pass between emails sent by a user |
|---|
| 208 | $rcmail_config['sendmail_delay'] = 0; |
|---|
| 209 | |
|---|
| [3468] | 210 | // Maximum number of recipients per message. Default: 0 (no limit) |
|---|
| 211 | $rcmail_config['max_recipients'] = 0; |
|---|
| 212 | |
|---|
| [3470] | 213 | // Maximum allowednumber of members of an address group. Default: 0 (no limit) |
|---|
| 214 | // If 'max_recipients' is set this value should be less or equal |
|---|
| 215 | $rcmail_config['max_group_members'] = 0; |
|---|
| 216 | |
|---|
| [3324] | 217 | // add this user-agent to message headers when sending |
|---|
| [3644] | 218 | $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION; |
|---|
| [3324] | 219 | |
|---|
| 220 | // use this name to compose page titles |
|---|
| [3644] | 221 | $rcmail_config['product_name'] = 'Roundcube Webmail'; |
|---|
| [3324] | 222 | |
|---|
| 223 | // try to load host-specific configuration |
|---|
| 224 | // see http://trac.roundcube.net/wiki/Howto_Config for more details |
|---|
| 225 | $rcmail_config['include_host_config'] = false; |
|---|
| 226 | |
|---|
| 227 | // path to a text file which will be added to each sent message |
|---|
| [3989] | 228 | // paths are relative to the Roundcube root folder |
|---|
| [3324] | 229 | $rcmail_config['generic_message_footer'] = ''; |
|---|
| 230 | |
|---|
| [3744] | 231 | // path to a text file which will be added to each sent HTML message |
|---|
| [3989] | 232 | // paths are relative to the Roundcube root folder |
|---|
| [3744] | 233 | $rcmail_config['generic_message_footer_html'] = ''; |
|---|
| 234 | |
|---|
| [3324] | 235 | // add a received header to outgoing mails containing the creators IP and hostname |
|---|
| 236 | $rcmail_config['http_received_header'] = false; |
|---|
| 237 | |
|---|
| 238 | // Whether or not to encrypt the IP address and the host name |
|---|
| 239 | // these could, in some circles, be considered as sensitive information; |
|---|
| 240 | // however, for the administrator, these could be invaluable help |
|---|
| 241 | // when tracking down issues. |
|---|
| 242 | $rcmail_config['http_received_header_encrypt'] = false; |
|---|
| 243 | |
|---|
| [3686] | 244 | // This string is used as a delimiter for message headers when sending |
|---|
| 245 | // a message via mail() function. Leave empty for auto-detection |
|---|
| [3324] | 246 | $rcmail_config['mail_header_delimiter'] = NULL; |
|---|
| 247 | |
|---|
| [3644] | 248 | // number of chars allowed for line when wrapping text. |
|---|
| 249 | // text wrapping is done when composing/sending messages |
|---|
| [3646] | 250 | $rcmail_config['line_length'] = 72; |
|---|
| [3644] | 251 | |
|---|
| 252 | // send plaintext messages as format=flowed |
|---|
| 253 | $rcmail_config['send_format_flowed'] = true; |
|---|
| 254 | |
|---|
| [3324] | 255 | // session domain: .example.org |
|---|
| 256 | $rcmail_config['session_domain'] = ''; |
|---|
| 257 | |
|---|
| 258 | // don't allow these settings to be overriden by the user |
|---|
| 259 | $rcmail_config['dont_override'] = array(); |
|---|
| 260 | |
|---|
| 261 | // Set identities access level: |
|---|
| 262 | // 0 - many identities with possibility to edit all params |
|---|
| 263 | // 1 - many identities with possibility to edit all params but not email address |
|---|
| 264 | // 2 - one identity with possibility to edit all params |
|---|
| 265 | // 3 - one identity with possibility to edit all params but not email address |
|---|
| 266 | $rcmail_config['identities_level'] = 0; |
|---|
| 267 | |
|---|
| 268 | // mime magic database |
|---|
| 269 | $rcmail_config['mime_magic'] = '/usr/share/misc/magic'; |
|---|
| 270 | |
|---|
| 271 | // Enable DNS checking for e-mail address validation |
|---|
| 272 | $rcmail_config['email_dns_check'] = false; |
|---|
| 273 | |
|---|
| 274 | // ---------------------------------- |
|---|
| 275 | // PLUGINS |
|---|
| 276 | // ---------------------------------- |
|---|
| 277 | |
|---|
| 278 | // List of active plugins (in plugins/ directory) |
|---|
| 279 | $rcmail_config['plugins'] = array(); |
|---|
| 280 | |
|---|
| 281 | // ---------------------------------- |
|---|
| 282 | // USER INTERFACE |
|---|
| 283 | // ---------------------------------- |
|---|
| 284 | |
|---|
| [3367] | 285 | // default messages sort column. Use empty value for default server's sorting, |
|---|
| 286 | // or 'arrival', 'date', 'subject', 'from', 'to', 'size', 'cc' |
|---|
| 287 | $rcmail_config['message_sort_col'] = ''; |
|---|
| [3324] | 288 | |
|---|
| [3367] | 289 | // default messages sort order |
|---|
| [3324] | 290 | $rcmail_config['message_sort_order'] = 'DESC'; |
|---|
| 291 | |
|---|
| 292 | // These cols are shown in the message list. Available cols are: |
|---|
| 293 | // subject, from, to, cc, replyto, date, size, flag, attachment |
|---|
| 294 | $rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size', 'flag', 'attachment'); |
|---|
| 295 | |
|---|
| [1722] | 296 | // the default locale setting (leave empty for auto-detection) |
|---|
| 297 | // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR |
|---|
| 298 | $rcmail_config['language'] = null; |
|---|
| [10] | 299 | |
|---|
| [2718] | 300 | // use this format for short date display (date or strftime format) |
|---|
| [10] | 301 | $rcmail_config['date_short'] = 'D H:i'; |
|---|
| 302 | |
|---|
| [2718] | 303 | // use this format for detailed date/time formatting (date or strftime format) |
|---|
| [10] | 304 | $rcmail_config['date_long'] = 'd.m.Y H:i'; |
|---|
| 305 | |
|---|
| [2718] | 306 | // use this format for today's date display (date or strftime format) |
|---|
| [423] | 307 | $rcmail_config['date_today'] = 'H:i'; |
|---|
| 308 | |
|---|
| [261] | 309 | // store draft message is this mailbox |
|---|
| 310 | // leave blank if draft messages should not be stored |
|---|
| 311 | $rcmail_config['drafts_mbox'] = 'Drafts'; |
|---|
| 312 | |
|---|
| [272] | 313 | // store spam messages in this mailbox |
|---|
| 314 | $rcmail_config['junk_mbox'] = 'Junk'; |
|---|
| 315 | |
|---|
| [10] | 316 | // store sent message is this mailbox |
|---|
| 317 | // leave blank if sent messages should not be stored |
|---|
| 318 | $rcmail_config['sent_mbox'] = 'Sent'; |
|---|
| 319 | |
|---|
| 320 | // move messages to this folder when deleting them |
|---|
| 321 | // leave blank if they should be deleted directly |
|---|
| 322 | $rcmail_config['trash_mbox'] = 'Trash'; |
|---|
| 323 | |
|---|
| [292] | 324 | // display these folders separately in the mailbox list. |
|---|
| [1115] | 325 | // these folders will also be displayed with localized names |
|---|
| [10] | 326 | $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash'); |
|---|
| 327 | |
|---|
| [925] | 328 | // automatically create the above listed default folders on login |
|---|
| [3324] | 329 | $rcmail_config['create_default_folders'] = false; |
|---|
| [925] | 330 | |
|---|
| [267] | 331 | // protect the default folders from renames, deletes, and subscription changes |
|---|
| [3324] | 332 | $rcmail_config['protect_default_folders'] = true; |
|---|
| [267] | 333 | |
|---|
| [3324] | 334 | // if in your system 0 quota means no limit set this option to true |
|---|
| 335 | $rcmail_config['quota_zero_as_unlimited'] = false; |
|---|
| [1691] | 336 | |
|---|
| [1013] | 337 | // Behavior if a received message requests a message delivery notification (read receipt) |
|---|
| 338 | // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask) |
|---|
| [4042] | 339 | // 3 = send automatically if sender is in addressbook, otherwise ask the user |
|---|
| [4045] | 340 | // 4 = send automatically if sender is in addressbook, otherwise ignore |
|---|
| [1013] | 341 | $rcmail_config['mdn_requests'] = 0; |
|---|
| 342 | |
|---|
| [321] | 343 | // Make use of the built-in spell checker. It is based on GoogieSpell. |
|---|
| [905] | 344 | // Since Google only accepts connections over https your PHP installatation |
|---|
| 345 | // requires to be compiled with Open SSL support |
|---|
| [3324] | 346 | $rcmail_config['enable_spellcheck'] = true; |
|---|
| [249] | 347 | |
|---|
| [1649] | 348 | // Set the spell checking engine. 'googie' is the default. 'pspell' is also available, |
|---|
| 349 | // but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here. |
|---|
| 350 | $rcmail_config['spellcheck_engine'] = 'googie'; |
|---|
| 351 | |
|---|
| [321] | 352 | // For a locally installed Nox Spell Server, please specify the URI to call it. |
|---|
| 353 | // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 |
|---|
| 354 | // Leave empty to use the Google spell checking service, what means |
|---|
| 355 | // that the message content will be sent to Google in order to check spelling |
|---|
| 356 | $rcmail_config['spellcheck_uri'] = ''; |
|---|
| 357 | |
|---|
| 358 | // These languages can be selected for spell checking. |
|---|
| 359 | // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch'); |
|---|
| [2437] | 360 | // Leave empty for default set of available language. |
|---|
| [321] | 361 | $rcmail_config['spellcheck_languages'] = NULL; |
|---|
| 362 | |
|---|
| [3324] | 363 | // don't let users set pagesize to more than this value if set |
|---|
| 364 | $rcmail_config['max_pagesize'] = 200; |
|---|
| [62] | 365 | |
|---|
| [3324] | 366 | // Minimal value of user's 'keep_alive' setting (in seconds) |
|---|
| 367 | // Must be less than 'session_lifetime' |
|---|
| 368 | $rcmail_config['min_keep_alive'] = 60; |
|---|
| [2491] | 369 | |
|---|
| [3324] | 370 | // ---------------------------------- |
|---|
| 371 | // ADDRESSBOOK SETTINGS |
|---|
| 372 | // ---------------------------------- |
|---|
| [62] | 373 | |
|---|
| [1364] | 374 | // This indicates which type of address book to use. Possible choises: |
|---|
| 375 | // 'sql' (default) and 'ldap'. |
|---|
| 376 | // If set to 'ldap' then it will look at using the first writable LDAP |
|---|
| [1361] | 377 | // address book as the primary address book and it will not display the |
|---|
| 378 | // SQL address book in the 'Address Book' view. |
|---|
| [1364] | 379 | $rcmail_config['address_book_type'] = 'sql'; |
|---|
| [1361] | 380 | |
|---|
| 381 | // In order to enable public ldap search, configure an array like the Verisign |
|---|
| 382 | // example further below. if you would like to test, simply uncomment the example. |
|---|
| [2195] | 383 | $rcmail_config['ldap_public'] = array(); |
|---|
| 384 | |
|---|
| [1361] | 385 | // |
|---|
| 386 | // If you are going to use LDAP for individual address books, you will need to |
|---|
| 387 | // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it. |
|---|
| 388 | // |
|---|
| 389 | // The recommended directory structure for LDAP is to store all the address book entries |
|---|
| 390 | // under the users main entry, e.g.: |
|---|
| 391 | // |
|---|
| 392 | // o=root |
|---|
| 393 | // ou=people |
|---|
| 394 | // uid=user@domain |
|---|
| [2338] | 395 | // mail=contact@contactdomain |
|---|
| 396 | // |
|---|
| [1361] | 397 | // So the base_dn would be uid=%fu,ou=people,o=root |
|---|
| 398 | // The bind_dn would be the same as based_dn or some super user login. |
|---|
| [2338] | 399 | /* |
|---|
| [543] | 400 | * example config for Verisign directory |
|---|
| [111] | 401 | * |
|---|
| [2338] | 402 | $rcmail_config['ldap_public']['Verisign'] = array( |
|---|
| 403 | 'name' => 'Verisign.com', |
|---|
| [3701] | 404 | // Replacement variables supported in host names: |
|---|
| 405 | // %h - user's IMAP hostname |
|---|
| 406 | // %n - http hostname ($_SERVER['SERVER_NAME']) |
|---|
| 407 | // %d - domain (http hostname without the first part) |
|---|
| [3977] | 408 | // %z - IMAP domain (IMAP hostname without the first part) |
|---|
| [3701] | 409 | // For example %n = mail.domain.tld, %d = domain.tld |
|---|
| [2338] | 410 | 'hosts' => array('directory.verisign.com'), |
|---|
| 411 | 'port' => 389, |
|---|
| [4021] | 412 | 'use_tls' => false, |
|---|
| [2338] | 413 | 'user_specific' => false, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login. |
|---|
| 414 | // %fu - The full username provided, assumes the username is an email |
|---|
| 415 | // address, uses the username_domain value if not an email address. |
|---|
| 416 | // %u - The username prior to the '@'. |
|---|
| 417 | // %d - The domain name after the '@'. |
|---|
| [3773] | 418 | // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com" |
|---|
| [4021] | 419 | // %dn - DN found by ldap search when search_filter/search_base_dn are used |
|---|
| [2338] | 420 | 'base_dn' => '', |
|---|
| 421 | 'bind_dn' => '', |
|---|
| 422 | 'bind_pass' => '', |
|---|
| [4021] | 423 | // It's possible to bind for an individual address book |
|---|
| 424 | // The login name is used to search for the DN to bind with |
|---|
| 425 | 'search_base_dn' => '', |
|---|
| 426 | 'search_filter' => '', // e.g. '(&(objectClass=posixAccount)(uid=%u))' |
|---|
| 427 | |
|---|
| [2338] | 428 | 'writable' => false, // Indicates if we can write to the LDAP directory or not. |
|---|
| 429 | // If writable is true then these fields need to be populated: |
|---|
| 430 | // LDAP_Object_Classes, required_fields, LDAP_rdn |
|---|
| 431 | 'LDAP_Object_Classes' => array("top", "inetOrgPerson"), // To create a new contact these are the object classes to specify (or any other classes you wish to use). |
|---|
| 432 | 'required_fields' => array("cn", "sn", "mail"), // The required fields needed to build a new contact as required by the object classes (can include additional fields not required by the object classes). |
|---|
| 433 | 'LDAP_rdn' => 'mail', // The RDN field that is used for new entries, this field needs to be one of the search_fields, the base of base_dn is appended to the RDN to insert into the LDAP directory. |
|---|
| 434 | 'ldap_version' => 3, // using LDAPv3 |
|---|
| 435 | 'search_fields' => array('mail', 'cn'), // fields to search in |
|---|
| 436 | 'name_field' => 'cn', // this field represents the contact's name |
|---|
| 437 | 'email_field' => 'mail', // this field represents the contact's e-mail |
|---|
| 438 | 'surname_field' => 'sn', // this field represents the contact's last name |
|---|
| 439 | 'firstname_field' => 'gn', // this field represents the contact's first name |
|---|
| 440 | 'sort' => 'cn', // The field to sort the listing by. |
|---|
| 441 | 'scope' => 'sub', // search mode: sub|base|list |
|---|
| 442 | 'filter' => '', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act |
|---|
| [3907] | 443 | 'fuzzy_search' => true, // server allows wildcard search |
|---|
| [3520] | 444 | 'sizelimit' => '0', // Enables you to limit the count of entries fetched. Setting this to 0 means no limit. |
|---|
| 445 | 'timelimit' => '0', // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit. |
|---|
| 446 | ); |
|---|
| [2338] | 447 | */ |
|---|
| [85] | 448 | |
|---|
| [2081] | 449 | // An ordered array of the ids of the addressbooks that should be searched |
|---|
| 450 | // when populating address autocomplete fields server-side. ex: array('sql','Verisign'); |
|---|
| 451 | $rcmail_config['autocomplete_addressbooks'] = array('sql'); |
|---|
| 452 | |
|---|
| [3324] | 453 | // ---------------------------------- |
|---|
| 454 | // USER PREFERENCES |
|---|
| 455 | // ---------------------------------- |
|---|
| [388] | 456 | |
|---|
| [3327] | 457 | // Use this charset as fallback for message decoding |
|---|
| 458 | $rcmail_config['default_charset'] = 'ISO-8859-1'; |
|---|
| 459 | |
|---|
| [1542] | 460 | // skin name: folder from skins/ |
|---|
| 461 | $rcmail_config['skin'] = 'default'; |
|---|
| [1539] | 462 | |
|---|
| [10] | 463 | // show up to X items in list view |
|---|
| 464 | $rcmail_config['pagesize'] = 40; |
|---|
| 465 | |
|---|
| 466 | // use this timezone to display date/time |
|---|
| [1722] | 467 | $rcmail_config['timezone'] = 'auto'; |
|---|
| [10] | 468 | |
|---|
| [850] | 469 | // is daylight saving On? |
|---|
| [790] | 470 | $rcmail_config['dst_active'] = (bool)date('I'); |
|---|
| [171] | 471 | |
|---|
| [10] | 472 | // prefer displaying HTML messages |
|---|
| [3324] | 473 | $rcmail_config['prefer_html'] = true; |
|---|
| [10] | 474 | |
|---|
| [2115] | 475 | // display remote inline images |
|---|
| 476 | // 0 - Never, always ask |
|---|
| 477 | // 1 - Ask if sender is not in address book |
|---|
| 478 | // 2 - Always show inline images |
|---|
| 479 | $rcmail_config['show_images'] = 0; |
|---|
| [1525] | 480 | |
|---|
| [388] | 481 | // compose html formatted messages by default |
|---|
| [4054] | 482 | // 0 - never, 1 - always, 2 - on reply to HTML message only |
|---|
| 483 | $rcmail_config['htmleditor'] = 0; |
|---|
| [388] | 484 | |
|---|
| [10] | 485 | // show pretty dates as standard |
|---|
| [3324] | 486 | $rcmail_config['prettydate'] = true; |
|---|
| [10] | 487 | |
|---|
| [337] | 488 | // save compose message every 300 seconds (5min) |
|---|
| 489 | $rcmail_config['draft_autosave'] = 300; |
|---|
| [194] | 490 | |
|---|
| [388] | 491 | // default setting if preview pane is enabled |
|---|
| [3324] | 492 | $rcmail_config['preview_pane'] = false; |
|---|
| [388] | 493 | |
|---|
| [3479] | 494 | // Mark as read when viewed in preview pane (delay in seconds) |
|---|
| 495 | // Set to -1 if messages in preview pane should not be marked as read |
|---|
| 496 | $rcmail_config['preview_pane_mark_read'] = 0; |
|---|
| 497 | |
|---|
| [2003] | 498 | // focus new window if new message arrives |
|---|
| 499 | $rcmail_config['focus_on_new_message'] = true; |
|---|
| 500 | |
|---|
| [1282] | 501 | // Clear Trash on logout |
|---|
| [3324] | 502 | $rcmail_config['logout_purge'] = false; |
|---|
| [1282] | 503 | |
|---|
| 504 | // Compact INBOX on logout |
|---|
| [3324] | 505 | $rcmail_config['logout_expunge'] = false; |
|---|
| [1282] | 506 | |
|---|
| [1536] | 507 | // Display attached images below the message body |
|---|
| [3324] | 508 | $rcmail_config['inline_images'] = true; |
|---|
| [1424] | 509 | |
|---|
| [1897] | 510 | // Encoding of long/non-ascii attachment names: |
|---|
| 511 | // 0 - Full RFC 2231 compatible |
|---|
| 512 | // 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default) |
|---|
| 513 | // 2 - Full 2047 compatible |
|---|
| [2726] | 514 | $rcmail_config['mime_param_folding'] = 1; |
|---|
| [1897] | 515 | |
|---|
| [3324] | 516 | // Set true if deleted messages should not be displayed |
|---|
| [1932] | 517 | // This will make the application run slower |
|---|
| [3324] | 518 | $rcmail_config['skip_deleted'] = false; |
|---|
| [1932] | 519 | |
|---|
| 520 | // Set true to Mark deleted messages as read as well as deleted |
|---|
| 521 | // False means that a message's read status is not affected by marking it as deleted |
|---|
| [3324] | 522 | $rcmail_config['read_when_deleted'] = true; |
|---|
| [1932] | 523 | |
|---|
| [3324] | 524 | // Set to true to newer delete messages immediately |
|---|
| [2616] | 525 | // Use 'Purge' to remove messages marked as deleted |
|---|
| [3324] | 526 | $rcmail_config['flag_for_deletion'] = false; |
|---|
| [1932] | 527 | |
|---|
| [2013] | 528 | // Default interval for keep-alive/check-recent requests (in seconds) |
|---|
| 529 | // Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime' |
|---|
| 530 | $rcmail_config['keep_alive'] = 60; |
|---|
| 531 | |
|---|
| [2099] | 532 | // If true all folders will be checked for recent messages |
|---|
| [3324] | 533 | $rcmail_config['check_all_folders'] = false; |
|---|
| [2099] | 534 | |
|---|
| [2822] | 535 | // If true, after message delete/move, the next message will be displayed |
|---|
| [3324] | 536 | $rcmail_config['display_next'] = false; |
|---|
| [2822] | 537 | |
|---|
| [3367] | 538 | // 0 - Do not expand threads |
|---|
| 539 | // 1 - Expand all threads automatically |
|---|
| 540 | // 2 - Expand only threads with unread messages |
|---|
| 541 | $rcmail_config['autoexpand_threads'] = 0; |
|---|
| [2983] | 542 | |
|---|
| [3087] | 543 | // When replying place cursor above original message (top posting) |
|---|
| [3324] | 544 | $rcmail_config['top_posting'] = false; |
|---|
| [3087] | 545 | |
|---|
| [3089] | 546 | // When replying strip original signature from message |
|---|
| [3324] | 547 | $rcmail_config['strip_existing_sig'] = true; |
|---|
| [3089] | 548 | |
|---|
| [3087] | 549 | // Show signature: |
|---|
| [3089] | 550 | // 0 - Never |
|---|
| 551 | // 1 - Always |
|---|
| [3087] | 552 | // 2 - New messages only |
|---|
| [3089] | 553 | // 3 - Forwards and Replies only |
|---|
| 554 | $rcmail_config['show_sig'] = 1; |
|---|
| [3087] | 555 | |
|---|
| [3089] | 556 | // When replying or forwarding place sender's signature above existing message |
|---|
| [3324] | 557 | $rcmail_config['sig_above'] = false; |
|---|
| [3089] | 558 | |
|---|
| [3301] | 559 | // Use MIME encoding (quoted-printable) for 8bit characters in message body |
|---|
| [3324] | 560 | $rcmail_config['force_7bit'] = false; |
|---|
| [3301] | 561 | |
|---|
| [3312] | 562 | // Defaults of the search field configuration. |
|---|
| 563 | // The array can contain a per-folder list of header fields which should be considered when searching |
|---|
| 564 | // The entry with key '*' stands for all folders which do not have a specific list set. |
|---|
| 565 | // Please note that folder names should to be in sync with $rcmail_config['default_imap_folders'] |
|---|
| 566 | $rcmail_config['search_mods'] = null; // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1)); |
|---|
| 567 | |
|---|
| [3326] | 568 | // 'Delete always' |
|---|
| 569 | // This setting reflects if mail should be always deleted |
|---|
| 570 | // when moving to Trash fails. This is necessary in some setups |
|---|
| 571 | // when user is over quota and Trash is included in the quota. |
|---|
| 572 | $rcmail_config['delete_always'] = false; |
|---|
| 573 | |
|---|
| [10] | 574 | // end of config file |
|---|
| [3780] | 575 | |
|---|