i have problems setting up icinga2 mail notifications, maybe someone could give me advice?
i don’t really have enough experience in such things, sorry, i’m just a beginner… i had a look at the documentation, tutorials and questions previously asked about similar problems, but i don’t know what exactly my problem is.
i checked the templates.conf, users.conf, notifications. conf and hosts.conf files, it’s all set up by default and it looks like the instructions suggest. i set up a gmail email account with less secure apps enabled and added the mail address in users.conf. the notification feature is enabled.
in the gui, it says, “1 notification has been sent for this issue” for a host that’s down, but i didnt receive any mails.
if i run /etc/icinga2/scripts# ./mail-service-notification.sh, it says:
mail not found in $PATH. Consider installing it. , and i suppose this indicates the problem, still i don’t know what to do now.
i got told that i can just tell icinga2 the mail address and that’s it, that i don’t need a mail server, is that correct?
i’d be thankful for any advice!