I have a Postfix 2.10.1 running on CentOS 7. This service will deliver email notifications that are sent to the postfix via SMTP.
Now, some users should not get those notifications. Since the sending application is unable to supress notifications for some email addresses/users, I want postfix to accept those emails and NOT deliver them. (The address is in the
To header as well as the
RCPT TO envelope attribute)
Is there a way so I can tell postfix to silently drop any mail for one or more email addresses?
The related question How to discard mails sent from a specific local user to external addresses? asks for a filter based on the sender. I want to filter based on recipient.