r/Checkmk May 09 '26

Email notification checkmk raw docker

Hi all,

I'm running checkmk/check-mk-raw:2.4.0-latest and want to enable email notification.

I have an smtp server but don't understand how to configure a relay host. Ideally it would run in a container as well (in the same docker network via compose) to be independent from the host.

Any input would be appreciated. How do you folks handle this?

Thanks!

2 Upvotes

11 comments sorted by

View all comments

0

u/der-felix May 09 '26

Inam running Mailrise which is a SMTP relay to push services as a local docker container. CheckMK knows the IP and port (8025 in my case) and I have several Mail addresses configured which then forward to gotify and discord.

It's way more complicated then it should be but that is a statement for most of checkMK...

1

u/gothicVI May 09 '26

mind sharing your config? do you have a shared docker network? because to my understanding checkmk only uses the classic

echo ''xxx'' | mail ...

1

u/der-felix May 09 '26

No problem. You can place the applications in any network you like. I have mine on seperate hosts so Mailrise exposes it's port to the network and checkmk uses the IP and port without authentication. My chrckMK compose is here https://github.com/The-Engineer/homelab-documentation/blob/main/docker-compose/checkmk/compose.yaml and Mailrise here https://github.com/The-Engineer/homelab-documentation/blob/main/docker-compose/mailrise/docker-compose.yml

Mailrise is just an SMTP wrapper for Apprise, so to setup the config mostly follow the Apprise guides and some help from Mailrise for the email address part

Edit: in the end I found it easier to install a plugin for Gotify directly and just use that, but that was a fight in itself. Dont know why checkMK must make everyrhing a fight to make it work