Hey all,
I have given up hope of hosting my own mail server but was hoping for one that would serve as an archive -
- downloads new emails via IMAP from my mail provider on a regular basis
- allows my mail clients to connect via IMAP to view and search emails
Any suggestions for a docker solution for this?
Thanks
I think imapsync will fulfill your needs.
https://github.com/docker-mailserver/docker-mailserver should be able to do it.
if i remember this in 6 weeks i’ll check the setup at work.
This sounds like what I want. Did you make it work or are you still working on your PhD dissertation to qualify for email server setup training like me? 😕
Piggybacking on this question: any solution that provides really good indexing on those local mails, for fast wildcard searching?
I can’t give direct experience here, but this is exactly the use case I’ve been meaning to spin up mailpiler for: https://www.mailpiler.org/. One of these days that will rise to the top of the priority list.
Notmuch indexes and lets you tag things. You usually integrate it with emacs as the front end but its usable on it’s own.
allows my mail clients to connect via IMAP to view and search emails
dovecot will be able to handle this part. This is what I use as a mail archive (once a year, archive all mail from the previous year from various mailboxes to my self-hosted dovecot instance). I wrote this ansible role for it.
downloads new emails via IMAP
As others recommended,
imapsync
should be able to handle that part.docker solution
These tools are simple enough to install and manage (one package, one config file), Docker is not needed. If you really need it to fit into your docker-based setup, build and maintain your own images.
Paperless-ngx might be worth a look. Probably overkill if you just want to store mails but great for general purpose document management.