milter-regex is a very simple milter-based plugin that rejects or discards messages matching regular expressions. It doesn't add much processing overhead, so even a busy mail server can afford to run it. https://www.benzedrine.ch/milter-regex.html