Sending notifications emails problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ange
Posts: 7
Joined: Wed Jan 27, 2010 5:33 pm

Sending notifications emails problem

Post by ange »

Hi, we are having issue that Nagios is filling out sender address '[email protected]' for specific users instead of 'Manage Email Settings->Send Mail From:' settings. Any help would be appreciated. Thanks.

This is the error from our Exchange:
..
This is an SMTP protocol error log for virtual server ID 1, connection #11. The remote host "66.94.9.228", responded to the SMTP command "mail" with "553 5.1.8 Domain of sender address does not exist ". The full command sent was "MAIL FROM:<[email protected]> ". This will probably cause the connection to fail.
..
dxf1
Posts: 57
Joined: Mon Dec 07, 2009 5:16 am

Unable to send mail from nagiosxi

Post by dxf1 »

Hi I am unable to send mail from the GUI, I can send mail from a root session without issue using a local relay server.

When I try and send a test mail from nagiosxi I get the error "Could not instantiate mail function. "

I have tried the echo "Some body of an email" | /bin/mail -s "Some Subject" [email protected] methode which works fine from the prompt but XI says the error above
Regards
Dave
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Sending notifications emails problem

Post by mmestnik »

I'll take a look at this.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Unable to send mail from nagiosxi

Post by mmestnik »

There are two choices as to which back-end to use, try using the other one ;)
PHP's direct SMTP.http://php.net/manual/en/function.mail.php
VS
calling sendmail.http://www.php.net/manual/en/book.exec.php
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Sending notifications emails problem

Post by mmestnik »

http://go.nagios.com/forum/327/1388
This does change the email headers.
However the problem you are reporting is related to the envelope headers. As these headers have different formats, for example the email headers can be encoded and most notably the email headers can have a display name. This is what this field is used for... Not as a method for getting around mail server configuration, but as a place to specify what Nagios looks like in your mail client.

Add a rule on your mail server to accept any envelope header(or if you'd like just the ones you see being used) from the Nagios server, but limit it's destination possibilities.
ange
Posts: 7
Joined: Wed Jan 27, 2010 5:33 pm

Re: Sending notifications emails problem

Post by ange »

We would like to fix this in nagios where is "[email protected]" coming from we didn’t enter it anywhere?

Thanks for your help.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Sending notifications emails problem

Post by mmestnik »

Well, let's see. That's the email address for the account on the host. It's a Unix concept, email and user accounts are not independent they are one and the same. This applies to the whole email address, not just the username portion, as Unix is designed to function as a group of hosts operating together yet independent. It's almost like MS Window's workgroup user identifiers(I.E. "HOSTNAME/Username"), except it's username@hostname. It might be interesting to try and implement email using the MS syntax.

If you change the host name look out for breaking Apache, it won't start if it get's confused about who it is. I wouldn't at all recommend changing the user name.

I wouldn't recommend attempting this, to change the hostname of a Unix box after it's installed has never been easy. Every time I've done this I've regretted even trying, though after a few years it's possible to discover and correct all the side effects.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Sending notifications emails problem

Post by tonyyarusso »

Are you using the virtual machine or did you do a manual install? Is the output of the 'hostname' command "localhost" or "nagiosxi"?
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
ange
Posts: 7
Joined: Wed Jan 27, 2010 5:33 pm

Re: Sending notifications emails problem

Post by ange »

We are using virtual machine
ange
Posts: 7
Joined: Wed Jan 27, 2010 5:33 pm

Re: Sending notifications emails problem

Post by ange »

hostname "nagiosxi.localdomain"
Locked