Hey all,
I have given up hope of hosting my own mail server but was hoping for one that would serve as an archive -
Any suggestions for a docker solution for this?
Thanks
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.
Rules:
Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
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? 😕
I think imapsync will fulfill your needs.
Paperless-ngx might be worth a look. Probably overkill if you just want to store mails but great for general purpose document management.
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.
As others recommended,
imapsync
should be able to handle that part.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.
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.
I use dovecot for this. And thunderbird to actually move/archive the emails. I use caddy for many of my services, so I have pointed dovecot to caddys certificates (for “my.domain”), since it manages certificates through let’s encrypt. I had a plan to install postfix for sending internal emails from my self-hosted services, but it seemed like a bit of configuration and I got busy with other stuff
I made an excerpt from my docker-compose.yml, but you probably have to figure out some things on your own
contents of ./dovecot folder:
contents of dovecot.conf (I think I searched online to find a good example, I don’t remember where from…)
Piggybacking on this question: any solution that provides really good indexing on those local mails, for fast wildcard searching?
Notmuch indexes and lets you tag things. You usually integrate it with emacs as the front end but its usable on it’s own.
https://wiki.archlinux.org/title/Notmuch
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.