diff --git a/caddy/email_autodiscover b/caddy/email_autodiscover index 94133cd..83a7d28 100644 --- a/caddy/email_autodiscover +++ b/caddy/email_autodiscover @@ -1,49 +1,38 @@ -# (email_settings) ist der Name unseres Snippets (email_settings) { - # 1. Autodiscover für Outlook (POST Request) - route /autodiscover/autodiscover.xml { - header Content-Type "application/xml" - respond ` - - - - email - settings - - IMAP - mail.email-srvr.com - 993 - on - support@bizmatch.net off - on - on - - - SMTP - mail.email-srvr.com - 465 - on - support@bizmatch.net off - on - on - - - - ` 200 - } - - # 2. JSON Autodiscover (Modern Outlook) - route /autodiscover/autodiscover.json { - header Content-Type "application/json" - # Achtung: Hier hardcoden wir jetzt die Subdomain für den Redirect, das ist sicherer - respond `{ - "Protocol": "AutodiscoverV1", - "Url": "https://autodiscover.bayarea-cc.com/autodiscover/autodiscover.xml" - }` 200 + route /autodiscover/autodiscover.xml { + header Content-Type "application/xml" + respond ` + + + + email + settings + + IMAP + mail.email-srvr.com + 993 + on + off + on + on + + + SMTP + mail.email-srvr.com + 465 + on + off + on + on + + + +` 200 } - # 3. Thunderbird Autoconfig + + # 3. Thunderbird Autoconfig (Bleibt wie es war) route /mail/config-v1.1.xml { header Content-Type "application/xml" respond `