2023-10-31 11:37:50 +01:00
|
|
|
version: '3.3'
|
|
|
|
services:
|
|
|
|
postfix:
|
2024-01-28 16:13:40 +01:00
|
|
|
image: "registry.mgrote.net/postfix:master@sha256:d31c6611fe551549e03a5916d6b02e16beb7eaad2740af002e9aed134c0ca6a3"
|
2023-10-31 11:37:50 +01:00
|
|
|
container_name: mail-relay
|
|
|
|
restart: always
|
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: true
|
|
|
|
ports:
|
|
|
|
- 1025:25
|
|
|
|
environment:
|
|
|
|
SMTP_SERVER: smtp.strato.de
|
|
|
|
SMTP_USERNAME: info@mgrote.net
|
2024-01-26 22:37:25 +01:00
|
|
|
SMTP_PASSWORD: "{{ lookup('keepass', 'strato_smtp_password', 'password') }}"
|
2023-10-31 11:37:50 +01:00
|
|
|
SERVER_HOSTNAME: mgrote.net
|
|
|
|
# DEBUG: "yes" # literal
|
|
|
|
ALWAYS_ADD_MISSING_HEADERS: "no" # literal
|
|
|
|
# LOG_SUBJECT: "yes" # literal
|
|
|
|
INET_PROTOCOL: ipv4
|
2023-11-03 11:59:01 +01:00
|
|
|
SMTP_GENERIC_MAP: "/.*/ info@mgrote.net"
|
2023-10-31 11:37:50 +01:00
|
|
|
networks:
|
|
|
|
- mail-relay
|
|
|
|
|
|
|
|
######## Networks ########
|
|
|
|
networks:
|
|
|
|
mail-relay:
|
|
|
|
external: true
|