aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mail/templates
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-06 22:45:13 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:08 +0800
commitc81d7334e5c6c31c4133edbd411b7f306d50ae8c (patch)
tree040a0747f833e40558dc3a41ecf053877471d42e /roles/mail/templates
parentc3cf54288387b9b6cd7165f974f36bea7c396841 (diff)
downloadansible-dfly-vps-c81d7334e5c6c31c4133edbd411b7f306d50ae8c.tar.bz2
mail/postfix: add login-maps.pcre for $smtpd_sender_login_maps
Diffstat (limited to 'roles/mail/templates')
-rw-r--r--roles/mail/templates/postfix/main.cf.j27
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/mail/templates/postfix/main.cf.j2 b/roles/mail/templates/postfix/main.cf.j2
index 1126adf..914d45b 100644
--- a/roles/mail/templates/postfix/main.cf.j2
+++ b/roles/mail/templates/postfix/main.cf.j2
@@ -503,10 +503,11 @@ smtpd_sender_restrictions =
reject_unknown_sender_domain,
reject_sender_login_mismatch
-# A lookup table maps between the envelope sender addresses and SASL
-# login names (i.e., the owners).
+# A lookup table maps between the SASL login names that own the sender
+# (MAIL FROM) addresses, i.e., the address(es) the user allowed to sent
+# mail from.
#
-smtpd_sender_login_maps = $virtual_mailbox_maps
+smtpd_sender_login_maps = pcre:$config_directory/login-maps.pcre
# Use permanet 550 errors for rejections, to stop retries.
# Tell Postfix to reject messages that match the rejection criteria