stack.basicstack.de/apps/stalwart/stalwart-config.yaml
CTO Agent 01585534f9 Remove HTTP listener IP restrictions from Stalwart config
Issue: Stalwart was blocking Traefik ingress controller's IP (10.244.2.227)
with "Blocked IP address" errors, causing 502 Bad Gateway responses.

Root cause: The allowed-ips security restriction on the HTTP listener was
blocking legitimate internal cluster traffic from Traefik.

Fix: Remove the [server.listener.http.security] section entirely. The HTTP
listener is already protected by:
- Running as ClusterIP service (not exposed externally)
- Traefik ingress with TLS termination
- Kubernetes NetworkPolicies (when enabled)

Internal cluster traffic should not be IP-restricted.

Related to DEV-422 (Stalwart not accessible).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-08-01 08:58:06 +00:00

61 lines
1.1 KiB
YAML

---
apiVersion: v1
kind: ConfigMap
metadata:
name: stalwart-config
namespace: stalwart
data:
stalwart.toml: |
#
# Stalwart Mail Server Configuration
#
[store]
data = "rocksdb"
[store.rocksdb]
type = "rocksdb"
path = "/var/lib/stalwart"
#
# Server Configuration
#
[server]
hostname = "mail.basicstack.de"
# HTTP Listener (Web UI and API)
[server.listener.http]
bind = ["0.0.0.0:8080"]
protocol = "http"
# SMTP Listener (Port 25)
[server.listener.smtp]
bind = ["0.0.0.0:25"]
protocol = "smtp"
# Submission Listener (Port 587 with STARTTLS)
[server.listener.submission]
bind = ["0.0.0.0:587"]
protocol = "smtp"
# IMAPS Listener (Port 993 with TLS)
[server.listener.imaps]
bind = ["0.0.0.0:993"]
protocol = "imap"
tls.implicit = true
#
# TLS Configuration
#
[server.tls]
certificate = "file:///etc/stalwart/certs/tls.crt"
private-key = "file:///etc/stalwart/certs/tls.key"
#
# Logging
#
[tracing.level]
default = "info"