How can I change Nagios from email address ?

Simone Felici s.felici at mclink.eu
Tue May 8 14:51:29 CEST 2012


I'm using a server that sends *only* nagios mails, then I've implemented regexp header_checks to 
replace every outgoing sender email.

Into main.cf:
(...)
header_checks = regexp:/etc/postfix/header_checks

and then into /etc/postfix/header_checks
/From:.*/ REPLACE From: "Monitoring System" <myaddress at mydomain.com>

Maybe there is a better way to do it. For me works.

Cheers, Simon


Il 08/05/2012 11:39, özgür umut vurgun ha scritto:
> Hi,
>
> I am using postfix ... But I don't know how to configuration....
>
>
>
> Özgür Umut VURGUN
>
>
>
> 2012/5/8 Assaf Flatto <nagios at flatto.net <mailto:nagios at flatto.net>>
>
>     __
>     Are you using sendmail or postfix as your MTA ?
>
>     The configuration is done on the MTA .
>
>
>
>
>     On 08/05/12 08:29, özgür umut vurgun wrote:
>>     Hi All,
>>
>>     I'd like to change Nagios Email address. Now I am using "admin at hostname-nagios.localhost"
>>     <mailto:admin at hostname-nagios.localhost> but many system doesn't accept this email address. So
>>     I'd like to change to real e-mail address. I have searched in the internet but I couldn't be
>>     success.
>>
>>     How can I do it ?
>>
>>     Thanks...
>>
>>     Özgür Umut VURGUN
>>
>>
>>     ------------------------------------------------------------------------------
>>     Live Security Virtual Conference
>>     Exclusive live event will cover all the ways today's security and
>>     threat landscape has changed and how IT managers can respond. Discussions
>>     will include endpoint security, mobile security and the latest in malware
>>     threats.http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>
>>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list