I want to discard mail for a local user but I've read the docs and I'm not quite sure exactly how I should go about this.
I'm operating a virtual domain environment and have addresses mapped to local user accounts. I have a "noreply" account which is setup to receive messages from numerous addresses. I would like to simply discard any email sent to this local user. I've tried searching for something similar but most solutions seem to be tailored to work with specific email addresses rather than a local account. There are too many email addresses mapped to this local user to add individual rules for each email address. I've tried adding a discard line in transport_maps = hash:/etc/postfix/transport but I think I'm on the wrong path here. Any pointers or suggestions would be appreciated. Thanks.