---
title: "Comment by Lukas Mayr on \"🐳 Docker with Strapi V4 🌟\" | Hashnode"
description: "Hey Simen, thanks for the great tutorial. I got the server running on AWS ECS. The only thing thats not working is sending mails. It works when I develop with s"
url: "https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/630f6da156df9e8e50259627"
---

[Discussion](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd)

Comment [🐳 Docker with Strapi V4 🌟](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd)

[Lukas Mayr](https://hashnode.com/@malua)

[Aug 31, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/630f6da156df9e8e50259627)

Hey Simen, thanks for the great tutorial. I got the server running on AWS ECS.

The only thing thats not working is sending mails. It works when I develop with strapi develop (without docker), but once it's inside a docker container, the email sending stops working. I am sending with nodemailer over Mandrill, which as I said works as long as it is not in the docker container.

In docker also the "default sender email" and the "default response email" are missing, although they are configured are also shown when developing.

If you have any insight, i would greatly appreciate an answer! all the best, lukas

[Simen Daehlin](https://hashnode.com/@eventyret)

[Aug 31, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/630f6da156df9e8e50259627#reply-630f6e1575af73ad1f061507)

Not to sure how much it will be with the tutorial. But not working while in a container might be that you have to expose the ports to allow sending emails.

When it comes to default sender etc, i think you can pass variables into it, but by default there is none i think

[Lukas Mayr](https://hashnode.com/@malua)

[Aug 31, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/630f6da156df9e8e50259627#reply-630f771775af73ad1f061718)

Thanks for the fast response. I figured it out. I did not put all env variables into the task definition on aws.
