This is for logging from a flask app with sendxmpp, because [prosody](https://prosody.im) is far easier to set up compared to setting up an email server. Not only is prosody easy to setup, but it is very [well-documented](https://prosody.im), has it's own [ppa](https://prosody.im/download/package_repository), and it's also trivial to add a [hook for Let's Encrypt Certs](https://prosody.im/doc/letsencrypt) in your `certbot renew` cron. I find that [poezio](https://github.com/poezio/poezio) is a great xmpp client on Linux, and [Yaxim](https://github.com/yaxim-org/yaxim) is great on Android. Also, here's the [manpage for sendxmpp](https://manpages.debian.org/buster/sendxmpp/sendxmpp.1p.en.html).