What program or script sends out email for password changes?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

What program or script sends out email for password changes?

Post by linuxnag »

I have a rather simple question but it is giving me a major headache.

First of all all my mail notifications are going out perfectly because I have written a custom script that takes care of outgoing mail.

However, when I create a new user or change someone's password (from Admin->manage users) and I want to send them email to that effect the outgoing email
always gets sent from: root@localhost.{MYDOMAIN}

My question: what process or script sends out this email?

How can I trap this and use my own mail script ?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: What program or script sends out email for password chan

Post by Box293 »

I believe this is in the file /usr/local/nagiosxi/html/admin/users.php starting around line 1292.
linuxnag wrote:However, when I create a new user or change someone's password (from Admin->manage users) and I want to send them email to that effect the outgoing email always gets sent from: root@localhost.{MYDOMAIN}
On the Admin > System Config > Manage Email Settings page the "Send Mail From" should define this.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: What program or script sends out email for password chan

Post by linuxnag »

That was the first thing I tried. Sorry, no luck.

However, I did catch most of the bad email by changing:

/usr/local/nagiosxi/html/includes/phpmailer/class.phpmailer.php

On the global settings on top. Now, this is NOT what I would call elegant OR smart
but it does work.

-George
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: What program or script sends out email for password chan

Post by rkennedy »

linuxnag wrote:That was the first thing I tried. Sorry, no luck.

However, I did catch most of the bad email by changing:

/usr/local/nagiosxi/html/includes/phpmailer/class.phpmailer.php

On the global settings on top. Now, this is NOT what I would call elegant OR smart
but it does work.

-George
Can you show us what you changed? Also, can you show us a screenshot of your Manage Email Settings page? If you're using SMTP, it will send from the user it authenticates as, or has send as permission for.
Former Nagios Employee
Locked