Sender verification and virtual alias map from inventory
This commit is contained in:
parent
8e25214790
commit
53aeb56e54
6 changed files with 145 additions and 2 deletions
|
|
@ -69,7 +69,12 @@ smtpd_helo_restrictions = permit_mynetworks,
|
|||
|
||||
smtpd_sender_restrictions = reject_non_fqdn_sender,
|
||||
reject_unknown_sender_domain,
|
||||
# reject_sender_login_mismatch, # Disabled because we don’t map correctly
|
||||
{% if postfix.sender_verification.enable == 'test' -%}
|
||||
warn_if_reject,
|
||||
reject_authenticated_sender_login_mismatch,
|
||||
{% elif postfix.sender_verification.enable -%}
|
||||
reject_authenticated_sender_login_mismatch,
|
||||
{% endif -%}
|
||||
permit_mynetworks,
|
||||
permit_sasl_authenticated
|
||||
|
||||
|
|
@ -91,12 +96,20 @@ mua_helo_restrictions = permit_mynetworks,
|
|||
|
||||
mua_sender_restrictions = reject_non_fqdn_sender,
|
||||
reject_unknown_sender_domain,
|
||||
{% if postfix.sender_verification.enable == 'test' -%}
|
||||
warn_if_reject,
|
||||
reject_authenticated_sender_login_mismatch,
|
||||
{% elif postfix.sender_verification.enable -%}
|
||||
reject_authenticated_sender_login_mismatch,
|
||||
{% endif -%}
|
||||
permit_mynetworks,
|
||||
permit_sasl_authenticated
|
||||
|
||||
mua_client_restrictions = permit_sasl_authenticated,
|
||||
reject
|
||||
|
||||
smtpd_sender_login_maps = {{ postfix.smtpd_sender_login_maps }}
|
||||
|
||||
{% if ("mailbox_transport" in postfix and postfix.mailbox_transport == "dovecot")
|
||||
or postfix.ldap.enable
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue