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