2019-02-10 07:59:53 +00:00
|
|
|
---
|
|
|
|
|
2020-03-04 17:05:48 +00:00
|
|
|
- name: setup network for postfix
|
|
|
|
docker_network:
|
|
|
|
name: postfix
|
|
|
|
ipam_config:
|
2020-05-29 21:36:07 +00:00
|
|
|
- subnet: '172.16.0.0/16'
|
|
|
|
gateway: 172.16.0.1
|
2020-03-04 17:05:48 +00:00
|
|
|
|
2019-02-10 07:59:53 +00:00
|
|
|
- name: setup postfix docker container for outgoing mail
|
|
|
|
docker_container:
|
|
|
|
name: postfix
|
2022-11-25 12:55:50 +00:00
|
|
|
image: boky/postfix:{{ services.postfix.version }}
|
2022-05-08 11:58:21 +00:00
|
|
|
restart_policy: always
|
2019-02-10 07:59:53 +00:00
|
|
|
networks:
|
|
|
|
- name: postfix
|
|
|
|
env:
|
2022-11-25 23:11:16 +00:00
|
|
|
# Get all services which have allowed_sender_domain defined
|
|
|
|
ALLOWED_SENDER_DOMAINS: "{{ services | dict2items | selectattr('value.allowed_sender_domain', 'defined') | map(attribute='value.domain') | list | join(' ') }}"
|
2022-05-08 11:58:21 +00:00
|
|
|
HOSTNAME: "smtp.data.coop" # the name the smtp server will identify itself as
|