Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Send Emails In A Docker Container Using MSMTP

I had some recent difficulties figuring out how to configure a Docker container to use my SMTP server, for calls to sendmail. Luckily this was easily resolved once I knew about MSMTP and how to configure it. I created this example codebase for future use, and the video explainer below.


The codebase is available on GitHub. The video is also available on YouTube if you have problems playing it.

References

Last updated: 6th February 2024
First published: 6th February 2024

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch