homeserver/docker-compose/mail-relay/docker-compose.yml.j2

36 lines
1.1 KiB
Text
Raw Normal View History

version: '3.3'
services:
postfix:
image: "registry.mgrote.net/postfix:v1.1.196"
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" # as string not boolean
ALWAYS_ADD_MISSING_HEADERS: "no" # as string not boolean
# LOG_SUBJECT: "yes" # as string not boolean
INET_PROTOCOL: ipv4
SMTP_GENERIC_MAP: |
/nobody@lldap/ lldap@mgrote.net
2024-04-10 20:38:41 +02:00
/mg@pbs.localdomain/ pbs@mgrote.net
2024-04-10 21:42:31 +02:00
/root@pbs.localdomain/ pbs@mgrote.net
# rewrite FROM "nobody@lldap" to "lldap@mgrote.net"
# /.*/ würde alle absender adressen ersetzen
networks:
- mail-relay
healthcheck:
2024-04-01 11:49:32 +02:00
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