Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using sendmail/postfix of host with docker container #404

Open
blpup opened this issue Mar 4, 2021 · 0 comments
Open

Using sendmail/postfix of host with docker container #404

blpup opened this issue Mar 4, 2021 · 0 comments

Comments

@blpup
Copy link

blpup commented Mar 4, 2021

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 (cachethq/cachet#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant