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 email@example.com -s 'test email' firstname.lastname@example.org
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 “email@example.com”, 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.