The Checkmk Appliance already ships with an MTA installed (nullmailer) which can be configured on the webconf interface. On other Linux systems, you need to set up an MTA for yourselves. This does not need to be a fully-featured daemon like Postfix oder Exim, a simple forwarder like Nullmailer or SSMTP is usually sufficient.
The ~/etc/mail.rc file is the configuration for the mail user agent (MUA) used by Checkmk for sending e-mails to the MTA.
Sending from the console is done with the same user as the monitoring is running with? In our case we didn’t change the mail.rc at all. SSMTP is used as a relay.
Hello,
in the
/opt/omd/sites/mysite/etc/mail.rc
there is no server name/ip, nor port, nor user/password, no “from address”, so this file is not about SMTP configuration.
How can it be set up to forward emails?
in /etc/ there is no such file
in /home/linuxuser/ there is no ~/etc/mail.rc
What file are you talking about?
Yes. Checkmk ships with a copy of the heirloom-mailx mail user agent (MUA). ~/etc/mail.rc is the configuration file for mailx.
mailx uses the standard Linux interface /usr/sbin/sendmail. This can be provided by a mail transport agent (MTA), like Postfix, Exim, Berkeley Sendmail, Qmail, Nullmailer, or SSMTP.
To test if if works, simply send some Mail. As the checkmk site user, do something like
I have installed postfix, and no emails.
Only when i searched for more information on email, and found in the documentation that an email address for a user is not enough, and i also have to add cmkadmin user account to the “Everything” contact group. Only then i started getting emails.
Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.