mail.andreasknuth.de
This commit is contained in:
parent
ae64e98af0
commit
04399202a5
100
caddy/Caddyfile
100
caddy/Caddyfile
|
|
@ -87,103 +87,7 @@ mailsync.bizmatch.net {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ergänzung für Ihre bestehende Caddyfile
|
|
||||||
# Diese Blöcke zu Ihrer bestehenden Konfiguration hinzufügen:
|
|
||||||
|
|
||||||
# Webmail Interface
|
|
||||||
mail.andreasknuth.de {
|
mail.andreasknuth.de {
|
||||||
reverse_proxy wildduck-webmail:3000
|
tls andreas.knuth@gmail.com
|
||||||
|
reverse_proxy 127.0.0.1:8080
|
||||||
header {
|
|
||||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
|
||||||
X-Content-Type-Options "nosniff"
|
|
||||||
X-Frame-Options "DENY"
|
|
||||||
X-XSS-Protection "1; mode=block"
|
|
||||||
Referrer-Policy "strict-origin-when-cross-origin"
|
|
||||||
-Server
|
|
||||||
}
|
|
||||||
|
|
||||||
log {
|
|
||||||
output file /var/log/caddy/mail.andreasknuth.de.log
|
|
||||||
format json
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# API Endpoint (für Management)
|
|
||||||
api-mail.andreasknuth.de {
|
|
||||||
reverse_proxy wildduck-server:8080
|
|
||||||
|
|
||||||
header {
|
|
||||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
|
||||||
X-Content-Type-Options "nosniff"
|
|
||||||
X-Frame-Options "DENY"
|
|
||||||
}
|
|
||||||
|
|
||||||
log {
|
|
||||||
output file /var/log/caddy/api-mail.andreasknuth.de.log
|
|
||||||
format json
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Autodiscover für E-Mail-Clients
|
|
||||||
autodiscover.andreasknuth.de {
|
|
||||||
header Content-Type "application/xml"
|
|
||||||
respond `<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
|
|
||||||
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
|
|
||||||
<Account>
|
|
||||||
<AccountType>email</AccountType>
|
|
||||||
<Action>settings</Action>
|
|
||||||
<Protocol>
|
|
||||||
<Type>IMAP</Type>
|
|
||||||
<Server>mail.andreasknuth.de</Server>
|
|
||||||
<Port>993</Port>
|
|
||||||
<DomainRequired>off</DomainRequired>
|
|
||||||
<LoginName>{email}</LoginName>
|
|
||||||
<SPA>off</SPA>
|
|
||||||
<SSL>on</SSL>
|
|
||||||
<AuthRequired>on</AuthRequired>
|
|
||||||
</Protocol>
|
|
||||||
<Protocol>
|
|
||||||
<Type>SMTP</Type>
|
|
||||||
<Server>mail.andreasknuth.de</Server>
|
|
||||||
<Port>587</Port>
|
|
||||||
<DomainRequired>off</DomainRequired>
|
|
||||||
<LoginName>{email}</LoginName>
|
|
||||||
<SPA>off</SPA>
|
|
||||||
<Encryption>TLS</Encryption>
|
|
||||||
<AuthRequired>on</AuthRequired>
|
|
||||||
<UsePOPAuth>off</UsePOPAuth>
|
|
||||||
<SMTPLast>off</SMTPLast>
|
|
||||||
</Protocol>
|
|
||||||
</Account>
|
|
||||||
</Response>
|
|
||||||
</Autodiscover>`
|
|
||||||
}
|
|
||||||
|
|
||||||
# Autoconfig für Mozilla Thunderbird
|
|
||||||
autoconfig.andreasknuth.de {
|
|
||||||
header Content-Type "application/xml"
|
|
||||||
respond `<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<clientConfig version="1.1">
|
|
||||||
<emailProvider id="andreasknuth.de">
|
|
||||||
<domain>andreasknuth.de</domain>
|
|
||||||
<displayName>Andreas Knuth Mail</displayName>
|
|
||||||
<displayShortName>AK Mail</displayShortName>
|
|
||||||
<incomingServer type="imap">
|
|
||||||
<hostname>mail.andreasknuth.de</hostname>
|
|
||||||
<port>993</port>
|
|
||||||
<socketType>SSL</socketType>
|
|
||||||
<authentication>password-cleartext</authentication>
|
|
||||||
<username>%EMAILADDRESS%</username>
|
|
||||||
</incomingServer>
|
|
||||||
<outgoingServer type="smtp">
|
|
||||||
<hostname>mail.andreasknuth.de</hostname>
|
|
||||||
<port>587</port>
|
|
||||||
<socketType>STARTTLS</socketType>
|
|
||||||
<authentication>password-cleartext</authentication>
|
|
||||||
<username>%EMAILADDRESS%</username>
|
|
||||||
</outgoingServer>
|
|
||||||
</emailProvider>
|
|
||||||
</clientConfig>`
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue