Code Monkey home page Code Monkey logo

Comments (7)

clarencemills avatar clarencemills commented on July 20, 2024 3

Hello Jason,

I recently started using your docker image, works great but I'm unable to send mail. Is this what happens if you don't set the Mail_RELAY_HOST? Also is it possible to configure a username and password for say if you are using Gmail as your relay?

from docker-nagios.

BelGoat avatar BelGoat commented on July 20, 2024

After much tests and checks I've found something interesting.
My configuration in the nagios didn't have the "From" this this would not work.
Secondly the mail won't get out due to the postfix configuration (at least that is what I found)

I did change the /etc/postfix/main.cf configuration with my own relay and allowed relay IP's
If you think this is relevant - Please tell me and I will provide a new docker file with params that will help with this configuration when you create the docker instance (I also will add another user for nagios to solve the issue that this only work with nagios user).

from docker-nagios.

aryak007 avatar aryak007 commented on July 20, 2024

I also ran into the same issue. If possible please share the Dockerfile.

from docker-nagios.

JasonRivers avatar JasonRivers commented on July 20, 2024

I believe this is now solved from commit 3977816 (latest build on docker hub) Please re-open if that's not the case.

from docker-nagios.

nicx avatar nicx commented on July 20, 2024

Hi, unfortunately its still not working with a clean new installation. As BelGoat already mentioned its because of a missing "relayhost =" in the main.cf of postfix. If I add manually the IP of my Docker host where a Mailserver is running its working as expected.

Is it possible to put this config to an ENV variable? So everybody could configure the relay host by setting the IP to ENV_RELAYHOST for example.

from docker-nagios.

JasonRivers avatar JasonRivers commented on July 20, 2024

With the latest build (once it's build) you should be able to set -e MAIL_RELAY_HOST to fix this, I'm not seeing this myself, the MX delivery is working as expected. Please let me know if this doesn't solve your issue.

from docker-nagios.

nicx avatar nicx commented on July 20, 2024

Great, its working! Thanks a lot! 👍

from docker-nagios.

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.