19
submitted 2 years ago* (last edited 2 years ago) by onlinepersona@programming.dev to c/selfhosted@lemmy.world

Basically, I'd like to have my own domain e.g onlinepersona@mydomain.com but not go through the hassle of hosting my own email service: I'd like to use another service that handled SPF, DMARC, and whatever else for me, grab the emails from their service using POP, and make it available to my email client on android and Linux using IMAP. SMTP will be through the third party.

This way, if the third party starts doing some bullshit like trying to lock me in, donating to a dickhead, or whatever else I disagree with, I can cancel my subscription, move to another third party, and keep all mails on my server.

How can I achieve this? Which search terms should I be using? "Self host email server" brings up stuff that's the equivalent of self-hosting gmail, AOL, posteo, kollabnow, or whatever, but that's not what I want. "Selfhost POP relay" doesn't have much better results, always bringing up SMTP relay...

you are viewing a single comment's thread
view the rest of the comments
[-] just_another_person@lemmy.world 2 points 2 years ago

You're describing a mail client. Why would you need an IMAP server?

[-] onlinepersona@programming.dev 1 points 2 years ago

Does your POP mail client sync across android and Linux (3 devices BTW)? Do share it!

Anti Commercial-AI license

[-] just_another_person@lemmy.world 4 points 2 years ago

I'm confused about the POP requirement if you're not already using a specific service. Every mail server has IMAP.

[-] onlinepersona@programming.dev 1 points 2 years ago* (last edited 2 years ago)

This way, if the third party starts doing some bullshit like trying to lock me in, donating to a dickhead, or whatever else I disagree with, I can cancel my subscription, move to another third party, and keep all mails on my server.

I would like to be able to change providers and have the emails available on multiple devices.

IMAP allows multiple devices but leaves the emails on the server. POP pulls them from the server but that means they aren't available to other devices anymore.

The solution (I think) is to pull using POP onto a shared server, then make the pulled emails available using IMAP.

Anti Commercial-AI license

[-] just_another_person@lemmy.world 1 points 2 years ago

It wouldn't work the way you're imagining, at least not by default. You're thinking of using IMAP as an archive of sorts, but that's not how it organized data. The exchanged mails between the IMAP host and the MTA need a unique identifier to organize contents of the DB, and this would not be possible or automatic if your switched the upstream MTA.

Maybe you could run an interchange of sorts that pulls mail and acts as another interim MTA and pushes them to something to achieve what you're going for. I'd be shocked if you found anything that documents a solution like this because it's 100x easier to just organize multiple accounts and have local organized archives.

[-] IsoKiero@sopuli.xyz 1 points 2 years ago

The exchanged mails between the IMAP host and the MTA need a unique identifier to organize contents of the DB, and this would not be possible or automatic if your switched the upstream MTA.

It sure is possible. I've copied maildirs over different software, different servers, local copies back to the server and so on. Also if you just rely on your own IMAP server the upstream doesn't matter as fetchmail (or whatever you choose to use) anyways communicates between hosts on their preferred protocols.

Obviously there's a tradeoff since now you're responsible for your backups and maintaining your server, but it can sit nicely on your private LAN with access only locally or via VPN without direct access to the internet. And you don't need MTA to run IMAP server in the first place.

this post was submitted on 26 Feb 2025
19 points (95.2% liked)

Selfhosted

62781 readers
594 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