this post was submitted on 24 Nov 2026
34 points (97.2% liked)

Selfhosted

64064 readers
542 users here now

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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

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!

you are viewing a single comment's thread
view the rest of the comments
[–] lemmyvore@feddit.nl 3 points 3 days ago (3 children)

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 mbsync or imapsync CLI 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 the imapclient library (available in pip).

Hope this helps.

[–] sean@lemmy.sean.land 1 points 3 days ago (2 children)

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!

[–] lemmyvore@feddit.nl 2 points 3 days ago (1 children)

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.

[–] sean@lemmy.sean.land 1 points 3 days ago

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.