From 38826abb2377165d8d5d07d3419c3504955048bc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 6 Mar 2018 22:45:51 +0800 Subject: mail/postfix: Fix $virtual_mailbox_maps descriptions and update --- roles/mail/templates/postfix/virtual-users.j2 | 36 ++++++--------------------- 1 file changed, 7 insertions(+), 29 deletions(-) (limited to 'roles/mail/templates/postfix/virtual-users.j2') diff --git a/roles/mail/templates/postfix/virtual-users.j2 b/roles/mail/templates/postfix/virtual-users.j2 index 2408196..17c2623 100644 --- a/roles/mail/templates/postfix/virtual-users.j2 +++ b/roles/mail/templates/postfix/virtual-users.j2 @@ -2,12 +2,8 @@ # /usr/local/etc/postfix/virtual-users # Postfix: $virtual_mailbox_maps # -# Tell Postfix the virtual users for which its actually responsible -# for mail delivery. -# -# References: -# * Postfix SASL HOWTO - Envelope sender address authorization -# http://www.postfix.org/SASL_README.html#server_sasl_authz +# Lookup table with all valid recipient addresses for virtual(8) +# delivery. # # Aaron LI # @@ -16,31 +12,13 @@ # NOTE # Once modified this file, run "postmap" on it! #======# -# NOTE -# ---- -# Make sure to have two columns, since this file will be used to map -# e-mail addresses to allowed SASL-authenticated accounts --- in other -# words, one of the things we're defining here is that when you -# authenticate to Dovecot as "you@yourdomain.com," Postfix knows that -# you're allowed to send e-mail from the "you@yourdomain.com" e-mail -# address. -# -# NOTE -# ---- -# By default an SMTP client may specify *any* envelope sender address -# in the "MAIL FROM" command, because the server only knows the remote -# client's hostname and IP address, but not the user who controls the -# remote client. -# But the Postfix SMTP server knowns who the sender is once the SASL -# authentication is used. This table file provides the maps betwee -# envelope sender addresses and SASL login names, which is used by the -# server to decide if the SASL authenticated client is allowed to use -# a particular envelope sender address. -# +# NOTE: +# The lookup result (i.e., the right column) is ignored since we are +# using a non-Postfix delivery agent ($virtual_transport = dovecot). -# Envelope sender | Owner (SASL login names) +# Address | (ignored) # --------------------------------------------------------------------- {% set mydomain = mail.domains[0] %} {% for user in mail.userdb %} -{{ user.name }}@{{ mydomain }} {{ user.name }}@{{ mydomain }} +{{ user.name }}@{{ mydomain }} OK {% endfor %} -- cgit v1.2.2