fix postfixmaps

This commit is contained in:
Morre 2020-10-02 18:22:28 +02:00
parent e14f57b40e
commit 313169db85
No known key found for this signature in database
GPG key ID: 5D9B9B1B8F424BBC
4 changed files with 6 additions and 5 deletions

View file

@ -71,8 +71,9 @@ check_dovecot_quota: false
**postfixmaps**
```
# Should be '<path>': *mapddict*
# Should be '<path>': *list of maps*
# for Example:
postfixmaps:
"/etc/postfix/virtual":
- 'test@example.com root@example.com'
```

View file

@ -12,6 +12,7 @@ postfix:
relay_domains: []
sender_dependent_relayhost_maps: ''
virtual_alias_maps: ''
virtual_regex: []
virtual_mailbox_domains: []
mynetworks: []
mydestination: []
@ -35,5 +36,4 @@ postfix:
aliases: mailForwardingAddress
mailboxes: mailMessageStore
check_dovecot_quota: false
postfixmaps: []
postfixmaps: []

View file

@ -61,6 +61,6 @@
template:
src: maps.j2
dest: "{{ item }}"
with_items: "{{ postfixmaps }}"
with_items: "{{ postfix.postfixmaps }}"
notify:
- restart postfix

View file

@ -1,3 +1,3 @@
{% for i in postfixmaps[item] %}
{% for i in postfix.postfixmaps[item] %}
{{ i }}
{% endfor %}