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.
..
Sending notifications emails problem
Unable to send mail from nagiosxi
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
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
Re: Sending notifications emails problem
I'll take a look at this.
Re: Unable to send mail from nagiosxi
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
PHP's direct SMTP.http://php.net/manual/en/function.mail.php
VS
calling sendmail.http://www.php.net/manual/en/book.exec.php
Re: Sending notifications emails problem
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.
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.
Re: Sending notifications emails problem
We would like to fix this in nagios where is "[email protected]" coming from we didn’t enter it anywhere?
Thanks for your help.
Thanks for your help.
Re: Sending notifications emails problem
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.
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
Are you using the virtual machine or did you do a manual install? Is the output of the 'hostname' command "localhost" or "nagiosxi"?
Re: Sending notifications emails problem
We are using virtual machine
Re: Sending notifications emails problem
hostname "nagiosxi.localdomain"