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'] != '') { ?> - +