A while ago I created a vm running postfix and s-nail to pipe mails to a bash script. The script then verifies the sender and recipient, scans for some keywords and does a http GET request. It is a restricted service running only on our local network.
Now I would like to forge this into a docker image. As I am new to creating Docker Images, I need some help.
How can I pack postfix, s-nail and the script into a Docker image? Do the services need to be separated or can it be one single container?