vars.inc.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. error_reporting(E_ERROR);
  3. //error_reporting(E_ALL);
  4. /*
  5. PLEASE USE THE FILE "vars.local.inc.php" TO OVERWRITE SETTINGS AND MAKE THEM PERSISTENT!
  6. This file will be reset on upgrades.
  7. */
  8. // SQL database connection variables
  9. $database_type = 'mysql';
  10. $database_host = 'mysql';
  11. $database_user = getenv('DBUSER');
  12. $database_pass = getenv('DBPASS');
  13. $database_name = getenv('DBNAME');
  14. // Other variables
  15. $mailcow_hostname = getenv('MAILCOW_HOSTNAME');
  16. // Autodiscover settings
  17. // ===
  18. // Auto-detect HTTPS port =>
  19. $https_port = strpos($_SERVER['HTTP_HOST'], ':');
  20. if ($https_port === FALSE) {
  21. $https_port = 443;
  22. } else {
  23. $https_port = substr($_SERVER['HTTP_HOST'], $https_port+1);
  24. }
  25. // Alternatively select port here =>
  26. //$https_port = 1234;
  27. // Other settings =>
  28. $autodiscover_config = array(
  29. // General autodiscover service type: "activesync" or "imap"
  30. // emClient uses autodiscover, but does not support ActiveSync. mailcow excludes emClient from ActiveSync.
  31. 'autodiscoverType' => 'activesync',
  32. // If autodiscoverType => activesync, also use ActiveSync (EAS) for Outlook desktop clients (>= Outlook 2013 on Windows)
  33. // Outlook for Mac does not support ActiveSync
  34. 'useEASforOutlook' => 'yes',
  35. // Please don't use STARTTLS-enabled service ports in the "port" variable.
  36. // The autodiscover service will always point to SMTPS and IMAPS (TLS-wrapped services).
  37. // The autoconfig service will additionally announce the STARTTLS-enabled ports, specified in the "tlsport" variable.
  38. 'imap' => array(
  39. 'server' => $mailcow_hostname,
  40. 'port' => array_pop(explode(':', getenv('IMAPS_PORT'))),
  41. 'tlsport' => array_pop(explode(':', getenv('IMAP_PORT'))),
  42. ),
  43. 'pop3' => array(
  44. 'server' => $mailcow_hostname,
  45. 'port' => array_pop(explode(':', getenv('POPS_PORT'))),
  46. 'tlsport' => array_pop(explode(':', getenv('POP_PORT'))),
  47. ),
  48. 'smtp' => array(
  49. 'server' => $mailcow_hostname,
  50. 'port' => array_pop(explode(':', getenv('SMTPS_PORT'))),
  51. 'tlsport' => array_pop(explode(':', getenv('SUBMISSION_PORT'))),
  52. ),
  53. 'activesync' => array(
  54. 'url' => 'https://'.$mailcow_hostname.($https_port == 443 ? '' : ':'.$https_port).'/Microsoft-Server-ActiveSync',
  55. ),
  56. 'caldav' => array(
  57. 'server' => $mailcow_hostname,
  58. 'port' => $https_port,
  59. ),
  60. 'carddav' => array(
  61. 'server' => $mailcow_hostname,
  62. 'port' => $https_port,
  63. ),
  64. );
  65. unset($https_port);
  66. // Change default language, "de", "en", "es", "nl", "pt", "ru"
  67. $DEFAULT_LANG = 'en';
  68. // Available languages
  69. $AVAILABLE_LANGUAGES = array('de', 'en', 'es', 'nl', 'pl', 'pt', 'ru', 'it');
  70. // Change theme (default: lumen)
  71. // Needs to be one of those: cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone,
  72. // simplex, slate, spacelab, superhero, united, yeti
  73. // See https://bootswatch.com/
  74. // WARNING: Only lumen is loaded locally. Enabling any other theme, will download external sources.
  75. $DEFAULT_THEME = 'lumen';
  76. // Password complexity as regular expression
  77. $PASSWD_REGEP = '.{4,}';
  78. // Show DKIM private keys - false by default
  79. $SHOW_DKIM_PRIV_KEYS = false;
  80. // mailcow Apps - buttons on login screen
  81. $MAILCOW_APPS = array(
  82. array(
  83. 'name' => 'SOGo',
  84. 'link' => '/SOGo/',
  85. 'description' => 'SOGo is a web-based client for email, address book and calendar.'
  86. ),
  87. // array(
  88. // 'name' => 'Roundcube',
  89. // 'link' => '/rc/',
  90. // 'description' => 'Roundcube is a web-based email client.',
  91. // ),
  92. );
  93. // Rows until pagination begins
  94. $PAGINATION_SIZE = 10;
  95. // Rows until pagination begins (log table)
  96. $LOG_PAGINATION_SIZE = 30;
  97. // Session lifetime in seconds
  98. $SESSION_LIFETIME = 3600;
  99. // Label for OTP devices
  100. $OTP_LABEL = "mailcow UI";
  101. // Default "to" address in relay test tool
  102. $RELAY_TO = "null@hosted.mailcow.de";