I created a simple mail server, SMPT and IMAPS, in a single docker/podman container. The mail services engines are Postfix (SMP) and Dovecot (IMAPS). The solution is described here. I also added guidelines on how to test and configure several mail clients: Evolution and mutt.
The storage is ephemeral, not recommended for any production environment but ideal for testing, easy to create and easy to dismantle.
I also added a sample yaml configuration file and remarks on how to deploy the container to OpenShift/Kubernetes cluster.