Email / Telegram Notification Setup

  • Director version (System - About): 1.7.2
  • Icinga Web 2 version and modules (System - About): 2.8.2
  • Icinga 2 version (icinga2 --version): 2.12.3
  • Operating System and version: CentOS 7
  • Webserver, PHP versions: Webserver httpd, PHP 7.3.20

Hello,

We have been trying to set up email or telegram notifications in Icinga2 Director for a long time, but we can’t find any useful help on how to set them up or the posts are outdated.

Do we need a dedicated mail server for notifications or do we need to set up a Postfix relay host?

Could you give us tips on how to set this up successfully?

Hi,

for mail notifications I have used postifx to relay the messages to a mail host (mostly Exchange servers).
So simply setup postfix as a mail relay. I also use canonical maps to set the sender address based on the linux user that is sending the mail.

For telegram I can’t help, but there seem to be some icingaweb2 modules and some howtos flying around :slight_smile:

Hey,

we have set up a postfix relay host and also tested with mailx, mails are sent out. However, when we want to send a notification from the Icinga Director to a host, it does not pass this to Postfix or Postfix never receives anything.

We suspect it may be the Apply Rule, but can’t find what could be causing it.

Hello,

we have now solved our Mail send Problem to setup a postfix relay host and setup arguments for the script.