How do I get sendmail running in an Alpine Docker container?
1 answer
The container will not have a running MTA (mail transport agent), there is simply no mail server. For example, you can use ssmtp ( https://pkgs.alpinelinux.org/package/edge/main/x86/ssmtp ) and configure it to use external smtp server like your vendors (like mail.yourprovider.com ).
Than you can use ssmtp to send emails. Here is a similar case where sending mail from a Php Docker image is not possible. You can read further here -> https://github.com/docker-library/php/issues/135
+1
source to share