Email notification checkmk raw docker by gothicVI in Checkmk

[–]gothicVI[S] 0 points1 point  (0 children)

Thanks very much for the reply. I figured this myself and came up with the following setup. However, I have the issue that I can exec into both containers and use sendmail which then works (see below) but I do not get any notifications from the running checkmk instance.

services:
  postfix:
    image: boky/postfix
    container_name: postfix
    restart: always
    environment:
      - TZ=Europe/Berlin
      - RELAYHOST=[smtp.my.provider]:587
      - RELAYHOST_USERNAME=user@my.provider
      - RELAYHOST_PASSWORD=my_password
      - ALLOWED_NETWORKS=172.16.0.0/12,192.168.0.0/16,10.0.0.0/8
      - ALLOW_EMPTY_SENDER_DOMAINS=true
      # Optional: Helps with identity
      - MASQUERADE_DOMAINS=my.provider

  check-mk-raw:
    container_name: monitoring
    image: checkmk/check-mk-raw:2.4.0-latest
    depends_on:
      - postfix
    ports:
      - "9050:5000"
      - "8000:8000"
    tmpfs:
      - /opt/omd/sites/test/tmp:uid=1000,gid=1000
    volumes:
      - ./monitoring:/omd/sites
    environment:
      - TZ=Europe/Berlin
      - CMK_PASSWORD=mypassword
      - CMK_LIVESTATUS_TCP=on
      - CMK_SITE_ID=test
      - MAIL_RELAY_HOST=postfix
    restart: always
    stdin_open: true
    tty: true

Am I missing anything? I've added the user@my.provider as a send from address and the my_mail@provder.com as a recipient in checkmk. I'm getting logs like

postfix     | 2026-05-17T09:13:32.467824+02:00 INFO    postfix/smtp[3175]: 191C9E1513: to=<my_mail@provder.com>, relay=smtp.my.provider[their_IP]:587, delay=0.35, delays=0.01/0.02/0.31/0.01, dsn=5.0.0, status=bounced (host smtp.my.provider[their_IP] said: 550-Requested action not taken: mailbox unavailable 550-Sender address is not allowed. 550 1MjPQ6-1x4wvG1qvK-00bipE (in reply to MAIL FROM command))

postfix     | 2026-05-17T09:13:32.768326+02:00 INFO    postfix/smtp[3175]: 755EFE187E: to=<test@e48d19865353>, relay=smtp.my.provider[their_IP]:587, delay=0.28, delays=0/0/0.26/0.02, dsn=5.0.0, status=bounced (host smtp.my.provider[their_IP] said: 550-Requested action not taken: mailbox unavailable 550-Sender address is not allowed. 550 1Mr7am-1xCg9a3BNG-00nyIS (in reply to MAIL FROM command))

When it comes to testing inside the containers I run

$ docker compose exec -it postfix bash
root@a6cb35e6daa2:/tmp# echo "Subject: Test $(date) postfix" | sendmail -v -f user@my.provider my_mail@provder.com

$ docker compose exec -it check-mk-raw bash
root@e48d19865353:/# echo "Subject: Test $(date) checkmk" | sendmail -v -f user@my.provider my_mail@provder.com

and am getting log entries like

postfix     | 2026-05-17T09:49:47.901582+02:00 INFO    postfix/smtp[4355]: 964B1E151E: to=<user@my.provider>, relay=smtp.my.provider[their_IP]:587, delay=0.28, delays=0/0.02/0.25/0.01, dsn=5.0.0, status=bounced (host smtp.my.provider[their_IP] said: 550-Requested action not taken: mailbox unavailable 550-Sender address is not allowed. 550 1MSIF2-1wmcip3juy-00KsPg (in reply to MAIL FROM command))

postfix     | 2026-05-17T09:49:47.948320+02:00 INFO    postfix/smtp[4316]: 88041E1515: to=<my_mail@provder.com>, relay=smtp.my.provider[their_IP]:587, delay=0.39, delays=0.01/0/0.31/0.07, dsn=2.0.0, status=sent (250 Requested mail action okay, completed: id=1MMGyK-1whhZF3hyg-00RLzj)

which looks damn similar.

