Setting up smtp on checkmk raw?

I recently had the same issue and had to configure sendmail to be able to use my Microsoft 365 account for sending mail. Following tutorial, starting from the header “Configure SMTP”, helped me to achieve that: