blob: 191d38d252f905a9a8812c57ac72d6a5eee34575 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#
# /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 %}
{% for user in ["aly", "wt", "lulu"] %}
{{ user }}@{{ domain }} {{ user }}@{{ mydomain }}
{% endfor %}
{% endfor %}
#
{% for domain in mail.domains %}
weitian@{{ domain }} wt@{{ mydomain }}
{% endfor %}
#
{% for domain in mail.domains %}
{% for user in ["postmaster", "hostmaster", "webmaster", "root", "abuse"] %}
{{ user }}@{{ domain }} root@{{ mydomain }}
{% endfor %}
{% endfor %}
|