LMSouq
server-admin Open

Configure sendmail inside a docker container

TA
tarun mittal
1 month ago
3 views
Problem Description
I have a [docker container][1] running PHP and Apache. The host is in an AWS instance which has the docker instance running. I am unable to send an email from the docker terminal. Is there any way to send an email from docker instance using sendmail which uses the docker's host's configuration? The following command sends an email from host but doesn't send an email from docker instance. No error is given either. echo "Subject: Testing Email" | cat - text | /usr/lib/sendmail -F abc.pqr@example.com -t abc.pqr@example.com [1]: https://github.com/tutumcloud/tutum-docker-lamp

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base