# No email notification after Icinga update

**URL:** <https://community.icinga.com/t/no-email-notification-after-icinga-update/15635>\
**Category:** Icinga 2\
**Created:** [November 2, 2026, 4:15pm UTC](https://community.icinga.com/t/no-email-notification-after-icinga-update/15635 "2026-11-02T16:15:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Legolas](https://community.icinga.com/letter_avatar_proxy/v4/letter/l/b9bd4f/32.png) [@Legolas](https://community.icinga.com/u/Legolas)\
**Post date:** [November 2, 2026, 4:15pm UTC](https://community.icinga.com/t/no-email-notification-after-icinga-update/15635/1 "2026-11-02T16:15:42Z")

</div>

Hello community,

after last Icinga2 update (2026-10-28) the email notifications nevermore working.

Before the updates the ‘Problem’ email notifications would received.

What I did: (on the Icinga2 host and other monitored hosts)  
apt update  
apt upgrade

After the update the ‘Recovery’ email notifications would never sent.  
(should be sent to local root and an external email-address)

For testing purpose a monitored host would be shut down.  
`cat /var/log/icinga2/debug.log | grep Problem`  
`[2026-11-02 15:36:30 +0100] information/Checkable: Checkable 'HOST.internal' has 1 notification(s). Checking filters for type 'Problem', sends will be logged.`  
`[2026-11-02 15:36:30 +0100] notice/Notification: Attempting to send notifications of type 'Problem' for notification object 'HOST.internal!mail-icingaadmin'.`  
`[2026-11-02 15:36:30 +0100] debug/Notification: Type 'Problem', TypeFilter: Acknowledgement, Custom, DowntimeEnd, DowntimeRemoved, DowntimeStart, FlappingEnd, FlappingStart, Problem and Recovery (FType=32, TypeFilter=511)`  
`[2026-11-02 15:36:30 +0100] debug/Notification: User 'icingaadmin' notification 'HOST.internal!mail-icingaadmin', Type 'Problem', TypeFilter: Acknowledgement, Custom, DowntimeEnd, DowntimeRemoved, DowntimeStart, FlappingEnd, Flappi`  
`ngStart, Problem and Recovery (FType=32, TypeFilter=511)`  
`[2026-11-02 15:36:30 +0100] information/Notification: Sending 'Problem' notification 'HOST.internal!mail-icingaadmin' for user 'icingaadmin'`  
`[2026-11-02 15:36:30 +0100] information/Notification: Completed sending 'Problem' notification 'HOST.internal!mail-icingaadmin' for checkable 'HOST.internal' and user 'icingaadmin' using command 'mail-`  
`host-notification'.`

Result: No email notification.

Script mail-host-notification.sh would be tested:  
`/etc/icinga2/scripts/mail-host-notification.sh -d test -l $HOSTNAME -n $HOSTNAME -o test -r ``monitoring@FQDN.TLD`` -s test -t test`

Result: Email sent.

What I also did:  
`su - postgres`  
`psql -U icingadb icingadb < /usr/share/icingadb/schema/pgsql/upgrades/1.6.0.sql`

Restarted icingadb and icinga2.

No changes with desired notifications.

The Icinga WebInterface show the missing host and services.

* * *

System Information of the Icinga2 Master:

```auto
root@icinga2:~# icinga2 -V
icinga2 - The Icinga 2 network monitoring daemon (version: r2.16.6-1)
...
System information:
Platform: Debian GNU/Linux
Platform version: 13 (trixie)
Kernel: Linux
Kernel version: 6.12.113+deb13-amd64
Architecture: x86_64

Build information:
Compiler: GNU 14.2.0
Build host: runner-aa2jha3hm-project-575-concurrent-2
OpenSSL version: OpenSSL 3.5.7 9 Jun 2026

Application information:
...

root@icinga2:~# icinga2 feature list
Disabled features: command compatlog elasticsearch gelf graphite influxdb influxdb2 journald livestatus opentsdb otlpmetrics perfdata syslog
Enabled features: api checker debuglog icingadb mainlog notification

root@icinga2:~# icinga2 daemon -C
NO errors reported.

```

Now I have no more ideas. I need somebody’s help.

Regards L.

---

<div class="post-metadata">

**Author:** ![log1c](https://community.icinga.com/user_avatar/community.icinga.com/log1c/32/2071_2.png) [@log1c](https://community.icinga.com/u/log1c)\
**Post date:** [November 3, 2026, 8:04am UTC](https://community.icinga.com/t/no-email-notification-after-icinga-update/15635/2 "2026-11-03T08:04:22Z")

</div>

Hi @Legolas ,

can you please share the configs for

- user ‘icingaadmin’
- the notification ‘mail-icingaadmin’

> [@Legolas](#):
>
> The Icinga WebInterface show the missing host and services.

What do you mean by that?

Can you share the state history of the affected host?

---

<div class="post-metadata">

**Author:** ![apenning](https://community.icinga.com/user_avatar/community.icinga.com/apenning/32/7669_2.png) [@apenning](https://community.icinga.com/u/apenning)\
**Post date:** [November 3, 2026, 8:08am UTC](https://community.icinga.com/t/no-email-notification-after-icinga-update/15635/3 "2026-11-03T08:08:39Z")

</div>

Thanks for posting!

In Icinga 2.16.6 the `mail-host-notificaiton.sh` script was slightly changed to fix a security issue.

> <https://github.com/Icinga/icinga2/pull/11144/files>
>
> Without quoting, a recipient address containing whitespace can be split
> into ext…ra words and interpreted as additional mail(1) options/arguments
> rather than a single recipient, since $USEREMAIL is built from contact
> email attributes an Icinga user can control.
> 
> fixes \[GHSA-chm5-8fg3-g6fw\](https://github.com/Icinga/icinga2/security/advisories/GHSA-chm5-8fg3-g6fw)
> 
> This has already been reviewed and backported to \`support/2.15\` and \`support/2.16\` on our private GitLab fork.

Are you using the upstream Icinga 2 `mail-host-notification.sh` script or does yours differ?

The only change was the `-r` flag, the user’s email address. Does, by any chance, your email start with a dash (`-`)?

Otherwise, please grep your logs for `Notification` or consider to temporary [enable debug logs](https://icinga.com/docs/icinga-2/latest/doc/15-troubleshooting/#enable-debug-output), showing what Notification Command is actually being executed.

---

<div class="post-metadata">

**Author:** ![Legolas](https://community.icinga.com/letter_avatar_proxy/v4/letter/l/b9bd4f/32.png) [@Legolas](https://community.icinga.com/u/Legolas)\
**Post date:** [November 3, 2026, 11:18am UTC](https://community.icinga.com/t/no-email-notification-after-icinga-update/15635/4 "2026-11-03T11:18:54Z")

</div>

Thank you for reply,

> [@log1c](#):
>
> - user ‘icingaadmin’

> object User “icingaadmin” {  
> import “generic-user”
> 
> display\_name = “Icinga 2 Admin”  
> groups = [“icingaadmins”]
> 
> email = “root@localhost [monitoring@FQDN.TLD](mailto:monitoring@FQDN.TLD)”  
> }
> 
> object UserGroup “icingaadmins” {  
> display\_name = “Icinga 2 Admin Group”  
> }

> [@log1c](#):
>
> - the notification ‘mail-icingaadmin

> apply Notification “mail-icingaadmin” to Host {  
> import “mail-host-notification”  
> user\_groups = host.vars.notification.mail.groups  
> users = host.vars.notification.mail.users  
> //interval = 2h  
> interval = 0  
> vars.notification\_logtosyslog = true  
> assign where host.vars.notification.mail  
> }
> 
> apply Notification “mail-icingaadmin” to Service {  
> import “mail-service-notification”  
> user\_groups = host.vars.notification.mail.groups  
> users = host.vars.notification.mail.users  
> //interval = 2h  
> interval = 0  
> vars.notification\_logtosyslog = true  
> assign where host.vars.notification.mail  
> }

> [@log1c](#):
>
> What do you mean by that?

That means that the host, which were shut down for testing purpose, were shown as unreachable within the Icinga Webinterface.

> [@log1c](#):
>
> Can you share the state history of the affected host?

> [2026-11-02 15:28:54 +0100] information/NotificationComponent: ‘notification’ started.  
> [2026-11-02 15:36:30 +0100] information/Notification: \  
> Sending ‘Problem’ notification ‘HOST.internal!mail-icingaadmin’ for user ‘icingaadmin’  
> [2026-11-02 15:36:30 +0100] information/Notification: \  
> Completed sending ‘Problem’ notification ‘HOST.internal!mail-icingaadmin’ for checkable ‘HOST.internal’ and user ‘icingaadmin’ using command ‘mail-host-notification’.  
> [2026-11-02 15:42:37 +0100] information/Notification: \  
> Sending ‘Recovery’ notification ‘HOST.internal!mail-icingaadmin’ for user ‘icingaadmin’  
> [2026-11-02 15:42:37 +0100] information/Notification: \  
> Completed sending ‘Recovery’ notification ‘HOST.internal!mail-icingaadmin’ for checkable ‘HOST.internal’ and user ‘icingaadmin’ using command ‘mail-host-notification’.  
> [2026-11-02 16:25:11 +0100] information/Notification: \  
> Sending ‘Problem’ notification ‘HOST.internal!mail-icingaadmin’ for user ‘icingaadmin’  
> [2026-11-02 16:25:11 +0100] information/Notification: \  
> Completed sending ‘Problem’ notification ‘HOST.internal!mail-icingaadmin’ for checkable ‘HOST.internal’ and user ‘icingaadmin’ using command ‘mail-host-notification’.  
> [2026-11-02 16:41:08 +0100] information/NotificationComponent: ‘notification’ stopped.  
> [2026-11-02 16:41:41 +0100] information/NotificationComponent: ‘notification’ started.  
> [2026-11-02 16:44:37 +0100] information/Notification: \  
> Sending ‘Recovery’ notification ‘HOST.internal!mail-icingaadmin’ for user ‘icingaadmin’  
> [2026-11-02 16:44:37 +0100] information/Notification: \  
> Completed sending ‘Recovery’ notification ‘HOST.internal!mail-icingaadmin’ for checkable ‘HOST.internal’ and user ‘icingaadmin’ using command ‘mail-host-notification’.  
> [2026-11-02 21:59:06 +0100] information/NotificationComponent: ‘notification’ stopped.  
> [2026-11-02 21:59:32 +0100] information/NotificationComponent: ‘notification’ started.

Hope that’s sufficient.

---

<div class="post-metadata">

**Author:** ![Legolas](https://community.icinga.com/letter_avatar_proxy/v4/letter/l/b9bd4f/32.png) [@Legolas](https://community.icinga.com/u/Legolas)\
**Post date:** [November 3, 2026, 11:25am UTC](https://community.icinga.com/t/no-email-notification-after-icinga-update/15635/5 "2026-11-03T11:25:07Z")

</div>

> [@apenning](#):
>
> Are you using the upstream Icinga 2 `mail-host-notification.sh` script or does yours differ?

I’m using the upstream scripts.

> [@apenning](#):
>
> Does, by any chance, your email start with a dash (`-`)?

No, it doesn’t. emails are “root [monitoring@FQDN.TLD](mailto:monitoring@FQDN.TLD)”

> [@apenning](#):
>
> or consider to temporary [enable debug logs](https://icinga.com/docs/icinga-2/latest/doc/15-troubleshooting/#enable-debug-output), showing what Notification Command is actually being executed

I will do.

---

<div class="post-metadata">

**Author:** ![log1c](https://community.icinga.com/user_avatar/community.icinga.com/log1c/32/2071_2.png) [@log1c](https://community.icinga.com/u/log1c)\
**Post date:** [November 3, 2026, 12:19pm UTC](https://community.icinga.com/t/no-email-notification-after-icinga-update/15635/6 "2026-11-03T12:19:07Z")

</div>

> [@Legolas](#):
>
> email = “root@localhost [monitoring@FQDN.TLD](mailto:monitoring@FQDN.TLD)”

I guess that actually worked before, as the string from the `email` field is used 1:1 during the mail script execution.

But the mentioned changes to the notifications scripts by @apenning, i.e. [surrounding the receipient with quotes](https://github.com/Icinga/icinga2/pull/11144/changes#diff-cfc4655a93ea73cf488f2c9b5e2ddf6891471063b6708eedab3ecc06892c0eb6R175), does prevent that from working.

So I’d say the solution is to have one user object for each mail address (“how it should be”).

---

<div class="post-metadata">

**Author:** ![Legolas](https://community.icinga.com/letter_avatar_proxy/v4/letter/l/b9bd4f/32.png) [@Legolas](https://community.icinga.com/u/Legolas)\
**Post date:** [November 3, 2026, 1:47pm UTC](https://community.icinga.com/t/no-email-notification-after-icinga-update/15635/7 "2026-11-03T13:47:15Z")

</div>

> [@log1c](#):
>
> So I’d say the solution is to have one user object for each mail address (“how it should be”).

That it was. A configuration mismatch from the beginning.  
Thank you for help and your time.
