Hi there,
now i'm searching a bunch of hours to get mail notification working.
I want to get notified by mail when a service alert appears.
For that i created an contact with my mail address as recipient and and bound it into nagios.
I altered the notify-service-by-email command by appending " -- -r myFromAccount@myDomain".
After that I unfornunally saw that neither "/usr/bin/mail" nor "/usr/bin/mailx" are able to hand over a password to my NON-open-relay smtp-server.
Please correct me if i'm wrong, but i think the only way to get this working is via telnet command, right?
If it's so, please can u give me a short example with an account and a password?
KR
Andre
Email-Notification
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Email-Notification
Was there a specific reason you did this? You should be able to leave those definitions default and simply add an address to your contact, that address could even be linked to a mailing list once it gets past your exchange server.I altered the notify-service-by-email command by appending " -- -r myFromAccount@myDomain".
Re: Email-Notification
I did this to send emails from a specific from emailadress.
I first have to pass the server.
As i wrote our company mail server isn't an open relay.
I have to hand over a valid from-user account and a pass for smtp auth( mayby some more infos).
That's the problem!once it gets past your exchange server.
I first have to pass the server.
As i wrote our company mail server isn't an open relay.
I have to hand over a valid from-user account and a pass for smtp auth( mayby some more infos).
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Email-Notification
Are the messages being sent to addresses on the Exchange server? If so you shouldn't need to pass credentials, if not, why push then through the Exchange server, why not deliver them directly?