[Solved] What do I need to setup for an email-proxy?
from onlinepersona@programming.dev to selfhosted@lemmy.world on 13 Apr 14:42
https://programming.dev/post/48752787

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.

#selfhosted

threaded - newest

dap@lemmy.onlylans.io on 13 Apr 15:04 next collapse

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

ttyybb@lemmy.world on 13 Apr 15:57 next collapse

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

generallynonsensical@lemmy.world on 13 Apr 16:35 next collapse

Wow. Some pretty reasonable prices. Thank you stranger.

fizzle@quokk.au on 13 Apr 23:34 next collapse

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 on 14 Apr 07:07 collapse

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

onlinepersona@programming.dev on 14 Apr 07:05 collapse

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

Brkdncr@lemmy.world on 13 Apr 15:41 next collapse

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.

UnpledgedCatnapTipper@piefed.blahaj.zone on 13 Apr 17:31 next collapse

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 on 13 Apr 23:30 collapse

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.

SirHaxalot@nord.pub on 13 Apr 18:50 next collapse

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)

NotEasyBeingGreen@slrpnk.net on 13 Apr 19:58 next collapse

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 on 14 Apr 06:59 collapse

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 on 14 Apr 10:06 collapse

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

Decronym@lemmy.decronym.xyz on 14 Apr 01:40 collapse

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

3 acronyms in this thread; the most compressed thread commented on today has 4 acronyms.

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