diff options
author | Michael Scherer <misc@zarb.org> | 2014-12-12 14:37:36 +0100 |
---|---|---|
committer | Michael Scherer <misc@zarb.org> | 2014-12-12 14:37:36 +0100 |
commit | c14826558aaec515722c7293c560a886e6cd7628 (patch) | |
tree | e4b3be6722ba6f1914cd5b89c5d1647872844787 /roles/postfix | |
parent | ca315bf9c292d4757b67a86117e3182c1b0dd680 (diff) |
Add a safeguard when no alias are needed
Diffstat (limited to 'roles/postfix')
-rw-r--r-- | roles/postfix/templates/aliases.users | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/postfix/templates/aliases.users b/roles/postfix/templates/aliases.users index 20ef480..9b13e3b 100644 --- a/roles/postfix/templates/aliases.users +++ b/roles/postfix/templates/aliases.users @@ -1,5 +1,7 @@ +{% if postfix_aliases is defined %} {% for item in postfix_aliases %} {{ item.alias }}: {% if item.mail is string %} {{ item.mail }} {% else %} {{ item.mail |join(',') }} {% endif %} {% endfor %} +{% endif %} |