Git Product home page Git Product logo

Comments (5)

karsalfrink avatar karsalfrink commented on June 21, 2024 1

After some more poking around I got this to work.

For those who stumble across this issue looking for a fix, here is what I did.

I am assuming you have gone through the basic Mattermost Docker installation, and have set up Postfix as a regular service on your host machine.

  1. On the host machine do ifconfig and find the ip address of the docker0 bridge network
  2. In Mattermost's system console set up email notifications as per these instructions under 'postfix' but enter the ip address from step 1 in stead of localhost.
  3. Find the ip address of the mattermostdocker_web_1 container using this command: docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) (source)
  4. Add the ip address from step 3 into /etc/postfix/main to mynetworks, save the file and make sure you do service postfix restart
  5. Back in Mattermost, hit the 'Test Connection' button. The admin user should receive a test email from the configured from address.

I am no expert so I do not know if this is the 'correct' way to do this, but it works.

from mattermost-docker.

eungjun-yi avatar eungjun-yi commented on June 21, 2024

Is this container supposed to be able to talk over SMTP ports (25 or 465)?

Yes, the containers doesn't block any outgoing port. I suspect you have some network problems between docker container and host machine.

from mattermost-docker.

xcompass avatar xcompass commented on June 21, 2024

What SMTP server IP/address were you using when you tried on the same machine. If your postfix is running on your host and you are running the container, you need to point the SMTP server to your host docker IP.

from mattermost-docker.

xcompass avatar xcompass commented on June 21, 2024

Closing this for now. Feel free to reopen if there is any question.

from mattermost-docker.

karsalfrink avatar karsalfrink commented on June 21, 2024

@maackle I am running into the same issue—did you find a fix and if so, what is it?

from mattermost-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.