cachethq / cachethq/Docker

Using sendmail/postfix of host with docker container

Open
#404 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
439
Forks
271
PR merge metrics
No merged PRs in 30d

Description

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:
- MAIL_DRIVER=sendmail
- MAIL_HOST=localhost
- MAIL_PORT=25
- MAIL_ADDRESS=[DEPRECATED]
- MAIL_NAME=[DEPRECATED]
- MAIL_ENCRYPTION=null

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.