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 - ./queue:/var/spool/postfix