this post was submitted on 19 Jul 2026
66 points (98.5% liked)

Selfhosted

60810 readers
516 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
 

I have started moving away from gmail and have started exporting my older e-mails via the takeout option. This generates .mbox files. I don't really use any e-mail clients on my computer and do most of my e-mailing on my phone, so I don't have a way of viewing/searching those files.

Therefore I was wondering if there is any selfhosted option for some kind of e-mail archive/viewer with decent search function that anyone can recommend? Specifically something capable of handling those .mbox files. I found a few projects that sounded promising, but they seemed either dead, weren't setup for selfhosting or could only connect directly to the mailboxes. So I thought I'd ask here if anyone has experience with this, maybe some recommendations?

Also open to alternative approaches what to do with those files. I just would like to delete these mails from gmail entirely, but that requires I can search them with as much ease as I can on gmail with a local option.

Thanks!

you are viewing a single comment's thread
view the rest of the comments
[–] gedfromgont@piefed.ca 4 points 1 day ago (2 children)

Would that be simple to do though? Hope I am not starting yet another discussion thread about selfhosting e-mail, I know there are different views how hard/easy it is. I guess here its restricted to just the viewing part, which is maybe the easier bit.

Downside I see for this, I'd like to also be able to access this on my computer, where I use webmail only. So I got no client set up. Yes, can of course do this just for that use case, but its again something extra I don't need otherwise. Also, on the phone I use Thunderbird, it seems to have an atrocious search function. So that wouldn't feel great to use either.

But definitely a valid idea I didn't consider, thanks!

[–] curbstickle_lw@lemmy.world 6 points 1 day ago

The hard part is making sure your email server works with others.

Standing up an email server that is otherwise inactive aside from login? Perfectly easy, no send involved.

[–] mbirth@lemmy.ml 6 points 1 day ago* (last edited 1 day ago)

dovecot/dovecot and solr should do the trick. At least they do for me.

EDIT: Two advantages of this setup for me: I can easily drag&drop emails from my other email accounts to this "archive" account in Thunderbird. And once I want to "seal" an archive folder, I can gzip the underlying mbox file and make it read-only (dovecot needs to be configured to store mails in mbox files).