Comment by mbirth
I’ve got Dovecot running in a Docker container on my Raspberry Pi. Moved everything over using Thunderbird. If you use mbox format, once done, you can turn the files read-only and Dovecot will still work. And you can throw a Solr server into the mix to get fast mail searches.