Can you share your Python script? I, too, installed mailu, and I like to test it.
Update: Nevermind, I created it myself via Sending Emails With Python – Real Python. Mailu works (without TLS, as I haven’t figured out how to use letsencrypt with both mailu and caddy), but discourse doesn’t send emails …