It's a question out of curiosity rather than necessity. What should happen say I place sender access map inside smtpd_client_restrictions
and also place client access map in smtpd_sender_restrictions
and set delay_reject to no. My understanding is that:
- When the postfix will try to match the hash maps on client connect it should fail as there is sender address present at the time of matching (so I guess it'll pass to next restriction with DUNNO).
- But this will be applied before any sender_restriction once sender address is present.
- Sender restriction will be ignored till Mail From command is sent and after that the client white list (access map) will get evaluated.
- In the meanwhile all the commands will still go to smtpd milters so they can block emails even before smtpd sender_restriction.
Please see if and where I am wrong.