main.inc.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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['default_host'] = 'ssl://localhost';
  28. // TCP port used for IMAP connections
  29. $config['default_port'] = 993;
  30. // IMAP socket context options
  31. // See http://php.net/manual/en/context.ssl.php
  32. // The example below enables server certificate validation
  33. //$config['imap_conn_options'] = array(
  34. // 'ssl' => array(
  35. // 'verify_peer' => true,
  36. // 'verify_depth' => 3,
  37. // 'cafile' => '/etc/openssl/certs/ca.crt',
  38. // ),
  39. // );
  40. // Note: These can be also specified as an array of options indexed by hostname
  41. $config['imap_conn_options'] = array (
  42. 'ssl' =>
  43. array (
  44. 'verify_peer' => false,
  45. 'verify_peer_name' => false,
  46. 'verify_depth' => 3,
  47. 'cafile' => '/etc/ssl/certs/ca-certificates.crt',
  48. ),
  49. );
  50. // SMTP socket context options
  51. // See http://php.net/manual/en/context.ssl.php
  52. // The example below enables server certificate validation, and
  53. // requires 'smtp_timeout' to be non zero.
  54. // $config['smtp_conn_options'] = array(
  55. // 'ssl' => array(
  56. // 'verify_peer' => true,
  57. // 'verify_depth' => 3,
  58. // 'cafile' => '/etc/openssl/certs/ca.crt',
  59. // ),
  60. // );
  61. // Note: These can be also specified as an array of options indexed by hostname
  62. $config['smtp_conn_options'] = array (
  63. 'ssl' =>
  64. array (
  65. 'verify_peer' => false,
  66. 'verify_peer_name' => false,
  67. 'verify_depth' => 3,
  68. 'cafile' => '/etc/ssl/certs/ca-certificates.crt',
  69. ),
  70. );
  71. // provide an URL where a user can get support for this Roundcube installation
  72. // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
  73. $config['support_url'] = '';
  74. // use this folder to store log files
  75. // must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
  76. // This is used by the 'file' log driver.
  77. $config['log_dir'] = '/var/log/roundcube/';
  78. // This key is used for encrypting purposes, like storing of imap password
  79. // in the session. For historical reasons it's called DES_key, but it's used
  80. // with any configured cipher_method (see below).
  81. // For the default cipher_method a required key length is 24 characters.
  82. $config['des_key'] = '%des_key%';
  83. // Maximum number of recipients per message (including To, Cc, Bcc).
  84. // Default: 0 (no limit)
  85. $config['max_recipients'] = 100;
  86. // List of active plugins (in plugins/ directory)
  87. $config['plugins'] = array('password', 'newmail_notifier', 'zipdownload', 'archive');
  88. $config['default_user'] = '%u';
  89. $config['default_pass'] = '%p';
  90. $config['smtp_host'] = 'ssl://localhost';
  91. // Log session authentication errors to <log_dir>/session or to syslog
  92. $config['log_session'] = true;
  93. ?>