diff --git a/templates/postfix/virtual b/templates/postfix/virtual index 330108f..819ee12 100644 --- a/templates/postfix/virtual +++ b/templates/postfix/virtual @@ -1,4 +1,4 @@ {{ '#' }} virtual table for domain {{ item.domain }} -{% for entry in item.map|dictsort(by='key') %} -{{ entry[0] }}@{{ item.domain }} {{ entry[1] if entry[1] is string else (entry[1] | join(", ")) }} +{% for pattern, address in item.map.items() %} +{{ pattern }}@{{ item.domain }} {{ address if address is string else (address | join(", ")) }} {% endfor %}