I have a catch-all email address for my domain, however I want to block certain addresses from receiving mail. Before, I was doing it like this:
:0
* ^(X-Original-To): [email protected]
/dev/null
This works fine, however, the email is silently disregarded. I want a bounce mail to be sent back to the sender so that they know that it's being rejected. I used similar code to this answer:
:0
* ^(X-Original-To): [email protected]
{ EXITCODE=67 HOST= }
However, now the emails are being delivered and no bounce mail is being sent.