fixing postfix forwarding to mailpit

This commit is contained in:
Finley Ghosh 2025-09-14 20:55:19 +10:00
parent 108080b9e0
commit 0251ffd2d7
2 changed files with 5 additions and 2 deletions

View file

@ -5,7 +5,7 @@ services:
container_name: cmc-prod-postfix
# Staging: relay to Mailpit (no authentication required)
environment:
- RELAYHOST=mailpit.stg.internal
- RELAYHOST=mailpit
- RELAYHOST_PORT=1025
- ALLOWED_SENDER_DOMAINS=*
# --- Gmail SMTP relay settings (uncomment for production) ---
@ -18,6 +18,9 @@ services:
# - SMTP_USE_STARTTLS=yes
ports:
- "25:25"
networks:
- cmc-stg-network
- cmc-prod-network
nginx:
image: nginx:latest
container_name: cmc-prod-nginx

View file

@ -5,7 +5,7 @@ services:
container_name: cmc-stg-postfix
# Staging: relay to Mailpit (no authentication required)
environment:
- RELAYHOST=mailpit.stg.internal
- RELAYHOST=mailpit
- RELAYHOST_PORT=1025
- ALLOWED_SENDER_DOMAINS=cmctechnologies.com.au
# --- Gmail SMTP relay settings (uncomment for production) ---