I use sendmail to manage the emails of my website. I'm testing features which require to send emails, and I'd like to receive these emails in a local directory of my server, store them as text files that I can read with vi for example.
I found a way to do this a few months earlier, the emails were stored in a specific folder with the recipient address as file name. Sadly, something went wrong with my virtual machine and I had to reconfigure the whole thing. The problem is that I don't remember what I had to do in order to get my emails in my local storage, and I can't find the solution again on internet, it makes me crazy. My virtual machine is on RHEL 6.
Thanks for your help !