aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mail/templates/postfix/virtual.j2
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-06 22:44:24 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:08 +0800
commitc3cf54288387b9b6cd7165f974f36bea7c396841 (patch)
tree494b469f5cbb3c42ee992811e531e4f31bdfdc86 /roles/mail/templates/postfix/virtual.j2
parent89e40ceb20251c9a51de4fc4b334c144d4b2310d (diff)
downloadansible-dfly-vps-c3cf54288387b9b6cd7165f974f36bea7c396841.tar.bz2
mail/postfix: rename "virtual" to "virtual-aliases"
Diffstat (limited to 'roles/mail/templates/postfix/virtual.j2')
-rw-r--r--roles/mail/templates/postfix/virtual.j241
1 files changed, 0 insertions, 41 deletions
diff --git a/roles/mail/templates/postfix/virtual.j2 b/roles/mail/templates/postfix/virtual.j2
deleted file mode 100644
index ea72b05..0000000
--- a/roles/mail/templates/postfix/virtual.j2
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# /usr/local/etc/postfix/virtual
-# Postfix: $virtual_alias_maps
-#
-# Link alias e-mail addresses to real e-mail addresses.
-#
-# Aaron LI
-#
-
-#======#
-# NOTE # Once modified this file, run "postmap" on it!
-#======#
-
-# NOTE
-# ----
-# Virtual alias domains are used for forwading email from an email
-# address to one or more other email addresses. They cannot receive
-# and save email, but only forward email somewhere else.
-# The $virtual_alias_maps mapping contains forwarding (source,
-# destination) of users or domains to other email addresses or entire
-# domains. This maps can return multiple right-hand side
-# destinations (to forward to) for one left-hand side source, therefore
-# one can forward copies of an email to several recipients.
-#
-# Credit: https://workaround.org/ispmail/wheezy/virtual-domains
-#
-
-# alias mail address | local address for virtual(8) delivery
-# ---------------------------------------------------------------------
-{% set mydomain = mail.domains[0] %}
-{% for domain in mail.domains %}
-# [domain: {{ domain }}]
-{% for user in mail.userdb %}
-# (user: {{ user.name }})
-{{ user.name }}@{{ domain }} {{ user.name }}@{{ mydomain }}
-# aliases (if any)
-{% for alias in user.aliases|default([]) %}
-{{ alias }}@{{ domain }} {{ user.name }}@{{ mydomain }}
-{% endfor %}
-{% endfor %}
-{% endfor %}