I have a scenario where I need to blacklist emails from one email to one of our local emails. Is blocking this specific scenario possible in postfix?
For example, emails from [email protected] to [email protected] should be black listed, but not other emails coming from [email protected].
You could use restriction classes. See:
For example:
Now emails with an envelope sender address in the "bad_senders1" restriction class will get rejected, but only if it was sent to an address in the "protected_destinations" list that has the "bad_senders1" restriction class specified on the right-hand side.
Remember to run postmap for the newly created files.