Notifications sent from

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:

  1. tell your MTA to replace the sender’s mailaddress (e.g. sender_canonical for postfix)
  2. Use -f with notification command
1 Like

I remembered correctly having collected your infos into a howto lately :sunny:


If you use postfix for sending the Mails do the following (use your fovourite textedittor :slight_smile: )
nano /etc/postfix/
add the following
sender_canonical_maps = hash:/etc/postfix/canonical
then create the canocical
nano /etc/postfix/canonical
Add the adresses there
nagios Icinga@domain
nagios@ServerName.domain Icinga@domain
nagios@domain Icinga@domain
left site write the mailadresse where you get your mails from at the moment adn right site the “new” address.
then do a postmap
postmap /etc/postfix/canonical
and reload
service postfix reload
I think that should work I have done the same in our Icinga2

Greetings Epytir

1 Like