2009/9/8 Janet Sullivan <jsulli...@mndigital.com>
>
> Not all versions of mailx support -R (FreeBSD's, for example).  Instead, you 
> can set the REPLYTO environment variable.
>
> -----Original Message-----
> From: Menard, Chris [mailto:chris.men...@aspect.com]
> Sent: Monday, September 07, 2009 5:27 AM
> To: Esteban Torres Rodriguez; nagios-user Mailinglist
> Subject: Re: [Nagios-users] How do I change the address the mail is sent from 
> for email notifications?
>
> if using mailx, the -R parm sets the 'return' address.
>
> echo "message" | mailx -s subject -R nagios_from_addr...@nagios_server 
> to_addr...@domain.com
> ________________________________________
> From: Esteban Torres Rodriguez [etor...@dap.es]
> Sent: Monday, September 07, 2009 2:56 AM
> To: nagios-user Mailinglist
> Subject: [Nagios-users] How do I change the address the mail is sent from     
>   for email notifications?
>
> I'm trying to do this but I do not work.
>
> http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=338&expand=false&showdesc=true
>
> Does anyone help me?
> I've tried to do with mailx but does not work either.
>
The way I did it was to change the name that Nagios runs under.
IIRC, it needs to be done in the password and group files, the init
script and in the nagios.cfg script.
Then remember to chfn and set the full name.
I changed my username from nagios to support and it seems to work well.

-Andy

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to