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 ?
What program or script sends out email for password changes?
- 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
I believe this is in the file /usr/local/nagiosxi/html/admin/users.php starting around line 1292.
On the Admin > System Config > Manage Email Settings page the "Send Mail From" should define this.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}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: What program or script sends out email for password chan
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
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
Re: What program or script sends out email for password chan
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.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
Former Nagios Employee