autodiscover

This commit is contained in:
2026-01-27 09:38:06 -06:00
parent f541ea9248
commit 7cbbaedd5e
2 changed files with 87 additions and 53 deletions

View File

@@ -4,6 +4,7 @@
acme_ca https://acme-v02.api.letsencrypt.org/directory
debug
}
import email_autodiscover
# Prod: Neue Domains
www.bizmatch.net {
handle /pictures/* {
@@ -127,17 +128,6 @@ iitwelders.bayarea-cc.com {
encode gzip
}
s3mail.bayarea-cc.com {
# wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess
handle {
reverse_proxy host.docker.internal:3060
}
log {
output file /var/log/caddy/s3mail.log
format console
}
encode gzip
}
www.fancytextstuff.com {
redir https://fancytextstuff.com{uri} permanent
}
@@ -230,45 +220,6 @@ api.email-bayarea.com {
encode gzip
}
# IMAP/SMTP Server für E-Mail-Clients
email-srvr.com {
# Für E-Mail-Client-Konfiguration (Autodiscover)
handle /.well-known/autoconfig/mail/config-v1.1.xml {
header Content-Type "application/xml"
respond `<?xml version="1.0" encoding="UTF-8"?>
<clientConfig version="1.1">
<emailProvider id="email-srvr.com">
<domain>andreasknuth.de</domain>
<displayName>Andreas Knuth Mail</displayName>
<displayShortName>AK Mail</displayShortName>
<incomingServer type="imap">
<hostname>email-srvr.com</hostname>
<port>993</port>
<socketType>SSL</socketType>
<authentication>password-cleartext</authentication>
<username>%EMAILADDRESS%</username>
</incomingServer>
<outgoingServer type="smtp">
<hostname>email-srvr.com</hostname>
<port>587</port>
<socketType>STARTTLS</socketType>
<authentication>password-cleartext</authentication>
<username>%EMAILADDRESS%</username>
</outgoingServer>
</emailProvider>
</clientConfig>`
}
# Fallback für andere Anfragen
handle {
respond "Mail Server Configuration" 200
}
log {
output stderr
format console
}
}
annavillesda.org {
# API requests to backend
handle /api/* {
@@ -299,7 +250,4 @@ mail.andreasknuth.de {
}
web.email-bayarea.com {
reverse_proxy nginx-mailcow:8080
}
mail.email-srvr.com autodiscover.mail.email-srvr.com autoconfig.mail.email-srvr.com {
reverse_proxy nginx-mailcow:8080
}