# I can't receive email notification

**URL:** <https://community.icinga.com/t/i-cant-receive-email-notification/8012>\
**Category:** Icinga 2\
**Tags:** icingaweb2, icinga2\
**Created:** [August 17, 2021, 10:53pm UTC](https://community.icinga.com/t/i-cant-receive-email-notification/8012 "2021-08-17T22:53:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maurox521](https://community.icinga.com/user_avatar/community.icinga.com/maurox521/32/4313_2.png) [@maurox521](https://community.icinga.com/u/maurox521)\
**Post date:** [August 17, 2021, 10:53pm UTC](https://community.icinga.com/t/i-cant-receive-email-notification/8012/1 "2021-08-17T22:53:08Z")

</div>

Hello, I was trying to send notifications to my email every time that any of the computers that I have connected to my network changed state,I have followed everything that appears in the documentation but for some reason I did not receive any message to the email that I have configured, this is the configuration I did:

users.conf:

 ![image](https://community.icinga.com/uploads/default/original/2X/b/ba4e950a808704bcd4ad0025ed8486b142edd9d2.png)

notifications.conf:

 ![Captura de pantalla de 2021-08-17 18-44-21](https://community.icinga.com/uploads/default/original/2X/2/233b1cd3850d99961af22d28fa1784ef8b844804.png)

commands.conf

 ![Captura de pantalla de 2021-08-17 18-44-44](https://community.icinga.com/uploads/default/original/2X/7/72277c900f0b24fd87cf09fa8bebe80fcc71c5a5.png)

hosts.conf

 ![Captura de pantalla de 2021-08-17 18-46-28](https://community.icinga.com/uploads/default/original/2X/0/0ecc1e13aabee5e87cec491b7107a6c7c54fbe54.png)

I must say that the IP addresses of the hosts in the .conf file are left like this for this post for security reasons, but each of them has a well configured IP.  
thanks for taking the time to read this and try to help me.

---

<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:** [August 18, 2021, 7:32am UTC](https://community.icinga.com/t/i-cant-receive-email-notification/8012/2 "2021-08-18T07:32:13Z")

</div>

Have you configured your monitoring host to be able to send the notifications out (e.g via mail relay host)? As the configuration is just the default config with your two hosts added, there should ne nothing wrong with it.

Icinga only calls a shell script (under /etc/icinga2/scripts) to send mails with the `mail` command.

So you will have to install a package on your system that provides this command. Also you have to install some kind of Mail Transfer Agent (e.g postfix) and configure it to accept and send mails. Most commonly is sending the mails via postfix to a relay host (e.g an exchange host). Search the web for guides how to configure postfix.

If you have done all that (already), check the logs around the time you expect the mails to be sent.
