mapletree/lxc1/smtp-relay/smtp-relay.yml
2026-01-29 13:37:11 -07:00

24 lines
788 B
YAML

services:
smtp-relay:
image: loganmarchione/docker-postfixrelay:latest
container_name: smtp_relay
restart: always
ports:
- "25:25"
environment:
# 1. THE UPSTREAM SMARTHOST (Where mail goes)
- RELAY_HOST=smtp-relay.brevo.com
- RELAY_PORT=587
# 2. INTERNAL SECURITY (Who can send)
# Allow your entire subnet (e.g., 192.168.1.0/24) to send without auth
- MYNETWORKS=172.16.201.0/24 10.19.19.0/24 192.168.19.0/24
# 3. IDENTIFICATION
# The hostname this relay announces itself as
- SYSTEM_TIMEZONE=America/Edmonton
- MESSAGE_SIZE_LIMIT=10240000
volumes:
# Optional: Persist the mail queue so you don't lose alerts if the container restarts
- /docker/smtp-relay/queue:/var/spool/postfix