main.inc.php 3.6 KB

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