Autodiscover: Strip bind addresses off of port environment variables

master
Michael Kuron 2017-07-04 19:58:30 +02:00
parent 96ed94dedd
commit b88190988e
1 changed files with 6 additions and 6 deletions

View File

@ -34,18 +34,18 @@ $autodiscover_config = array(
// The autoconfig service will additionally announce the STARTTLS-enabled ports, specified in the "tlsport" variable. // The autoconfig service will additionally announce the STARTTLS-enabled ports, specified in the "tlsport" variable.
'imap' => array( 'imap' => array(
'server' => $mailcow_hostname, 'server' => $mailcow_hostname,
'port' => getenv('IMAPS_PORT'), 'port' => array_pop(explode(':', getenv('IMAPS_PORT'))),
'tlsport' => getenv('IMAP_PORT'), 'tlsport' => array_pop(explode(':', getenv('IMAP_PORT'))),
), ),
'pop3' => array( 'pop3' => array(
'server' => $mailcow_hostname, 'server' => $mailcow_hostname,
'port' => getenv('POPS_PORT'), 'port' => array_pop(explode(':', getenv('POPS_PORT'))),
'tlsport' => getenv('POP_PORT'), 'tlsport' => array_pop(explode(':', getenv('POP_PORT'))),
), ),
'smtp' => array( 'smtp' => array(
'server' => $mailcow_hostname, 'server' => $mailcow_hostname,
'port' => getenv('SMTPS_PORT'), 'port' => array_pop(explode(':', getenv('SMTPS_PORT'))),
'tlsport' => getenv('SUBMISSION_PORT'), 'tlsport' => array_pop(explode(':', getenv('SUBMISSION_PORT'))),
), ),
'activesync' => array( 'activesync' => array(
'url' => 'https://'.$mailcow_hostname.($https_port == 443 ? '' : ':'.$https_port).'/Microsoft-Server-ActiveSync', 'url' => 'https://'.$mailcow_hostname.($https_port == 443 ? '' : ':'.$https_port).'/Microsoft-Server-ActiveSync',