Update dict

This commit is contained in:
phil 2023-05-21 23:09:11 +02:00
parent 40b81679eb
commit 6c09b17399

View file

@ -3,8 +3,7 @@
# Example
#
# postfix_aliases:
# - domain:
# name: mydomain.org
# - domain: mydomain.org
# comment: |
# # Mydomain.org
# # List of Aliases
@ -14,13 +13,13 @@
# - "alice@yourdomain.org
{% if postfix_aliases is defined %}
{% for domain in postfix_aliases %}
### {{ domain.name}}
{% if domain.comment is defined %}
{{ domain.comment }}
{% for item in postfix_aliases %}
### {{ item.domain }}
{% if item.comment is defined %}
{{ item.comment }}
{% endif %}
{% for alias in domain.aliases %}
{{ "%-50s %s" | format(alias.name + '@' + domain.name, alias.dest | join(',')) }}
{% for alias in item.aliases %}
{{ "%-50s %s" | format(alias.name + '@' + item.domain, alias.dest | join(',')) }}
{% endfor %}
{% endfor %}