CMK version:
2.0.0p23.cre
OS version:
Ubuntu 21.10
Error message:
I’d like to setup Mail notifications via postfix. So far i have installed postfix but there is no mail sent when a check is in a critical state.
When analyzing the notification itself with the “Analyze ruleset for this notification” i could notice, that the ruleset is correct and would trigger the mail.
When using the following command, i am able to send me a test-notification.
echo 'test smtp' | mail -r no-reply@topcontrol.it -s 'test email' marc.matscher@topcontrol.it
When leaving out the -r switch, however i do not get the mail. in the /var/log/mail.log i can see, that with the “-r” switch the log-entry is “from=no-reply@topcontrol.it”, without the switch it is " from=root@srv-checkmk"
Based on this facts i assume, that somewhere i do have to specify the source-mail but i do not find where i have to put it.
I home someone can help me.
Thank You