this post was submitted on 13 Apr 2026
27 points (93.5% liked)

Selfhosted

60093 readers
933 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

  4. Don't duplicate the full text of your blog or git here. Just post the link for folks to click.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require your active participation in selfhosting or related communities, or the post will be removed. No more than 10% of your posts or comments may be self-promotional, or your post will be removed. F/LOSS Exception: If your post is about a project that is completely open source & can be self-hosted in full without payment, and your account is at least 7 days old, your post is exempt from this rule as long as you continue to engage in comments.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

Solution: FetchMail + Dovecot. Just need to set it up, but it's pretty much what I was looking for.


The goal is to allow easily moving away from an email provider e.g from protonmail to tutanota or fastmail or whatever. How do people achieve this?

I just want to have myname@mydomain, the emails to go to whichever managed email service that allows it, and to then grab everything from that service with POP to then self-host a proxy that multiple devices can connect to. STMP can go either to my hosted server or the managed host, doesn't matter.

The idea is explicitly not to do the job of a managed email service. No DKIM, no SPF, no DMARC, none of that.

Distro is NixOS, but can adapt any instructions given. Mentioning just in case somebody already has a nix configuration with this setup.

all 17 comments
sorted by: hot top controversial new old
[–] dap@lemmy.onlylans.io 8 points 2 months ago (4 children)

Might want to check out addy.io. It's a managed service, but I think it supports your use case.

[–] fizzle@quokk.au 2 points 2 months ago (1 children)

If i understand correctly addy.io just forwards incoming email to another public facing server. So OP would need to configure and selfhost their own server, even if it only ever receives mail from and sends mail to addy.io.

This might be a potential solution, but I dont think its really what they wanted.

[–] onlinepersona@programming.dev 1 points 2 months ago

Indeed. The solution to what I actually wanted is here.

[–] ttyybb@lemmy.world 1 points 2 months ago

I've been using them for a while and they've been pretty reliable

[–] onlinepersona@programming.dev 1 points 2 months ago

Thanks, it's not what I'm looking for, but a good thing to out in front of the email service.

[–] NotEasyBeingGreen@slrpnk.net 4 points 2 months ago (1 children)

I'm old school, and would set up Fetchmail. It can pull down either POP or IMAP (I haven't used POP in 25+ years, but I guess it works fine still). Then I'd run Dovecot or some other IMAP server on my host to read mail from there.

[–] onlinepersona@programming.dev 4 points 2 months ago (1 children)

Yes, this is what I was looking for! Thank you.

Now I just have to find out how to configure everything to my liking.

[–] fizzle@quokk.au 2 points 2 months ago

My experience with dovecot has always been pleasantly surprising. doveadm in particular. Just the documentation seems less readable than it could be.

[–] SirHaxalot@nord.pub 3 points 2 months ago

Best option is probably to look for providers that support custom domains, so you can point your domain directly to their mail servers. This usually require a paid subscription. Upside is that you retain control over your domain without having to host any email server.

The problem is that by putting a mail relay in between, while technically possible will break the SPF and DKIM chain for all emails that you forward. I don't think there is a good way around this since they check against the senders domain (and assuming that you can't get the email provider to trust your relay server)

[–] Decronym@lemmy.decronym.xyz 2 points 2 months ago* (last edited 2 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
IMAP Internet Message Access Protocol for email
SMTP Simple Mail Transfer Protocol

[Thread #236 for this comm, first seen 14th Apr 2026, 01:40] [FAQ] [Full list] [Contact] [Source code]

[–] UnpledgedCatnapTipper@piefed.blahaj.zone 2 points 2 months ago (1 children)

I'm using Zoho to host my emails for my custom domain (I pay like $15 per year or something). I do have DKIM, SPF, and DMARC configured, as they're not hard to configure, as they're literally just a couple of DNS entries.

Moving to another provider would just be a matter of changing these DNS entries along with your MX record to point at your new provider.

[–] fizzle@quokk.au 2 points 2 months ago

This isn't really what OP is asking about.

They want emails to reside on their own hardware. So zoho might run the public mail server but OPS own server pulls the mail down from there.

[–] Brkdncr@lemmy.world 1 points 2 months ago

Your basically setting up and email server with a gateway service for inbound and outbound mail delivery.

This is typically called a secure email gateway. I’m not sure if there are any designed for personal use.

[–] SteveTech@aussie.zone 1 points 2 months ago (1 children)

Oracle Cloud has their Email Delivery service, which is basically just a straight SMTP proxy, and it's free. I believe proxies still need to be configured as a sender in SPF and have their own DKIM signing key, but Oracle will still send without them, although wildcard senders will require them.

[–] IratePirate@feddit.org 3 points 2 months ago* (last edited 2 months ago) (1 children)

This does, however, mean, you're running all of your emails through an oligarch-owned company and is hardly "self-hosted", right?

[–] SteveTech@aussie.zone 1 points 2 months ago

True, but it's only the sending emails and I don't have to worry about getting my ISP to set PTR records just to pass spam filters. Your domain's MX records still point to your server.