Howdy folks!
Would love to hear how people manage their personal inbox[es]. I am looking for ideas on how to best archive mail, while possibly still making it accessible.
Has anyone implemented something where, let’s say, after 2 weeks, emails are stored on some type of self-hosted service, leaving minimal footprint on the cloud?
OpenArchiver was one of the first things I had come across, but, again, just brainstorming and looking for other options, even feedback on OpenArchiver.
Thank you in advance!
I have been using this for a while now: https://bichon.rustmailer.com/ It’s been working well for me so far
I’ve dipped my toe in with mailpiler, but it’s a project that I haven’t fully completed. I hadn’t seen IpenArchiver before. That looks interesting.
Thank you, I will check it out!
Yes what you describe is exactly what I’m doing. You don’t need any fancy apps for it, in fact it’s best if you keep it simple and do it all with IMAP.
Now, your email provider needs to support IMAP. Normally I wouldn’t even mention this but the so-called “encrypted mail” providers like Proton make you jump through hoops so it’s not a given. (Personally I never use a provider that doesn’t offer straight IMAP, smells too much of potential lock-in.)
You also want to self-host a private IMAP server. It’s the easiest way to handle things. Dovecot is pretty easy to set up and very good.
(You can sync to disk as plain text files if you want but you’ll have to choose a format, and actually using those files can be awkward. Syncing to a live IMAP is ideal IMO.)
Then you just use the
mbsyncorimapsyncCLI tool on a schedule to bring in messages from the live mailbox(es) to the private ones.You can also self-host a webmail app for the private IMAP server (I like Snappy and Roundcube) that you can access securely through a reverse proxy and search your emails or you can even configure it to send through the provider’s SMTP.
You can keep using other email clients with the live mailbox during this time.
after 2 weeks, emails are stored on some type of self-hosted service, leaving minimal footprint on the cloud?
Neither mbsync nor imapsync have this feature AFAIK so you’ll have to use a different tool for that.
I achieve this in my desktop email client (Claws Mail) which has this option for POP3.
If you want to script and automate this cleanup there are CLI tools that can do it, for example
imapfilter(which takes a Lua config script) or you can put together a Python script using theimapclientlibrary (available in pip).Hope this helps.
I actually never thought of going this route. I just figured there are a slew of options out there, but, not much feedback on them. I still have to fine tune all of my goals with how I want to set it up. The short vision, was to minimize my inbox and clean up what I want to retain. It’s also part of a bigger project to migrate off of gmail fully and have the ability to be flexible with the service I use, or if I host my email myself through whatever medium.
I appreciate you calling out the required IMAP support, I do use Proton as well. There is a bridge for some IMAP functionality for Proton, but, if I recall correctly it is limited. I use it for tagging and organization right now.
This definitely helps. Thank you for sharing!
At a minimum, a good first step is to get your own domain if you haven’t, and start moving your accounts over to addresses @ that domain. That takes a while.
You can also probably grab a copy of your current emails through Google Takeout and maybe you can figure out something for Proton as well. Any backup is better than no backup.
Yeah, I already have my own domains and have hosted email in various services (work mail, m365) in the past.
I have forwarding setup to proton, so I have a copy, just not a local one yet. Proton in my mind is temporary too, as I will migrate to something with more control. Fortunately, I’m only really using it for mail.
deleted by creator
I try my hardest to live inbox zero, so I have never thought about saving emails as emails. If it is important enough I save it into paperless.
I respect that. In my mind, there are three types of email people in the world, the zero inbox people, like yourself, the zero unread who all the maill, like me and the always unread people. That last group always gets to me, hehe.
I used to be the zero unread type person until I started the self-hosting thing, and got away from using my ISP’s email, as my “quasi-pseudo-professional” email address. I had a gmail account that caught everything that did not have any professional stuff to it, when I started to de-google I started using Apple’s hide my email so if something got spammy I would just turn it off. I would later find out that the google offered this function were you would just put a + after your name than whatever @gmail.com but I was done with gmail so I was not going to go try. I have my own domain (reannlegge.ca) when I moved it from a .com to a .ca I also got email to go with it, I had some unlimitted emails package that Host Hero was screwing me over the barrel with, so I could spin up a new email address with it every time I would sign up for something and forward it to my main address. I had one to many bad experiences with a tech person there that I thought I would go for a new host, so I found out what I needed in the email and what I did not, turns out it was not a lot.
Any who I changed providers, easyDNS who offers a wildcard function on their email and is much friendlier, I have a scheme for unlimitted free trials (that I have only used 2 or 3 times sadly free trials are going the way of the dinosaurs) or so that I can change my address if I still trust the service after my email has been leaked (usually that is a no but some times that is a yes). My emails are sorted into folders and when I see an email in a folder I read it and either forward it to my paperless email or delete it. Some emails automatically get forwarded to paperless and deleted without me seeing it, I have ntfy tell me if there is something new in paperless. When I left Host Hero I was approaching 200 email addresses, I think it was 197? Sure many of them probably were not recieving email anymore but and most of them where no longer forwarding to my main address because I only needed them for whatever service but would highly recommend getting an email service with a wild card option.
My switch over to easyDNS was also when I was getting more into self hosting, more than pihole and cups at least (never have I ever attached a printer to the internet sure I have used its wireless features but not the ones that required an email address for). So a VPS and the email server was all I wanted, well to be fair for the first month I was hosting the webpage from home but decided a VPS would be better not that I expect any real traffic or anything just one less attack surface.
It drives me up the wall when I see someone with unread emails, like my grandma who has 100+ unread emails on her ipad.
I have been using https://github.com/s1t5/mail-archiver and I love it!
I will have to bake this off with Bichon and OpenArchiver from the looks for it :) - thanks for sharing!
I’ve been using Bichon for a few months and I think it’s fantastic. It’s easy to set up, connect to multiple accounts, automate, download as regularly as you’d like, search, filter, sort emails, etc. etc.
Noted. From the quick overview video seems to have a variety of tools to help with the overall mail management for sure. Thanks!
Use this too, also only for a few months but seems to work reasonably well.
Heads up if you are one of the people who likes hdds to spin down when not used, Bichon is one of the services that seems to not allow that.
I haven’t started yet but I was also looking for a way to store my emails locally.
What I want to try is to have dovecot managing a Maildir+ folder structure. That way (unless someone tells me it’s a stupid idea) my mail archive remains human readable even if no specialised app can open them for some reason.
I can keep reading the emails in my IMAP providers with whichever MUA I prefer, and connect that MUA to my local dovecot in order to move the emails from IMAP to local storage.
I guess that translates well to selfhosted too.
Syncing to dovecot is what I landed on eventually too. Maildir format is plain text files so you can run backups on them as well as get the benefit of IMAP access so you can point an email client or webmail app at it to do searches and reorganizations.
FWIW I’ve tried it the other way around, to sync from live IMAP mailbox to disk files and then convince dovecot or another private IMAP server to serve them read-only and it can be done but it’s a pain in the butt. Plus, it only gets you the ability to search but not to handle and reorganize the archive.
The main trick is to neatly separate any handling and organization you do in the live mailbox from the organization you do on the private side. I achieve that by having a folder called
Archiveon the private server that doesn’t exist on live and I do all long term storage reorganization in there, while folders and changes on live get propagated to their own folders.Not that I know much on the best practices, but, it sounds very similar to how people using Outlook archive and backup (if people still do this) their PST files. I won’t say it is a bad idea :) - appreciate the input!
Run a mail server, don’t connect to the internet though, just connect to it over vpn or something.
Still searchable, off the cloud.
Still on my todo list. I intended to go with notmuchmail which apparently can deal with decades of mail easily.
Thanks will check it out!
deleted by creator






