https://github.com/fnep/mtv_dl mtv_dl allows searching the Mediathekview database from the command line and download all videos that haven’t already been downloaded and that fit the search. I use it to download new episodes from TV shows that I’m interested in
I use docker-mailserver which is just one docker container running the basic services without the complexity of a webui an managing groupware