Docker Community Forums

Share and learn in the Docker community.

Send mail from Docker container

Hi there,
I have a Docker container running in Amazon Linux 2.
Website back-end is deployed in docker image, add it is published via port 80.

Now I need to send email from Docker container to users, and I already configure postfix in host:
inet_interfaces = (ip of docker0)
mynetworks =, (this is ip of docker container)
In Docker container, I also install mailx and sendmail

Im able to send email from host, but I cannot send the email from Docker container.
What configurations do I miss?
Can anyone help me on this.