Switching to gmail relay

This commit is contained in:
Finley Ghosh 2025-11-20 23:26:23 +11:00
parent da4eefdbf6
commit f4cf670684

View file

@ -3,18 +3,19 @@ services:
image: boky/postfix image: boky/postfix
restart: unless-stopped restart: unless-stopped
container_name: cmc-prod-postfix container_name: cmc-prod-postfix
# Staging: relay to Mailpit (no authentication required) # Production: relay to Gmail SMTP
environment: environment:
- RELAYHOST=mailpit:1025
- ALLOWED_SENDER_DOMAINS=cmctechnologies.com.au - ALLOWED_SENDER_DOMAINS=cmctechnologies.com.au
# --- Gmail SMTP relay settings (uncomment for production) --- # Gmail SMTP relay settings
# - RELAYHOST=smtp-relay.gmail.com - RELAYHOST=smtp-relay.gmail.com
# - RELAYHOST_PORT=587 - RELAYHOST_PORT=587
# - SMTP_USERNAME=sales - SMTP_USERNAME=sales
# - SMTP_PASSWORD=S%s'mMZ})MGsg$k!5N|mPSQ> - SMTP_PASSWORD=S%s'mMZ})MGsg$k!5N|mPSQ>
# - SMTP_TLS_SECURITY_LEVEL=encrypt - SMTP_TLS_SECURITY_LEVEL=encrypt
# - SMTP_USE_TLS=yes - SMTP_USE_TLS=yes
# - SMTP_USE_STARTTLS=yes - SMTP_USE_STARTTLS=yes
# --- Mailpit relay (for testing only) ---
# - RELAYHOST=mailpit:1025
ports: ports:
- "25:25" - "25:25"
networks: networks: