Don't hardcode domains (#129)

Co-authored-by: Reynir Björnsson <reynir@reynir.dk>
Reviewed-on: #129
Co-authored-by: reynir <data.coop@reynir.dk>
Co-committed-by: reynir <data.coop@reynir.dk>
This commit is contained in:
reynir 2022-11-27 14:01:55 +00:00 committed by valberg
parent a1e8203d55
commit e45eb02208
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ services:
### Internal services ###
postfix:
file: postfix.yml
domain: "smtp.{{ base_domain }}"
version: "v3.5.0"
nginx_proxy:

View File

@ -17,4 +17,4 @@
env:
# Get all services which have allowed_sender_domain defined
ALLOWED_SENDER_DOMAINS: "{{ services | dict2items | selectattr('value.allowed_sender_domain', 'true') | map(attribute='value.domain') | join(' ') }}"
HOSTNAME: "smtp.{{ base_domain }}" # the name the smtp server will identify itself as
HOSTNAME: "{{ services.postfix.domain }}" # the name the smtp server will identify itself as