2016-12-09 20:39:02 +01:00
|
|
|
<?php
|
2017-05-13 23:07:48 +02:00
|
|
|
error_reporting(E_ERROR);
|
|
|
|
//error_reporting(E_ALL);
|
2016-12-09 20:39:02 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
PLEASE USE THE FILE "vars.local.inc.php" TO OVERWRITE SETTINGS AND MAKE THEM PERSISTENT!
|
|
|
|
This file will be reset on upgrades.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// SQL database connection variables
|
2017-05-16 19:20:58 +02:00
|
|
|
$database_type = 'mysql';
|
|
|
|
$database_host = 'mysql';
|
2016-12-14 21:10:11 +01:00
|
|
|
$database_user = getenv('DBUSER');
|
|
|
|
$database_pass = getenv('DBPASS');
|
|
|
|
$database_name = getenv('DBNAME');
|
2016-12-21 12:16:05 +01:00
|
|
|
|
|
|
|
// Other variables
|
|
|
|
$mailcow_hostname = getenv('MAILCOW_HOSTNAME');
|
2016-12-09 20:39:02 +01:00
|
|
|
|
2017-06-25 18:09:42 +02:00
|
|
|
// Autodiscover settings
|
2017-07-24 12:35:04 +02:00
|
|
|
// ===
|
|
|
|
// Auto-detect HTTPS port =>
|
2017-07-10 20:52:51 +02:00
|
|
|
$https_port = strpos($_SERVER['HTTP_HOST'], ':');
|
|
|
|
if ($https_port === FALSE) {
|
|
|
|
$https_port = 443;
|
|
|
|
} else {
|
|
|
|
$https_port = substr($_SERVER['HTTP_HOST'], $https_port+1);
|
|
|
|
}
|
2017-07-24 12:35:04 +02:00
|
|
|
// Alternatively select port here =>
|
|
|
|
//$https_port = 1234;
|
|
|
|
// Other settings =>
|
2017-06-25 18:09:42 +02:00
|
|
|
$autodiscover_config = array(
|
|
|
|
// Enable the autodiscover service for Outlook desktop clients
|
|
|
|
'useEASforOutlook' => 'yes',
|
|
|
|
// General autodiscover service type: "activesync" or "imap"
|
|
|
|
'autodiscoverType' => 'activesync',
|
2017-07-10 20:52:51 +02:00
|
|
|
// Please don't use STARTTLS-enabled service ports in the "port" variable.
|
2017-06-28 23:22:51 +02:00
|
|
|
// The autodiscover service will always point to SMTPS and IMAPS (TLS-wrapped services).
|
2017-07-10 20:52:51 +02:00
|
|
|
// The autoconfig service will additionally announce the STARTTLS-enabled ports, specified in the "tlsport" variable.
|
2017-06-25 18:09:42 +02:00
|
|
|
'imap' => array(
|
|
|
|
'server' => $mailcow_hostname,
|
2017-07-10 20:52:51 +02:00
|
|
|
'port' => array_pop(explode(':', getenv('IMAPS_PORT'))),
|
|
|
|
'tlsport' => array_pop(explode(':', getenv('IMAP_PORT'))),
|
|
|
|
),
|
|
|
|
'pop3' => array(
|
|
|
|
'server' => $mailcow_hostname,
|
|
|
|
'port' => array_pop(explode(':', getenv('POPS_PORT'))),
|
|
|
|
'tlsport' => array_pop(explode(':', getenv('POP_PORT'))),
|
2017-06-25 18:09:42 +02:00
|
|
|
),
|
|
|
|
'smtp' => array(
|
|
|
|
'server' => $mailcow_hostname,
|
2017-07-10 20:52:51 +02:00
|
|
|
'port' => array_pop(explode(':', getenv('SMTPS_PORT'))),
|
|
|
|
'tlsport' => array_pop(explode(':', getenv('SUBMISSION_PORT'))),
|
2017-06-25 18:09:42 +02:00
|
|
|
),
|
|
|
|
'activesync' => array(
|
2017-07-10 20:52:51 +02:00
|
|
|
'url' => 'https://'.$mailcow_hostname.($https_port == 443 ? '' : ':'.$https_port).'/Microsoft-Server-ActiveSync',
|
2017-06-28 23:22:51 +02:00
|
|
|
),
|
|
|
|
'caldav' => array(
|
2017-07-10 20:52:51 +02:00
|
|
|
'server' => $mailcow_hostname,
|
|
|
|
'port' => $https_port,
|
2017-06-28 23:22:51 +02:00
|
|
|
),
|
|
|
|
'carddav' => array(
|
2017-07-10 20:52:51 +02:00
|
|
|
'server' => $mailcow_hostname,
|
|
|
|
'port' => $https_port,
|
|
|
|
),
|
2017-06-25 18:09:42 +02:00
|
|
|
);
|
2017-07-10 20:52:51 +02:00
|
|
|
unset($https_port);
|
2017-06-25 18:09:42 +02:00
|
|
|
|
2017-05-16 18:11:58 +02:00
|
|
|
// Change default language, "de", "en", "es", "nl", "pt", "ru"
|
2017-05-16 19:20:58 +02:00
|
|
|
$DEFAULT_LANG = 'en';
|
2016-12-09 20:39:02 +01:00
|
|
|
|
2017-05-16 18:11:58 +02:00
|
|
|
// Available languages
|
2017-05-19 12:34:29 +02:00
|
|
|
$AVAILABLE_LANGUAGES = array('de', 'en', 'es', 'nl', 'pt', 'ru', 'it');
|
2017-05-16 18:11:58 +02:00
|
|
|
|
2016-12-09 20:39:02 +01:00
|
|
|
// Change theme (default: lumen)
|
|
|
|
// Needs to be one of those: cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone,
|
|
|
|
// simplex, slate, spacelab, superhero, united, yeti
|
|
|
|
// See https://bootswatch.com/
|
2017-05-29 21:51:06 +02:00
|
|
|
// WARNING: Only lumen is loaded locally. Enabling any other theme, will download external sources.
|
2017-05-16 19:20:58 +02:00
|
|
|
$DEFAULT_THEME = 'lumen';
|
2017-01-25 19:07:30 +01:00
|
|
|
|
2017-02-21 22:27:11 +01:00
|
|
|
// Password complexity as regular expression
|
|
|
|
$PASSWD_REGEP = '.{4,}';
|
2017-03-21 12:22:13 +01:00
|
|
|
|
|
|
|
// mailcow Apps - buttons on login screen
|
|
|
|
$MAILCOW_APPS = array(
|
|
|
|
array(
|
|
|
|
'name' => 'SOGo',
|
2017-06-11 02:05:10 +02:00
|
|
|
'link' => '/SOGo/',
|
2017-06-12 09:38:36 +02:00
|
|
|
'description' => 'SOGo is a web-based client for email, address book and calendar.'
|
2017-03-21 12:22:13 +01:00
|
|
|
),
|
|
|
|
// array(
|
|
|
|
// 'name' => 'Roundcube',
|
2017-06-11 02:05:10 +02:00
|
|
|
// 'link' => '/rc/',
|
2017-06-12 09:38:36 +02:00
|
|
|
// 'description' => 'Roundcube is a web-based email client.',
|
2017-03-21 12:22:13 +01:00
|
|
|
// ),
|
|
|
|
);
|
|
|
|
|
2017-03-22 10:46:24 +01:00
|
|
|
// Rows until pagination begins
|
|
|
|
$PAGINATION_SIZE = 10;
|
|
|
|
|
2017-05-29 21:51:06 +02:00
|
|
|
// Rows until pagination begins (log table)
|
|
|
|
$LOG_PAGINATION_SIZE = 30;
|
|
|
|
|
2017-05-07 13:38:31 +02:00
|
|
|
// Session lifetime in seconds
|
|
|
|
$SESSION_LIFETIME = 3600;
|
2017-05-26 23:02:04 +02:00
|
|
|
|
|
|
|
// Label for OTP devices
|
2017-06-11 02:05:10 +02:00
|
|
|
$OTP_LABEL = "mailcow UI";
|
2017-07-26 23:10:18 +02:00
|
|
|
|
|
|
|
// Default "to" address in relay test tool
|
|
|
|
$RELAY_TO = "null@hosted.mailcow.de";
|