From 1b719a8668c85a59c75dc759d509673fb32c19a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Mon, 24 Jul 2017 12:37:02 +0200 Subject: [PATCH] Update autoconfig.php --- data/web/autoconfig.php | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/data/web/autoconfig.php b/data/web/autoconfig.php index 59f07907..c905c325 100644 --- a/data/web/autoconfig.php +++ b/data/web/autoconfig.php @@ -17,7 +17,8 @@ $domain_port = strpos($_SERVER['HTTP_HOST'], ':'); if ($domain_port === FALSE) { $domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1); $port = 443; -} else { +} +else { $domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1, $domain_port-$domain_dot-1); $port = substr($_SERVER['HTTP_HOST'], $domain_port+1); } @@ -26,21 +27,21 @@ header('Content-Type: application/xml'); ?> '; ?> - + %EMAILDOMAIN% A mailcow mail server mail server - - + + SSL %EMAILADDRESS% password-cleartext - - + + STARTTLS %EMAILADDRESS% password-cleartext @@ -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 if (count($records) == 0 || $records[0]['target'] != '') { ?> - - + + SSL %EMAILADDRESS% password-cleartext @@ -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 if (count($records) == 0 || $records[0]['target'] != '') { ?> - - + + STARTTLS %EMAILADDRESS% password-cleartext @@ -70,21 +71,21 @@ if (count($records) == 0 || $records[0]['target'] != '') { ?> - - + + SSL %EMAILADDRESS% password-cleartext - - + + STARTTLS %EMAILADDRESS% password-cleartext - + 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. 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. @@ -92,6 +93,6 @@ if (count($records) == 0 || $records[0]['target'] != '') { ?> - +