autodiscover
This commit is contained in:
parent
7d1c0b9a6d
commit
6c6b4d345f
|
|
@ -4,6 +4,19 @@
|
||||||
acme_ca https://acme-v02.api.letsencrypt.org/directory
|
acme_ca https://acme-v02.api.letsencrypt.org/directory
|
||||||
}
|
}
|
||||||
import email_autodiscover
|
import email_autodiscover
|
||||||
|
# ---------------------------------------------------------
|
||||||
|
# Block A: Die dedizierten Autodiscover Domains
|
||||||
|
# ---------------------------------------------------------
|
||||||
|
autodiscover.bayarea-cc.com, autodiscover.bizmatch.net,
|
||||||
|
autoconfig.bayarea-cc.com, autoconfig.bizmatch.net {
|
||||||
|
|
||||||
|
# Hier rufen wir das Snippet auf
|
||||||
|
import email_settings
|
||||||
|
|
||||||
|
# Fallback für Aufrufe auf Root dieser Subdomains
|
||||||
|
respond "Autodiscover Service Online" 200
|
||||||
|
}
|
||||||
|
|
||||||
# Prod: Neue Domains
|
# Prod: Neue Domains
|
||||||
www.bizmatch.net {
|
www.bizmatch.net {
|
||||||
handle /pictures/* {
|
handle /pictures/* {
|
||||||
|
|
@ -55,6 +68,7 @@ bayarea-cc.com {
|
||||||
format console
|
format console
|
||||||
}
|
}
|
||||||
encode gzip
|
encode gzip
|
||||||
|
import email_settings
|
||||||
}
|
}
|
||||||
www.bayarea-cc.com {
|
www.bayarea-cc.com {
|
||||||
redir https://bayarea-cc.com{uri} permanent
|
redir https://bayarea-cc.com{uri} permanent
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,7 @@
|
||||||
# ------------------------------------------------------------------
|
# (email_settings) ist der Name unseres Snippets
|
||||||
# E-Mail Autodiscover Configuration
|
(email_settings) {
|
||||||
# Covers: Outlook (XML & JSON), Thunderbird (Mozilla XML), and generic clients
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
|
|
||||||
# 1. Autodiscover für Outlook & Mobile Clients (Microsoft Standard)
|
# 1. Autodiscover für Outlook (POST Request)
|
||||||
# ------------------------------------------------------------------
|
|
||||||
autodiscover.bayarea-cc.com, autodiscover.bizmatch.net {
|
|
||||||
|
|
||||||
# JSON Route (für moderne Outlook Clients / Mobile)
|
|
||||||
route /autodiscover/autodiscover.json {
|
|
||||||
header Content-Type "application/json"
|
|
||||||
respond `{
|
|
||||||
"Protocol": "AutodiscoverV1",
|
|
||||||
"Url": "https://{host}/autodiscover/autodiscover.xml"
|
|
||||||
}` 200
|
|
||||||
}
|
|
||||||
|
|
||||||
# XML Route (Klassisch Outlook)
|
|
||||||
route /autodiscover/autodiscover.xml {
|
route /autodiscover/autodiscover.xml {
|
||||||
header Content-Type "application/xml"
|
header Content-Type "application/xml"
|
||||||
respond `<?xml version="1.0" encoding="utf-8"?>
|
respond `<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
@ -46,15 +31,17 @@ autodiscover.bayarea-cc.com, autodiscover.bizmatch.net {
|
||||||
</Autodiscover>` 200
|
</Autodiscover>` 200
|
||||||
}
|
}
|
||||||
|
|
||||||
# Fallback für Browser-Tests
|
# 2. JSON Autodiscover (Modern Outlook)
|
||||||
route / {
|
route /autodiscover/autodiscover.json {
|
||||||
respond "Autodiscover Service for Outlook is running." 200
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
# 2. Autoconfig für Thunderbird (Mozilla Standard)
|
# 3. Thunderbird Autoconfig
|
||||||
# ------------------------------------------------------------------
|
|
||||||
autoconfig.bayarea-cc.com, autoconfig.bizmatch.net {
|
|
||||||
route /mail/config-v1.1.xml {
|
route /mail/config-v1.1.xml {
|
||||||
header Content-Type "application/xml"
|
header Content-Type "application/xml"
|
||||||
respond `<?xml version="1.0"?>
|
respond `<?xml version="1.0"?>
|
||||||
|
|
@ -70,17 +57,12 @@ autoconfig.bayarea-cc.com, autoconfig.bizmatch.net {
|
||||||
</incomingServer>
|
</incomingServer>
|
||||||
<outgoingServer type="smtp">
|
<outgoingServer type="smtp">
|
||||||
<hostname>mail.email-srvr.com</hostname>
|
<hostname>mail.email-srvr.com</hostname>
|
||||||
<port>587</port>
|
<port>465</port>
|
||||||
<socketType>STARTTLS</socketType>
|
<socketType>SSL</socketType>
|
||||||
<authentication>password-cleartext</authentication>
|
<authentication>password-cleartext</authentication>
|
||||||
<username>%EMAILADDRESS%</username>
|
<username>%EMAILADDRESS%</username>
|
||||||
</outgoingServer>
|
</outgoingServer>
|
||||||
</emailProvider>
|
</emailProvider>
|
||||||
</clientConfig>` 200
|
</clientConfig>` 200
|
||||||
}
|
}
|
||||||
|
|
||||||
# Fallback
|
|
||||||
route / {
|
|
||||||
respond "Autoconfig Service for Thunderbird is running." 200
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue