main.inc.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. /* Local configuration for Roundcube Webmail */
  3. //rewrite below this line
  4. $config['db_dsnw'] = 'mysql://roundcube:%password%@localhost/roundcube';
  5. // Log sent messages to <log_dir>/sendmail or to syslog
  6. $config['smtp_log'] = false;
  7. // Log IMAP conversation to <log_dir>/imap or to syslog
  8. $config['imap_debug'] = true;
  9. // Log SMTP conversation to <log_dir>/smtp.log or to syslog
  10. $config['smtp_debug'] = true;
  11. // ----------------------------------
  12. // IMAP
  13. // ----------------------------------
  14. // The IMAP host chosen to perform the log-in.
  15. // Leave blank to show a textbox at login, give a list of hosts
  16. // to display a pulldown menu or set one host as string.
  17. // Enter hostname with prefix ssl:// to use Implicit TLS, or use
  18. // prefix tls:// to use STARTTLS.
  19. // Supported replacement variables:
  20. // %n - hostname ($_SERVER['SERVER_NAME'])
  21. // %t - hostname without the first part
  22. // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
  23. // %s - domain name after the '@' from e-mail address provided at login screen
  24. // For example %n = mail.domain.tld, %t = domain.tld
  25. // WARNING: After hostname change update of mail_host column in users table is
  26. // required to match old user data records with the new host.
  27. $config['imap_host'] = 'localhost:143';
  28. // IMAP socket context options
  29. // See http://php.net/manual/en/context.ssl.php
  30. // The example below enables server certificate validation
  31. //$config['imap_conn_options'] = array(
  32. // 'ssl' => array(
  33. // 'verify_peer' => true,
  34. // 'verify_depth' => 3,
  35. // 'cafile' => '/etc/openssl/certs/ca.crt',
  36. // ),
  37. // );
  38. // Note: These can be also specified as an array of options indexed by hostname
  39. $config['imap_conn_options'] = array (
  40. 'ssl' =>
  41. array (
  42. 'verify_peer' => false,
  43. 'verify_peer_name' => false,
  44. 'verify_depth' => 3,
  45. 'cafile' => '/etc/ssl/certs/ca-certificates.crt',
  46. ),
  47. );
  48. // SMTP socket context options
  49. // See http://php.net/manual/en/context.ssl.php
  50. // The example below enables server certificate validation, and
  51. // requires 'smtp_timeout' to be non zero.
  52. // $config['smtp_conn_options'] = array(
  53. // 'ssl' => array(
  54. // 'verify_peer' => true,
  55. // 'verify_depth' => 3,
  56. // 'cafile' => '/etc/openssl/certs/ca.crt',
  57. // ),
  58. // );
  59. // Note: These can be also specified as an array of options indexed by hostname
  60. $config['smtp_conn_options'] = array (
  61. 'ssl' =>
  62. array (
  63. 'verify_peer' => false,
  64. 'verify_peer_name' => false,
  65. 'verify_depth' => 3,
  66. 'cafile' => '/etc/ssl/certs/ca-certificates.crt',
  67. ),
  68. );
  69. // provide an URL where a user can get support for this Roundcube installation
  70. // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
  71. $config['support_url'] = '';
  72. // use this folder to store log files
  73. // must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
  74. // This is used by the 'file' log driver.
  75. $config['log_dir'] = '/var/log/roundcube/';
  76. // This key is used for encrypting purposes, like storing of imap password
  77. // in the session. For historical reasons it's called DES_key, but it's used
  78. // with any configured cipher_method (see below).
  79. // For the default cipher_method a required key length is 24 characters.
  80. $config['des_key'] = '%des_key%';
  81. // Maximum number of recipients per message (including To, Cc, Bcc).
  82. // Default: 0 (no limit)
  83. $config['max_recipients'] = 100;
  84. // List of active plugins (in plugins/ directory)
  85. $config['plugins'] = array('password', 'newmail_notifier', 'zipdownload', 'archive');
  86. $config['default_user'] = '%u';
  87. $config['default_pass'] = '%p';
  88. $config['smtp_host'] = 'localhost:587';
  89. // Log session authentication errors to <log_dir>/session or to syslog
  90. $config['log_session'] = true;