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
|
||||
#
|
||||
# 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 %}
|
||||
|
|
Loading…
Reference in a new issue