Outgoing Mail

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
niculear
Posts: 1
Joined: Mon Sep 19, 2011 10:28 am

Outgoing Mail

Post by niculear »

Hello, I have searched the forums, and internet but have been unable to find an solution to my problem. Currently host and service alerts are sent by 'User for Nagios', and I would like to change the outgoing email address. What is the easiest way to do this?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Outgoing Mail

Post by agriffin »

Here is an answer from the Nagios Core FAQs. Another solution might be to edit the notify_host_by_email & notify_service_by_email commands to use the '-r' option (which will let you change the 'from' address but not the 'real name' part).
crfriend
Posts: 61
Joined: Thu Sep 01, 2011 7:53 am
Location: Central New England (USA)
Contact:

Re: Outgoing Mail

Post by crfriend »

An alternate to the solution posited in the FAQ it may be informative to see what the GECOS field in /etc/passwd has to say about the nagios user. If you're seeing spaces in the "From" address that's an indication that the GECOS field is being transmitted as part of the sender's e-mail address, e.g.: "User for Nagios" <nagios@host.example.org>
Balmer
Posts: 1
Joined: Fri Sep 23, 2011 8:01 pm

Re: Outgoing Mail

Post by Balmer »

That solution detailed in the faq doesn't work for me. I don't know how else to say it - I follow it exactly but can't customize the "from" line.
Locked