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
|
2021-02-15 20:59:20 +00:00
|
|
|
vars:
|
|
|
|
mynetworks:
|
|
|
|
- 127.0.0.0/8
|
|
|
|
- 10.0.0.0/8
|
|
|
|
- 172.16.0.0/12
|
|
|
|
- 192.168.0.0/16
|
|
|
|
- 172.19.199.2
|
|
|
|
- 172.19.199.3
|
2019-02-10 07:59:53 +00:00
|
|
|
docker_container:
|
|
|
|
name: postfix
|
|
|
|
image: boky/postfix
|
2019-03-03 06:38:00 +00:00
|
|
|
restart_policy: unless-stopped
|
2019-02-10 07:59:53 +00:00
|
|
|
networks:
|
|
|
|
- name: postfix
|
|
|
|
env:
|
|
|
|
ALLOWED_SENDER_DOMAINS: "{{ base_domain }}"
|
2021-02-15 20:59:20 +00:00
|
|
|
MYNETWORKS: "{{ mynetworks|join(',') }}"
|