Preferably this could be done with a virtual instance of a mail server on an existing Linux machine but I'm willing to run a whole other install (Linux or Windows) to get this to work.
Basically a system we use generates emails to customers when we do certain things. On the testing setup, we regularly import a full live snapshot to test reports etc. The problem is that this can end up with us sending incorrect emails to our customers.
My goal is the specific a different mail server on the server which would accept all mail, then redirect it back to the dev team. Best I can come up with is creating catchall address forwards for every domain of every customers. There must be a better option though?
Machine will not be internet facing so spam is not a risk on this.
Edit: There a multiple customer address domains. Any catchall solution would need to not be domain specific. The from field also varies depending on the user logged in or section of the system. We also need to see the emails which is why they are being redirected.