2023-10-31 11:37:50 +01:00
|
|
|
version: '3.3'
|
|
|
|
services:
|
2024-02-01 21:23:44 +01:00
|
|
|
postfix:
|
2024-03-22 08:38:01 +01:00
|
|
|
image: "registry.mgrote.net/postfix:v1.1.192"
|
2024-02-01 21:23:44 +01:00
|
|
|
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
|
2024-04-03 23:49:15 +02:00
|
|
|
#SMTP_GENERIC_MAP: "/.*/ info@mgrote.net" # deactivated; dont overwrite sender
|
2024-02-01 21:23:44 +01:00
|
|
|
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 '"]
|
2024-02-01 21:23:44 +01:00
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2023-10-31 11:37:50 +01:00
|
|
|
|
|
|
|
######## Networks ########
|
|
|
|
networks:
|
|
|
|
mail-relay:
|
|
|
|
external: true
|