Compare commits

..

2 commits

Author SHA1 Message Date
valberg 499bd20ad1 Merge pull request 'Refactor allowed_sender_domains and allow more domains' (#69) from reynir/ansible:postfix-allowed_sender_domains into master
Reviewed-on: #69
2022-01-23 16:38:30 +00:00
Reynir Björnsson 6e57f1d0c2 Refactor allowed_sender_domains and allow more
A new object 'postfix' is created with a list of allowed_sender_domains.
Any services that expect to send mail this way should add its sender
domain to that list.
2022-01-20 13:36:48 +00:00
2 changed files with 8 additions and 1 deletions

View file

@ -99,3 +99,9 @@ ttrss:
keycloak:
domain: sso.{{ base_domain }}
volume_folder: "{{ volume_root_folder }}/keycloak"
postfix:
allowed_sender_domains:
- "services.{{ base_domain }}"
- "{{ passit.domain }}"
- "{{ fider.domain }}"

View file

@ -15,5 +15,6 @@
networks:
- name: postfix
env:
ALLOWED_SENDER_DOMAINS: "services.{{ base_domain }}"
ALLOWED_SENDER_DOMAINS: "{{ postfix.allowed_sender_domains|join(' ') }}"
HOSTNAME: "mail.data.coop" # the name the smtp server will identify itself as