Update autoconfig.php
This commit is contained in:
parent
27c169dbe1
commit
1b719a8668
@ -17,7 +17,8 @@ $domain_port = strpos($_SERVER['HTTP_HOST'], ':');
|
|||||||
if ($domain_port === FALSE) {
|
if ($domain_port === FALSE) {
|
||||||
$domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1);
|
$domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1);
|
||||||
$port = 443;
|
$port = 443;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1, $domain_port-$domain_dot-1);
|
$domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1, $domain_port-$domain_dot-1);
|
||||||
$port = substr($_SERVER['HTTP_HOST'], $domain_port+1);
|
$port = substr($_SERVER['HTTP_HOST'], $domain_port+1);
|
||||||
}
|
}
|
||||||
@ -26,21 +27,21 @@ header('Content-Type: application/xml');
|
|||||||
?>
|
?>
|
||||||
<?= '<?xml version="1.0"?>'; ?>
|
<?= '<?xml version="1.0"?>'; ?>
|
||||||
<clientConfig version="1.1">
|
<clientConfig version="1.1">
|
||||||
<emailProvider id="<?= $mailcow_hostname; ?>">
|
<emailProvider id="<?=$mailcow_hostname; ?>">
|
||||||
<domain>%EMAILDOMAIN%</domain>
|
<domain>%EMAILDOMAIN%</domain>
|
||||||
<displayName>A mailcow mail server</displayName>
|
<displayName>A mailcow mail server</displayName>
|
||||||
<displayShortName>mail server</displayShortName>
|
<displayShortName>mail server</displayShortName>
|
||||||
|
|
||||||
<incomingServer type="imap">
|
<incomingServer type="imap">
|
||||||
<hostname><?= $configuration['imap']['server']; ?></hostname>
|
<hostname><?=$configuration['imap']['server']; ?></hostname>
|
||||||
<port><?= $configuration['imap']['port']; ?></port>
|
<port><?=$configuration['imap']['port']; ?></port>
|
||||||
<socketType>SSL</socketType>
|
<socketType>SSL</socketType>
|
||||||
<username>%EMAILADDRESS%</username>
|
<username>%EMAILADDRESS%</username>
|
||||||
<authentication>password-cleartext</authentication>
|
<authentication>password-cleartext</authentication>
|
||||||
</incomingServer>
|
</incomingServer>
|
||||||
<incomingServer type="imap">
|
<incomingServer type="imap">
|
||||||
<hostname><?= $configuration['imap']['server']; ?></hostname>
|
<hostname><?=$configuration['imap']['server']; ?></hostname>
|
||||||
<port><?= $configuration['imap']['tlsport']; ?></port>
|
<port><?=$configuration['imap']['tlsport']; ?></port>
|
||||||
<socketType>STARTTLS</socketType>
|
<socketType>STARTTLS</socketType>
|
||||||
<username>%EMAILADDRESS%</username>
|
<username>%EMAILADDRESS%</username>
|
||||||
<authentication>password-cleartext</authentication>
|
<authentication>password-cleartext</authentication>
|
||||||
@ -50,8 +51,8 @@ header('Content-Type: application/xml');
|
|||||||
$records = dns_get_record('_pop3s._tcp.' . $domain, DNS_SRV); // check if POP3 is announced as "not provided" via SRV record
|
$records = dns_get_record('_pop3s._tcp.' . $domain, DNS_SRV); // check if POP3 is announced as "not provided" via SRV record
|
||||||
if (count($records) == 0 || $records[0]['target'] != '') { ?>
|
if (count($records) == 0 || $records[0]['target'] != '') { ?>
|
||||||
<incomingServer type="pop3">
|
<incomingServer type="pop3">
|
||||||
<hostname><?= $configuration['pop3']['server']; ?></hostname>
|
<hostname><?=$configuration['pop3']['server']; ?></hostname>
|
||||||
<port><?= $configuration['pop3']['port']; ?></port>
|
<port><?=$configuration['pop3']['port']; ?></port>
|
||||||
<socketType>SSL</socketType>
|
<socketType>SSL</socketType>
|
||||||
<username>%EMAILADDRESS%</username>
|
<username>%EMAILADDRESS%</username>
|
||||||
<authentication>password-cleartext</authentication>
|
<authentication>password-cleartext</authentication>
|
||||||
@ -61,8 +62,8 @@ if (count($records) == 0 || $records[0]['target'] != '') { ?>
|
|||||||
$records = dns_get_record('_pop3._tcp.' . $domain, DNS_SRV); // check if POP3 is announced as "not provided" via SRV record
|
$records = dns_get_record('_pop3._tcp.' . $domain, DNS_SRV); // check if POP3 is announced as "not provided" via SRV record
|
||||||
if (count($records) == 0 || $records[0]['target'] != '') { ?>
|
if (count($records) == 0 || $records[0]['target'] != '') { ?>
|
||||||
<incomingServer type="pop3">
|
<incomingServer type="pop3">
|
||||||
<hostname><?= $configuration['pop3']['server']; ?></hostname>
|
<hostname><?=$configuration['pop3']['server']; ?></hostname>
|
||||||
<port><?= $configuration['pop3']['tlsport']; ?></port>
|
<port><?=$configuration['pop3']['tlsport']; ?></port>
|
||||||
<socketType>STARTTLS</socketType>
|
<socketType>STARTTLS</socketType>
|
||||||
<username>%EMAILADDRESS%</username>
|
<username>%EMAILADDRESS%</username>
|
||||||
<authentication>password-cleartext</authentication>
|
<authentication>password-cleartext</authentication>
|
||||||
@ -70,21 +71,21 @@ if (count($records) == 0 || $records[0]['target'] != '') { ?>
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<outgoingServer type="smtp">
|
<outgoingServer type="smtp">
|
||||||
<hostname><?= $configuration['smtp']['server']; ?></hostname>
|
<hostname><?=$configuration['smtp']['server']; ?></hostname>
|
||||||
<port><?= $configuration['smtp']['port']; ?></port>
|
<port><?=$configuration['smtp']['port']; ?></port>
|
||||||
<socketType>SSL</socketType>
|
<socketType>SSL</socketType>
|
||||||
<username>%EMAILADDRESS%</username>
|
<username>%EMAILADDRESS%</username>
|
||||||
<authentication>password-cleartext</authentication>
|
<authentication>password-cleartext</authentication>
|
||||||
</outgoingServer>
|
</outgoingServer>
|
||||||
<outgoingServer type="smtp">
|
<outgoingServer type="smtp">
|
||||||
<hostname><?= $configuration['smtp']['server']; ?></hostname>
|
<hostname><?=$configuration['smtp']['server']; ?></hostname>
|
||||||
<port><?= $configuration['smtp']['tlsport']; ?></port>
|
<port><?=$configuration['smtp']['tlsport']; ?></port>
|
||||||
<socketType>STARTTLS</socketType>
|
<socketType>STARTTLS</socketType>
|
||||||
<username>%EMAILADDRESS%</username>
|
<username>%EMAILADDRESS%</username>
|
||||||
<authentication>password-cleartext</authentication>
|
<authentication>password-cleartext</authentication>
|
||||||
</outgoingServer>
|
</outgoingServer>
|
||||||
|
|
||||||
<enable visiturl="https://<?= $mailcow_hostname; ?><?php if ($port != 443) echo ':'.$port; ?>/admin.php">
|
<enable visiturl="https://<?=$mailcow_hostname; ?><?php if ($port != 443) echo ':'.$port; ?>/admin.php">
|
||||||
<instruction>If you didn't change the password given to you by the administrator or if you didn't change it in a long time, please consider doing that now.</instruction>
|
<instruction>If you didn't change the password given to you by the administrator or if you didn't change it in a long time, please consider doing that now.</instruction>
|
||||||
<instruction lang="de">Sollten Sie das Ihnen durch den Administrator vergebene Passwort noch nicht geändert haben, empfehlen wir dies nun zu tun. Auch ein altes Passwort sollte aus Sicherheitsgründen geändert werden.</instruction>
|
<instruction lang="de">Sollten Sie das Ihnen durch den Administrator vergebene Passwort noch nicht geändert haben, empfehlen wir dies nun zu tun. Auch ein altes Passwort sollte aus Sicherheitsgründen geändert werden.</instruction>
|
||||||
</enable>
|
</enable>
|
||||||
@ -92,6 +93,6 @@ if (count($records) == 0 || $records[0]['target'] != '') { ?>
|
|||||||
</emailProvider>
|
</emailProvider>
|
||||||
|
|
||||||
<webMail>
|
<webMail>
|
||||||
<loginPage url="https://<?= $mailcow_hostname; ?><?php if ($port != 443) echo ':'.$port; ?>/SOGo/" />
|
<loginPage url="https://<?=$mailcow_hostname; ?><?php if ($port != 443) echo ':'.$port; ?>/SOGo/" />
|
||||||
</webMail>
|
</webMail>
|
||||||
</clientConfig>
|
</clientConfig>
|
||||||
|
Loading…
Reference in New Issue
Block a user