homeserver/docker-compose/mail-relay/docker-compose.yml.j2
Michael Grote 2c769796fb
All checks were successful
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/pr/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
ci/woodpecker/pr/ansible-lint Pipeline was successful
map
2024-04-04 22:18:08 +02:00

32 lines
946 B
Django/Jinja

version: '3.3'
services:
postfix:
image: "registry.mgrote.net/postfix:v1.1.192"
container_name: mail-relay
restart: always
ports:
- 1025:25
environment:
SMTP_SERVER: smtp.strato.de
SMTP_USERNAME: info@mgrote.net
SMTP_PASSWORD: "{{ lookup('keepass', 'strato_smtp_password', 'password') }}"
SERVER_HOSTNAME: mgrote.net
# DEBUG: "yes" # literal
ALWAYS_ADD_MISSING_HEADERS: "no" # literal
# LOG_SUBJECT: "yes" # literal
INET_PROTOCOL: ipv4
SMTP_GENERIC_MAP: |
/^From:.*nobody@lldap/ REPLACE From: lldap@mgrote.net
# "/.*/ info@mgrote.net" # deactivated; dont overwrite sender
networks:
- mail-relay
healthcheck:
test: ["CMD", "sh", "-c", "echo 'EHLO localhost' | nc -w 1 127.0.0.1 25 | grep -q '220 '"]
interval: 30s
timeout: 10s
retries: 3
######## Networks ########
networks:
mail-relay:
external: true