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.
This commit is contained in:
Reynir Björnsson 2022-01-20 13:36:48 +00:00
parent 68c82a785b
commit 6e57f1d0c2
2 changed files with 8 additions and 1 deletions

View File

@ -98,3 +98,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