diff --git a/caddy/Caddyfile b/caddy/Caddyfile index f0a296a..7306041 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -149,4 +149,55 @@ web.email-bayarea.com { } mail.email-srvr.com autodiscover.mail.email-srvr.com autoconfig.mail.email-srvr.com { reverse_proxy nginx-mailcow:8080 +} +# Roundcube für docker-mailserver +app.email-bayarea.com { + reverse_proxy roundcube-new:80 + + log { + output stderr + format console + } + + 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 ` + + + andreasknuth.de + Andreas Knuth Mail + AK Mail + + email-srvr.com + 993 + SSL + password-cleartext + %EMAILADDRESS% + + + email-srvr.com + 587 + STARTTLS + password-cleartext + %EMAILADDRESS% + + +` + } + + # Fallback für andere Anfragen + handle { + respond "Mail Server Configuration" 200 + } + + log { + output stderr + format console + } } \ No newline at end of file