diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-07 10:42:24 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 11:35:08 +0800 |
commit | 63ff4a03ccd7b2fd56d4ab66f4a2f0432b5e76e0 (patch) | |
tree | a7b23ec0a9e8dc2cad22004dea393a38304cc42d /roles/mail/files/postfix/login-maps.pcre | |
parent | 38826abb2377165d8d5d07d3419c3504955048bc (diff) | |
download | ansible-dfly-vps-63ff4a03ccd7b2fd56d4ab66f4a2f0432b5e76e0.tar.bz2 |
mail/postfix: disable login mismatch rejection for smtpd(8) and explain
Diffstat (limited to 'roles/mail/files/postfix/login-maps.pcre')
-rw-r--r-- | roles/mail/files/postfix/login-maps.pcre | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/mail/files/postfix/login-maps.pcre b/roles/mail/files/postfix/login-maps.pcre index 1f14223..1bc4d6b 100644 --- a/roles/mail/files/postfix/login-maps.pcre +++ b/roles/mail/files/postfix/login-maps.pcre @@ -3,7 +3,8 @@ # Postfix: smtpd_sender_login_maps # # Lookup table with the SASL login names that own the sender -# (MAIL FROM) addresses. +# (MAIL FROM) addresses, i.e., the address(es) that the client is +# allowed to sent mail from. # # NOTE: # Add "reject_sender_login_mismatch" to $smtpd_sender_restrictions . @@ -15,7 +16,7 @@ # 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 +# authentication is used. This lookup table 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. @@ -28,6 +29,13 @@ # Enforce that user can only send from their own sender address. # Credit: https://serverfault.com/a/710235/387898 # +# WARNING: Since we use a regex here which matches all sender addresses, +# thus we should enable the login mismatch rejection *only* for +# the "submission" service from user/MUA (see "master.cf"), but +# NOT* for the smtpd(8) service. Otherwise, mails from other +# mail servers will be rejected with error: +# "Sender address rejected: not logged in". +# # Envelope sender | Owner (SASL login names) # --------------------------------------------------------------------- /^(.*)$/ ${1} |