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