Werk #18103: check_mail_loop: Allow no authentication for SMTP

Component Checks & agents
Title check_mail_loop: Allow no authentication for SMTP
Date May 28, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When using the active check check_mail_loop to send mails via SMTP, authentication should be optional. This werk fixes the error

RuntimeError: Either Username/Passwort or ClientID/ClientSecret/TenantID have to be set

currently occuring when no authentication for SMTP is configured.

To the list of all Werks