Unfortunately that doesn’t do myself much good. My initial searches were “configure email from”, also same problems… too common, and that’s exactly what I want to reference.
I’m trying to figure out if nagios has a way to change who the “from” sender is to pass through one of my customer’s filters. It must come from a specific user with a specific domain. I’ve fixed it through sendmail masquerading to force the domain only in the email from address, but unless I re-install nagios with the specified account (which is a dummy account on RedHat) I haven’t been able to get it to send it out as that user.
Compiled and installed as nagios, emails typically go out as: email@example.com.
With masquerading through sendmail, can make it: nagios@domain
To make it go out with the dummy account I’ve had to either reconfigure nagios, remake, & reinstall with that dummy account, or modify the /etc/init.d/nagios user and group, take ownership of /usr/local/nagios with the dummy account with exception of /usr/local/nagios/rw which must be dummy.nagcmd, and finally modify the /usr/local/nagios/etc/nagios.cfg’s user and group.
Either way, painful solutions that I would hope there is an easier option to get the same results.
To have the from email be: dummy@domain
However, I can’t search for it on this forum. Grrr.