500 5.5.1 Invalid command: Cannot send mail with Discourse on new install but can from command line (on digital ocean)

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 …