this post was submitted on 21 Nov 2026
252 points (96.3% liked)

Selfhosted

64243 readers
752 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
 

No, that's it. I am f#*&@-ing done. I went from gmail to tuta to proton. Now I hear something like FastMail. Some say privacy, some say security, but what they never say is corpos gonna corpo.

No, I am done using third party services. This may be a Sisyphus task, but I want to self host a mail server even if 60% of it goes to another person's spam.

I've heard about Dovecot and some other services. While searching YouTube, I came across a defunct channel that still has this old video that gives instructions to selfhost email: https://www.youtube.com/watch?v=9zP7qooM4pY

Cherry on top would be to have as many parts with the GPLv3 license as possible.

Any guidance or instructions would be greatly appreciated. I have a domain name and I am currently hosting a small webpage for fun. Nothing serious.

you are viewing a single comment's thread
view the rest of the comments
[–] MuttMutt@lemmy.world 90 points 2 weeks ago (6 children)

Here is the issue with self hosting email. Residential ip's are pretty much verboten from being able to receive email by the big companies. That means everything you send it will be automatically deleted. That's if you can even set it up to work as most ISP's block the needed ports. No a VPN won't fix this or solve the problem. You can receive with no problem but to send you will need to use something like SMTP2go or if your ISP is capable (and willing) they can send.

If you want someone to blame look to the Spammers and Hackers of the world.

I'm in the process of moving everything I do to self hosted as much as possible. Email is a bigger nightmare than web hosting at home. The only other option I can find (for self hosting) is collocation of your server in a data center.

[–] danielquinn@lemmy.ca 24 points 2 weeks ago (1 children)

Surely you get set up everything you need on a VPS though, right? You can even rent a Raspberry Pi in a rack in the UK if you want and that'd work for email, right?

[–] MuttMutt@lemmy.world 28 points 2 weeks ago (2 children)

Correct, a VPS or a Raspberry pi in a data center can be used. You would still need to install the software and configure it.

[–] carloshr@feddit.cl 14 points 2 weeks ago (1 children)

Actually you can just rent a small vps with a provider that allow outgoing port 25 and reverse DNS just to send email. The receive part can be configured in your home server. That's what I'm trying to do, but I've only configured the sending server.

[–] 30p87@feddit.org 4 points 2 weeks ago (1 children)

I have both, a VPS with wireguard to bridge it into my network as exit point, and a dedicated bridge from an IPv4 provider.

The latter costs a few bucks and gave me a very reputable IP with rDNS etc.
The former also supports rDNS, but the IPv4 I got was flagged by multiple spam blockers and needed some work to unblock with all those blocklists.
Postfix + dovecot are on my main server behind a residential IP, where I can without problems communicate with clients (IMAP/POP + SMTP) and receive mail (set the IP as MX with lower prio number to force it as first choice for remotes to connect to SMTP with), but not outgoing SMTP (called 'smtp' (mail sending/forwarding) in contrast to 'smtpd' (mail receiving) in postfix). That's specifically routed through the IPv4 provider and then the VPS (IPv4), or directly through the VPS (IPv6).

[–] carloshr@feddit.cl 2 points 1 week ago (1 children)

What is the ipv4 bridge provider you use?

I paying a 2USD VPS in IONOS with posfix as SMTP server.

[–] 30p87@feddit.org 1 points 1 day ago

https://edv-kossmann.de/festeipv4, as recommended by my ISP. They send out a little router that needs to be in your network (maybe better to put it in a VLAN).

[–] NotSteve_@lemmy.ca 4 points 2 weeks ago (1 children)

Wait, I know colocation in datacentres is a thing but can you actually collocate raspberry pi?

[–] frongt@lemmy.zip 6 points 2 weeks ago

You can put whatever you want in your rack allocation. You could put a Sega Dreamcast if you wanted.

[–] neidu4@piefed.social 18 points 2 weeks ago

Seconded. I used to selfhost email, and it's a pita. Doable, sure, but in my case I concluded that it just wasn't worth it.

[–] Wildmimic@anarchist.nexus 10 points 2 weeks ago (2 children)

If you want someone to blame look to the Spammers and Hackers of the world.

But don't forget the reason why all of this is necessary: email was created by hippies, and therefor any kind of security was really not on their minds when they built this stuff ;-)

[–] Spite_By_Design_LLC@lemmy.dbzer0.com 14 points 2 weeks ago (1 children)

Ah yes, the hippies at ARPANET

[–] Wildmimic@anarchist.nexus 16 points 2 weeks ago* (last edited 2 weeks ago) (3 children)

That was the network, but email itself is a very hippie thing.

https://en.wikipedia.org/wiki/Jon_Postel

I cite this article regarding his death: https://circleid.com/posts/in_memory_of_jon_postel

Jon loved the outdoors. I know he used to enjoy backpacking in the high Sierras around Yosemite. Bearded and sandaled, Jon was our resident hippie-patriarch at UCLA. He was a private person but fully capable of engaging photon torpedoes and going to battle stations in a good engineering argument. And he could be stubborn beyond all expectation. He could have outwaited the Sphinx in a staring contest, I think.

Edit: Here's a picture of email's hippie-in-chief:

image

Seems like he was a great guy, but security was not on his mind back then.

[–] MonkeMischief@lemmy.today 8 points 2 weeks ago

A bro named "Postel" helped develop Email standards. What a trip. :-D

[–] ssfckdt@lemmy.blahaj.zone 5 points 1 week ago

Bro wrote like half the Internet rules

[–] Blue_Morpho@lemmy.world 10 points 2 weeks ago

Security isn't the issue. The problem is inherent to any system that lets someone communicate with you without your prior approval.

If physical mail cost nothing to deliver, junk mail would be a gigantic problem instead of a nuisance.

[–] DarkSirrush@piefed.ca 3 points 2 weeks ago

I am honestly very thankful I am in Canada, with a good ISP. My (non-static) IP hasn't changed in 3 years, and there are no non-piracy restrictions on it at all. Self hosting email was as easy as following Maddy's setup instructions in a lxc, and pointing Caddy at it. I did set up smtp2go for outgoing mail, just to reduce the chance of it hitting spam on the rare occasion I need to send a personal email, but have had 0 issues receiving.

[–] cpbsy@lemmy.world 2 points 2 weeks ago

For $3 a month, forwardemail will forward both inbound and outbound email for you. You'll still have a lot of work setting up DNS entries and spam filtering, though.

[–] lemmyvore@feddit.nl 2 points 1 week ago* (last edited 1 week ago)

If you want someone to blame look to the Spammers and Hackers of the world.

Side note, blame the people buying what the spammers are selling. Nobody would spam if it wasn't profitable.