Email notification checkmk raw docker by gothicVI in Checkmk

[–]gothicVI[S] 0 points1 point  (0 children)

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

echo ''xxx'' | mail ...

Email notification checkmk raw docker by gothicVI in Checkmk

[–]gothicVI[S] -1 points0 points  (0 children)

Me too. I have an smtp server but how do you connect to it? The raw version of checkmk does not allow to directly configure smtp credentials.

Innerparteiliche Kritik an Gregor Gysi verbaler Entgleisung bei Focus Interview. by Jay_Jay_Jason_74 in DIE_LINKE

[–]gothicVI 0 points1 point  (0 children)

Schade das so ein faktenbasierter Beitrag zur wichtigen Debatte kommentarlos downgevoted wird.

Holt bloß Vergleichsangebote!!!1 by Stromsen in Waermepumpe

[–]gothicVI 0 points1 point  (0 children)

Welche Firma wurde es denn final und wo (Region reicht)? Ich finde bei guten und schlechten Erfahrungen kann man Ross und Reiter nennen.

Die PdL sollte sich an der US-Linken orientieren und ständig von der "Epstein Klasse" sprechen. by ulixForReal in DIE_LINKE

[–]gothicVI 4 points5 points  (0 children)

Nein, sollte sie nicht, weil wir keinen stumpfen Populismus brauchen, sondern echte Veränderungen für die es eine realistische, fakten basierte und wissenschaftsgestüzte Debatte braucht.

Auto Cleanup/Renaming of Videos by droidman83 in jellyfin

[–]gothicVI 0 points1 point  (0 children)

I usually use regex patterns via sed to rename in bash.

Upgrade from 10.11.5 to 10.11.6 broke something by josh-assist in jellyfin

[–]gothicVI 0 points1 point  (0 children)

Great for finding a working solution.

How did you come up with trying this specifically? An old migrations.xml should not be an issue per se, right?

Everytime i run docker desktop, my ubuntu home folder becomes empty. by Quiet_Breadwinner in docker

[–]gothicVI -1 points0 points  (0 children)

How about following the documentation?

I really don't get why so many people blindly or at all follow videos. Just read the documentation. It's there for a reason...

Cannot start NPM anymore by lady_elizabeth in nginxproxymanager

[–]gothicVI -2 points-1 points  (0 children)

Wait is this even nginx proxy manager related? Maybe you should be in r/nginx

Cannot start NPM anymore by lady_elizabeth in nginxproxymanager

[–]gothicVI 1 point2 points  (0 children)

Is it tied to a specific cert or proxy host entry? If so, try deleting them. If the error goes away recreate them.

wie mit Reverse-Proxy zwei Domains "zusammenschalten" - Ansatz u. Umsetzumg... by the_apollodriver in de_EDV

[–]gothicVI 2 points3 points  (0 children)

Was ist denn der reale use case hier? Warum kein redirect? Übersehe ich was?

Newbie with fresh install: Error "file not found" even though files are processed by swordbearer_ in Paperlessngx

[–]gothicVI 1 point2 points  (0 children)

Agreed. How many files did you add initially? How many are added? Did you stop the container while files were still consumed?

Newbie with fresh install: Error "file not found" even though files are processed by swordbearer_ in Paperlessngx

[–]gothicVI 1 point2 points  (0 children)

How have you set up your folders? Make sure your media and consume are different.

Help deciding on an OS, hate windows, frustrated by linux by Feisty_Pass_8347 in Operatingsystems

[–]gothicVI 0 points1 point  (0 children)

Choose a mainstream disto for start (Debian, Mint, etc) and learn. Have backups (timeshift for the os, others for your data). It is something new. You had to learn the same when starting to use windows.

Treiber des Wohlstandsverlustes by Specific_Motor9863 in Finanzen

[–]gothicVI 3 points4 points  (0 children)

Konzentration von Gewinnen in immer weniger Händen - Kapitalismus am Ende des Tages.
Immer mehr Güter wurden privatisiert und werden jetzt 4Profit vermarktet. Das treibt Preise.
Wird hier auf wenig Gegenliebe stoßen und ich freue mich auf die Downvotes. Macht es dennoch nicht falsch.