Hi, I’m using Checkmk Raw version 2.3.0 on Debian 12. I have installed the server and agent on the same machine and set up all the service monitoring and everything is working well. I’m trying to set up Email notifications and the documentation says I have to use the built in SMTP server that comes with linux. However I dont know how to use Postfix etc and I have set up Stalwart Mail (https://stalw.art/) as my SMTP server in a docker container. Is it possible to use that as my SMTP server for Checkmk? If so, can someone guide me on the configuration process? Thanks!
I dont know what that is but you need to use whatever email system is installed on the same server you are running checkmk. There are no short-cuts here.
But setting up postfix is super simple if you have another smtp server (like it seems you have) its just one line of config and is easily found with a simple google.
Oh, I will check it out then soon. Thanks.
Yeah, just install postfix, then uncomment the line that says something like
#relayhost = [your.mail.server.tld]
and fill your local smtp server into the square brackets
You could install nullmailer on the server and let it forward all locally generated mail to the SMTP port of your stalwart instance. No need for the complexity of Postfix.
This sounds like a easy solution, thanks! One question, how does checkmk know to use nullmailer? I dont see anywhere in the checkmk configuration that I can tell it to use a particular email program. I think debian comes preinstalled with exim4. How do I configure the system to use nullmail instead of exim4?
I think checkmk just uses the sendmail command, which is linked to the nullmailer inject command, when you install nullmailer.
Thanks all, has been very helpful.
Hello everyone,
Just wanted to say that “postfix” can also be configured as “send-only” mail server
quite easily. It needs little configuration changes, described in a RHEL KB article.
See [1].
If you want to use a relay, too (e.g. your “Stalwart” mail server), it’s just one more step, see [2].
Regards,
Thomas
[1] How to configure Postfix as a send-only mail server
[2] How to configure a relay host in Postfix
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.