wildduck 1.version

This commit is contained in:
2025-06-05 17:21:51 -05:00
parent 991047d286
commit be85896404
3 changed files with 283 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
services:
# MongoDB für WildDuck
mongo:
image: mongo:7.0
container_name: wildduck-mongo
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: wildduck
MONGO_INITDB_ROOT_PASSWORD: wildduck123
volumes:
- mongodb_data:/data/db
- mongodb_config:/data/configdb
ports:
- "127.0.0.1:27017:27017"
networks:
- mail_network
# Redis für WildDuck
redis:
image: redis:7.2-alpine
container_name: wildduck-redis
restart: unless-stopped
command: redis-server --appendonly yes
volumes:
- redis_data:/data
ports:
- "127.0.0.1:6379:6379"
networks:
- mail_network
# WildDuck Mail Server
wildduck:
image: nodemailer/wildduck:latest
container_name: wildduck-server
restart: unless-stopped
depends_on:
- mongo
- redis
volumes:
- ./wildduck.toml:/wildduck/config/default.toml
- wildduck_mail:/wildduck/mail
- wildduck_attachments:/wildduck/attachments
ports:
- "127.0.0.1:8080:8080" # API
- "25:25" # SMTP
- "587:587" # SMTP Submission
- "993:993" # IMAPS
- "995:995" # POP3S
- "143:143" # IMAP
- "110:110" # POP3
networks:
- mail_network
# WildDuck Webmail Interface
wildduck-webmail:
image: nodemailer/wildduck-webmail:latest
container_name: wildduck-webmail
restart: unless-stopped
depends_on:
- wildduck
environment:
- WEBMAIL_HOST=mail.andreasknuth.de
- WILDDUCK_API=http://wildduck:8080
ports:
- "127.0.0.1:4000:3000"
networks:
- mail_network
networks:
mail_network:
external: true
volumes:
mongodb_data:
redis_data:
wildduck_mail:
wildduck_attachments:

105
wildduck/wildduck.toml Normal file
View File

@@ -0,0 +1,105 @@
name = "WildDuck Mail Server"
[api]
port = 8080
host = "0.0.0.0"
secure = false
[dbs]
# MongoDB Verbindung
mongodb = "mongodb://wildduck:wildduck123@mongo:27017/wildduck"
# Redis Verbindung
redis = "redis://redis:6379/2"
# Attachments in GridFS
gridfs = "mongodb://wildduck:wildduck123@mongo:27017/wildduck"
[imap]
port = 143
host = "0.0.0.0"
secure = false
# STARTTLS aktivieren
starttls = true
[imaps]
port = 993
host = "0.0.0.0"
secure = true
[pop3]
port = 110
host = "0.0.0.0"
secure = false
starttls = true
[pop3s]
port = 995
host = "0.0.0.0"
secure = true
[smtp]
port = 25
host = "0.0.0.0"
secure = false
starttls = true
# Authentifikation für ausgehende Mails
authMethods = ["PLAIN", "LOGIN"]
[submission]
port = 587
host = "0.0.0.0"
secure = false
starttls = true
# Submission Port erfordert immer Authentifikation
authRequired = true
[attachments]
type = "gridstore"
bucket = "attachments"
[log]
level = "info"
# Logausgabe in JSON Format für bessere Verarbeitung
json = true
[emailDomain]
# Hauptdomain
default = "andreasknuth.de"
[sender]
# Hostname für SMTP HELO/EHLO
name = "mail.andreasknuth.de"
# Bounce-Adresse
address = "mailer-daemon@andreasknuth.de"
# Amazon SES Integration wird später hinzugefügt
[relay]
enabled = false
[tls]
# TLS-Konfiguration für SMTP
ciphers = "ECDHE+AESGCM:ECDHE+CHACHA20:DHE+AESGCM:DHE+CHACHA20:!aNULL:!MD5:!DSS"
minVersion = "TLSv1.2"
[limits]
# Maximale Anzahl gleichzeitiger Verbindungen
windowSize = 1000
# Maximale Nachrichten pro Verbindung
rcptTo = 100
# Maximale Größe einer Nachricht (25MB)
maxSize = 26214400
[tasks]
# Automatische Bereinigungsaufgaben
enabled = true
# Gelöschte Nachrichten nach 30 Tagen endgültig löschen
deleteAfter = 30
[webhooks]
# Webhook-URLs für Events (für Auto-Reply und Forwarding)
enabled = true
[auditLog]
# Audit-Log für Compliance
enabled = true
# Aufbewahrungszeit für Audit-Logs (365 Tage)
retention = 365