I was wondering if anyone knows of a way to ideally intercept (if not block) mailx from sending emails?
The situation is that we have a development server (CentOS) that hosts the current version of our website. The system as part of its processes sends out confirmation emails and the like which I'd like to ensure never see the light of day.
Ideally we'd like to be able to route these to a specific mailbox such that we could interrogate the emails being sent out.
If that's not possible simply blocking them would be a good starting point.
What is the most encompassing way to ensure this and are there any pitfalls to be wary of?
Thanks