Page 1 of 1

Email config question

Posted: Thu Jan 02, 2020 10:19 am
by jenstar13
Hi,
We have the email set up in the Gui to use [email protected]
but when it sends emails , it's sending emails as [email protected]
I can not figure out where that is set at?
can you help
I think pagerduty is rejecting email because of the hostname in the email address

the normal Xi Version
Installed Version: 5.6.5

Thank you in advance
Jen

Re: Email config question

Posted: Thu Jan 02, 2020 2:07 pm
by mbellerue
I believe that is an artifact of using sendmail for email alerts. You also have the option of connecting to a proper SMTP server with a dedicated nagios user, and sending email that way. But you're absolutely right, a lot of services reject email from strange domain names, or domains where the reverse DNS lookup fails.

Here's a doc on configuring email in Nagios XI.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: Email config question

Posted: Fri Jan 03, 2020 6:39 am
by jenstar13
Yes correct, I said we had email configured in the GUI to use SMTP on an external host, I tested it and it works fine.
but XI is also using sendmail.
What I'm trying to find is the config file that tells Nagios to use either the GUI config or sendmail, and not both
Can you help with that?

Re: Email config question

Posted: Fri Jan 03, 2020 9:54 am
by lmiltchev
It is possible that Nagios XI sends emails via sendmail as you have some contacts that are not "xi users". Contacts and users are similar but not the same. Contacts are usually configured to use "notify-host-by-email" and "notify-service-by-email" notification handlers. They usually get their notifications via sendmail. On the other hand, "xi users" are configured with "xi_host_notification_handler" and "xi_service_notification_handler" commands. They get their notifications via SMTP. It is possible that you have "xi users" that are misconfigured (using both handlers). Check the configuration of the contacts that receive notifications via sendmail to find out if they are set up to use the correct notification commands and/or templates.

Read more on "xi users" and "contacts" here:

https://assets.nagios.com/downloads/nag ... ntacts.pdf

Re: Email config question

Posted: Fri Jan 03, 2020 10:22 am
by jenstar13
ok, thank you, I see my solution will require sendmail research since we have plenty of contacts that are not XI users

Re: Email config question

Posted: Fri Jan 03, 2020 10:32 am
by lmiltchev
Sure, let us know if you have any further questions or it is OK to close this topic. Thanks!