Mail notifications out of organisation's domain

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
IkaIka
Posts: 34
Joined: Fri Dec 21, 2018 4:37 am

Mail notifications out of organisation's domain

Post by IkaIka »

Hello! I'm having problems with email notifications. They seem to work fine when sending to contacts within my organisation. However, there seems to be a problem sending to addresses outside of our domain.

I looked up the knowledge base on this (https://support.nagios.com/kb/article.php?id=36#), changed the settings under Admin -> Email Settings to SMTP and provided the address and access credentials to my company's mail server (I also contacted the person in charge of it to make sure our Exchange server is configured to relay mail properly). After saving the settings and sending a test email I got a reassuring green message box and found the message in my inbox (see the attachment).

Unfortunately, the notifications still seem to only be reaching people within my organisation and the person in charge of our Exchange server told me that Nagios doesn't seem to be using the new SMTP settings. It seems almost as if XI is only using the new settings for test emails and old ones for regular notifications. Is that possible?

My XI version is 5.6.12.
Attachments
Adnotacja 2020-08-27 122331.png
Adnotacja 2020-08-27 122331.png (9.02 KiB) Viewed 983 times
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Mail notifications out of organisation's domain

Post by gormank »

To remove Nagios from the equation you might install postfix and add the mail relay to main.cfg, then send mail.

sendmail -v <address>
test
.
<enter>

That's about the most basic test mail you can create. You can make more complex messages by echoing into a pipe to sendmail, etc.
Locked