From ea6587f1766bf3473a3d6684931cd65ca2c5cfc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 15 Nov 2025 18:46:01 +0100 Subject: [PATCH] fix: configure Mailpit relay via environment variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove mailpit-relay.yaml file (env vars not substituted in mounts) - Use MP_SMTP_RELAY_* environment variables directly - Fixes crash loop due to missing relay host configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- net/compose.yaml | 10 +++++++--- net/mailpit-relay.yaml | 11 ----------- 2 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 net/mailpit-relay.yaml diff --git a/net/compose.yaml b/net/compose.yaml index 12e2e59..05cac49 100644 --- a/net/compose.yaml +++ b/net/compose.yaml @@ -234,11 +234,15 @@ services: MP_SMTP_AUTH_ACCEPT_ANY: 1 MP_SMTP_AUTH_ALLOW_INSECURE: 1 MP_MAX_MESSAGES: 5000 - # SMTP relay to IONOS - MP_SMTP_RELAY_CONFIG: /config/relay.yaml + # SMTP relay to IONOS via environment variables + MP_SMTP_RELAY_HOST: ${EMAIL_SMTP_HOST} + MP_SMTP_RELAY_PORT: ${EMAIL_SMTP_PORT} + MP_SMTP_RELAY_USER: ${EMAIL_SMTP_USER} + MP_SMTP_RELAY_PASS: ${EMAIL_SMTP_PASSWORD} + MP_SMTP_RELAY_AUTH: plain + MP_SMTP_RELAY_STARTTLS: "true" volumes: - mailpit_data:/data - - ./mailpit-relay.yaml:/config/relay.yaml:ro networks: - compose_network labels: diff --git a/net/mailpit-relay.yaml b/net/mailpit-relay.yaml deleted file mode 100644 index 609dc93..0000000 --- a/net/mailpit-relay.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# Mailpit SMTP Relay Configuration -# Relays all outbound emails through IONOS SMTP - -# Default relay for all emails -relay: - host: ${EMAIL_SMTP_HOST} - port: ${EMAIL_SMTP_PORT} - username: ${EMAIL_SMTP_USER} - password: ${EMAIL_SMTP_PASSWORD} - starttls: true - auth: plain