From c81d7334e5c6c31c4133edbd411b7f306d50ae8c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 6 Mar 2018 22:45:13 +0800 Subject: mail/postfix: add login-maps.pcre for $smtpd_sender_login_maps --- roles/mail/templates/postfix/main.cf.j2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'roles/mail/templates') 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 -- cgit v1.2.2