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: keycloak:
domain: sso.{{ base_domain }} domain: sso.{{ base_domain }}
volume_folder: "{{ volume_root_folder }}/keycloak" volume_folder: "{{ volume_root_folder }}/keycloak"
postfix:
allowed_sender_domains:
- "services.{{ base_domain }}"
- "{{ passit.domain }}"
- "{{ fider.domain }}"

View file

@ -15,5 +15,6 @@
networks: networks:
- name: postfix - name: postfix
env: 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