summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/postfix/templates/aliases.local3
-rw-r--r--roles/postfix/templates/local_recipient3
-rw-r--r--roles/postfix/templates/virtual_mailbox3
3 files changed, 6 insertions, 3 deletions
diff --git a/roles/postfix/templates/aliases.local b/roles/postfix/templates/aliases.local
index 9b23aec..2ba1d9d 100644
--- a/roles/postfix/templates/aliases.local
+++ b/roles/postfix/templates/aliases.local
@@ -1,4 +1,5 @@
+{% if local_users is defined %}
{% for item in local_users %}
{{ item }}: /var/mail/{{ item }}/
{% endfor %}
-
+{% endif %}
diff --git a/roles/postfix/templates/local_recipient b/roles/postfix/templates/local_recipient
index 39d554e..1bf9788 100644
--- a/roles/postfix/templates/local_recipient
+++ b/roles/postfix/templates/local_recipient
@@ -1,4 +1,5 @@
+{% if local_users is defined %}
{% for item in local_users %}
{{ item }} OK
{% endfor %}
-
+{% endif %}
diff --git a/roles/postfix/templates/virtual_mailbox b/roles/postfix/templates/virtual_mailbox
index ced3f62..c406121 100644
--- a/roles/postfix/templates/virtual_mailbox
+++ b/roles/postfix/templates/virtual_mailbox
@@ -1,5 +1,6 @@
# user@{{ ansible_domain }} user
+{% if local_users is defined %}
{% for item in local_users %}
{{ item }}@{{ ansible_domain }} {{ item }}
{% endfor %}
-
+{% endif %}