2024-03-29 20:54:14 +00:00
|
|
|
{# code: language=ansible-jinja #}
|
|
|
|
# THIS FILE IS MANAGED BY ANSIBLE
|
|
|
|
|
2023-09-30 16:15:27 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: boky/postfix:{{ services.postfix.version }}
|
|
|
|
restart: always
|
|
|
|
networks:
|
2023-12-12 21:00:55 +00:00
|
|
|
postfix:
|
|
|
|
aliases:
|
|
|
|
- postfix
|
2023-09-30 16:15:27 +00:00
|
|
|
volumes:
|
|
|
|
- "./dkim:/etc/opendkim/keys"
|
|
|
|
environment:
|
|
|
|
# Get all services which have allowed_sender_domain defined
|
2024-08-03 18:39:24 +00:00
|
|
|
ALLOWED_SENDER_DOMAINS: "data.coop {{ services | dict2items | selectattr('value.allowed_sender_domain', 'true') | map(attribute='value.domain') | join(' ') }}"
|
2023-09-30 16:15:27 +00:00
|
|
|
HOSTNAME: "{{ services.postfix.domain }}" # the name the smtp server will identify itself as
|
|
|
|
DKIM_AUTOGENERATE: true
|
|
|
|
|
|
|
|
networks:
|
|
|
|
postfix:
|
|
|
|
external: true
|