I have a Centos 7 server and need a way to block outgoing emails to a list of blocked recipients. This needs to be a global block list so it should probably be implemented in Exim (4.89), and not at the application layer.
Desired end result:
1. I have a file called /root/[url removed, login to view]
2. the file has multiple email addresses, listed one per line:
me@[url removed, login to view]
two@[url removed, login to view]
someone@[url removed, login to view]
3. Any email queued to be sent to any of these email addresses needs to be dropped (and logged in Exim log).
4. If email has multiple recipients (multiple "To"), it should be sent to all other recipients not listed in the "[url removed, login to view]" file
Remember, these are OUTGOING emails, so emails attempting to be sent from the server to these recipients.
Questions? Feel free to ask.
NOTE: You will NOT do any work on the server, you will only provide the ACL code and/or instructions, I will perform server work myself.