aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mail/templates/postfix/virtual-users.j2
blob: 17c2623182018ea044d3bd0d534a995173f4852a (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
#
# /usr/local/etc/postfix/virtual-users
# Postfix: $virtual_mailbox_maps
#
# Lookup table with all valid recipient addresses for virtual(8)
# delivery.
#
# Aaron LI
#

#======#
# NOTE #  Once modified this file, run "postmap" on it!
#======#

# NOTE:
# The lookup result (i.e., the right column) is ignored since we are
# using a non-Postfix delivery agent ($virtual_transport = dovecot).

# Address                               | (ignored)
# ---------------------------------------------------------------------
{% set mydomain = mail.domains[0] %}
{% for user in mail.userdb %}
{{ user.name }}@{{ mydomain }}		OK
{% endfor %}