cachethq / Docker

A Dockerized version of Cachet.
https://cachethq.io
BSD 3-Clause "New" or "Revised" License
411 stars 285 forks source link

Using sendmail/postfix of host with docker container #404

Open blpup opened 3 years ago

blpup commented 3 years ago

Hey all, I think I’ve tried about everything. I’m running a cachet server with a docker container. I’m trying to send emails with my host machine’s postfix configuration. I’ve tested postfix on my host machine and it sends emails fine. However the container doesn’t seem to want to send emails out using the sendmail. The mailing configuration is configured the following way:

I received this solution from an online source (https://github.com/CachetHQ/Cachet/issues/2490) and it still didn’t seem to work (even with the different port).

I also configured my sendmail to allow docker requests on my host machine following this guide (https://www.michelebologna.net/2019/send-an-email-from-a-docker-container/). Which basically says to add the docker inet to inet_interfaces and the docker container ip to mynetworks.

However after all of this I’m still stuck.

Thanks for any help