Fix sender domains for Postfix

This commit is contained in:
Sam A. 2023-07-11 21:44:05 +02:00
parent 8c24a02a43
commit 9920676155
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -23,6 +23,6 @@
- "{{ services.postfix.volume_folder }}/dkim:/etc/opendkim/keys" - "{{ services.postfix.volume_folder }}/dkim:/etc/opendkim/keys"
env: env:
# Get all services which have allowed_sender_domain defined # Get all services which have allowed_sender_domain defined
ALLOWED_SENDER_DOMAINS: "{{ base_domain }} {{ services | dict2items | selectattr('value.allowed_sender_domain', 'true') | map(attribute='value.domain') | join(' ') }}" ALLOWED_SENDER_DOMAINS: "{{ services | dict2items | selectattr('value.allowed_sender_domain', 'true') | map(attribute='value.domain') | join(' ') }}"
HOSTNAME: "{{ services.postfix.domain }}" # the name the smtp server will identify itself as HOSTNAME: "{{ services.postfix.domain }}" # the name the smtp server will identify itself as
DKIM_AUTOGENERATE: "true" DKIM_AUTOGENERATE: "true"