Why does icinga notifications start with the email address nagios@ is there anyway to change this?
icinga is running as user nagios, thus, mail is invoked as this user as well. There’re at least two ways to change it:
- tell your MTA to replace the sender’s mailaddress (e.g. sender_canonical for postfix)
- Use -f with notification command
I remembered correctly having collected your infos into a howto lately
If you use postfix for sending the Mails do the following (use your fovourite textedittor )
add the following
sender_canonical_maps = hash:/etc/postfix/canonical
then create the canocical
Add the adresses there
left site write the mailadresse where you get your mails from at the moment adn right site the “new” address.
then do a postmap
service postfix reload
I think that should work I have done the same in our Icinga2