Update dict
This commit is contained in:
parent
40b81679eb
commit
6c09b17399
1 changed files with 7 additions and 8 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue