Permit sasl auth recipient before continuing

This commit is contained in:
niten 2023-09-29 16:26:27 -07:00
parent 1c5449a499
commit 69b2ed3daf
1 changed files with 4 additions and 5 deletions

View File

@ -246,15 +246,15 @@ in {
"reject_unauth_destination" "reject_unauth_destination"
"reject_unauth_pipelining" "reject_unauth_pipelining"
"reject_unknown_sender_domain" "reject_unknown_sender_domain"
"permit_mynetworks"
"permit_sasl_authenticated"
] ++ (map (blacklist: "reject_rbl_client ${blacklist}") ] ++ (map (blacklist: "reject_rbl_client ${blacklist}")
cfg.blacklist.dns) ++ [ "reject" ]; cfg.blacklist.dns)
++ [ "permit_mynetworks" "permit_sasl_authenticated" "reject" ];
recipient-restrictions = [ recipient-restrictions = [
"check_sender_access ${mappedFile "reject_recipients"}" "check_sender_access ${mappedFile "reject_recipients"}"
"reject_unknown_sender_domain" "reject_unknown_sender_domain"
"reject_unknown_recipient_domain" "reject_unknown_recipient_domain"
"permit_sasl_authenticated"
"reject_unauth_pipelining" "reject_unauth_pipelining"
"reject_unauth_destination" "reject_unauth_destination"
"reject_invalid_hostname" "reject_invalid_hostname"
@ -263,8 +263,7 @@ in {
"reject_non_fqdn_recipient" "reject_non_fqdn_recipient"
"check_policy_service unix:private/policy-spf" "check_policy_service unix:private/policy-spf"
] ++ (map (blacklist: "reject_rbl_client ${blacklist}") ] ++ (map (blacklist: "reject_rbl_client ${blacklist}")
cfg.blacklist.dns) cfg.blacklist.dns) ++ [ "permit_mynetworks" "reject" ];
++ [ "permit_mynetworks" "permit_sasl_authenticated" "reject" ];
client-restrictions = client-restrictions =
[ "permit_sasl_authenticated" "permit_mynetworks" "reject" ]; [ "permit_sasl_authenticated" "permit_mynetworks" "reject" ];