this post was submitted on 12 Nov 2026
134 points (96.5% liked)

Selfhosted

64037 readers
734 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
 

This Microsoft outage being the last drop in the bucket, I'm looking to get my email/calendar/contacts somewhere under my control.

As I already self-host a number of things (e.g. my Linux ISO collection), and have services exposed to the internet, it would make sense to run it at home.

After all, it's not heavy lifting. It's not hosting 500+ mailboxes for 100+ people. It's just little old me, with a handful of domains, catch-all receiving and a few dedicated sending addresses.

However email is a bit more mission critical than my smarthome control or self hosted LLMs. Downtime could be critically bad, and I still don't trust my home setup to be truly 99.999999% available.

I don't mind paying for a service but if I do I'd prefer something European, given I'm based in the UK (and otherwise am an EU citizen).

I'm really curious how y'all solve it. I guess I'm interested in some kind of hybrid solution where there's my own server and a hosted service, latter which acts as a backup solution, but still fully synced, so if my internet or power goes out (or my server goes down), I can still get mail sent and delivered.

So I'm not only just interested in the stack you run for email but the entire infrastructure, especially if you've solved this sort of off-site fallback service.

(page 2) 50 comments
sorted by: hot top controversial new old
[–] Reannlegge@lemmy.ca 2 points 1 week ago (1 children)

What all is down from Microslop?

For Calendar/Contacts I use baikal. I thought about hosting my own email because my host really had me over the coals for what I was doing with it, I started researching and thought it could be fun. I bought a throwaway domain and had one of my static IPs setup for the port 25 being opened up I spent a week trying to do things, most of the Lemmy posts I found and most of the personal things like blogs I was looking for said do not self host your own email.

My previous host was HostHero, they did not have a wildcard email function so I needed to buy the unlimited email package because I do not use the same email address or password for anything. My new host, easyDNS, does offer a wildcard option so I can have unlimitted email addresses.

Why do I use a a different email address for everything? I can just close an account once I no longer use the service or once they start getting spammy, I get next to no spam.

I am not a EU citizen, I am Canadian! So when Trump came in and did his whole 51st state BS I jumped on the boycott Amarica train fast so the Apple services I was paying for stopped, one of which was hide my email so I got Proton, I found out the CEO was a simp for Trump so I was going to host my own and as I said I discovered it is not a simple thing even if I was going to do just one email address.

But I strongly do suggest find a host in the EU, that offers a wildcard option. All though it sounds like you have a good handle on things email is something else.

[–] Cyber@feddit.uk 2 points 1 week ago (1 children)

Why do I use a a different email address for everything? I can just close an account once I no longer use the service or once they start getting spammy, I get next to no spam.

This is really useful and I do this too with the service / product name as the "name" (ie microsoft-mail@mydomain.tla)

It's interesting to see how emails are sold / transferred over time...

[–] Reannlegge@lemmy.ca 2 points 1 week ago

I have a formula (service name)-(local slang)(three random numbers)@mydomain.ca that way I can use free trials if I still need the service (I have only done this 2 or 3 times, not saying that I wont do it again but hey when in Rome) it also allows me to have multiple accounts with the same service for different purposes.

If I use a service than stop, forget about it. The email is almost definitely going to be sold so when I get spam I will close the address, if I stumble upon the service again and think oh cool I should try this vaultwarden via bitwarden may say here are your sign in credentials I will try signing in and it will tell me this account is no longer active so I need to create a new one.

My orignal plan was (service name)@mydomain.ca but than I came across the wanting extended free trial so I thought (service name)2@mydomain.ca, some are fine with that some are not. I like throwing in the fluf just to keep bots off of my trails.

[–] oantby@lemmy.today 2 points 1 week ago

I (not EU) self host my email on a vultr VPS. I use the classic dovecot + postfix setup, IMAP for clients, spamd (spamassassin) for extra filtering, etc., etc.. I've got SPF+DKIM+DMARC, a couple different domains, the whole nine yards, just for hobbying that's grown over the years for family members.

All that said, unless you're pretty dang familiar with all those things, I personally would agree with the several people who have just pointed to smaller-time email providers that support custom domain names. It gives you the control to pull it back to your own server later if you want to take on that endeavor (via simply DNS updates), but means you don't have to worry about the complex bits now. I would definitely not recommend hosting it in your own home - not because of availability issues or anything like that (as others mentioned, legitimate email providers retry by policy, so you don't need quad-nine uptime), but because most residential IPs, at least by default, are going to get blocked by most providers for being on a common policy blocklist - that is, your ISP likely tells e.g. spamhaus that your IP is residential and shouldn't be sending email. If you have a business internet plan, that changes. And I could also be wrong for UK; I've just got US knowledge on that particular bit.

If you're familiar with all the bits of SPF, DKIM, and DMARC and want to go for it, a VPS would be my recommendation. Note: many block outbound to port 25 by default to prevent spam bots abusing their IPs, so you'll need to keep that in consideration. Otherwise, one of the email providers mentioned is probably a good bet.

[–] oddsys@lemmy.world 2 points 1 week ago

Hosting in Aus, dovecot + postfix. It's been solid.

[–] gopher@programming.dev 2 points 1 week ago* (last edited 1 week ago) (1 children)

I run mailcow on a vps on a smaller, reputable, European host. I started out with Hetzner but there I had problems with delivery due to a bad neighbourhood. It really helps with a host that cares and take abuse seriously.

After moving it's mostly been good. I don't have any issues with outgoing mail, all seems to land fine on both gmail/outlook etc. It's pretty low effort, just need to stay on top of upgrades since there are internet exposed services.

Here is also a good post about best practice for smaller servers: https://bridge.grumpy-troll.org/2020/07/small-mailserver-bcp/

I have a filter that encrypts all incoming mail with my pgp public key, for added security (this is not bullet proof as it has to sit after rspamd but should make it harder to read any mails in case of any kinds of breaches).

[–] alibloke@feddit.uk 1 points 1 week ago (1 children)

Mailcow encrypts mail by default

[–] gopher@programming.dev 1 points 1 week ago* (last edited 1 week ago)

Yes, but the decryption key is on the server.

With pgp only the public key is there.

Also it protects against say leaked IMAP credential.

[–] mattof@lemmy.sdf.org 2 points 1 week ago

Mailo.com is a privacy friendly email provider in France. As far as I know they do only email.

Recently they upped the prices a bit, my account is from before that, and payed 60 euro for five years.

[–] ABetterTomorrow@sh.itjust.works 2 points 1 week ago (1 children)

I’m going back to my KISS mindset.

I got the Mozilla ThunderMail invite and using ThinderBird for the client. It’s all basic, direct and just works.

[–] Willdrick@lemmy.world 1 points 1 week ago (1 children)

I'm really tempted, but seeing the Mozilla graveyard, I'm weary of switching properly to it.

True…. But to be fair, some of those ended up coming back and getting integrated within their browser and like the Send, that’s in thundermail now.

Side note, I didn’t know they made a mobile OS and it’s still alive within another fork.

I think a James Bond title fits Mozilla, “die another day” :P

[–] cmnybo@discuss.tchncs.de 1 points 1 week ago (1 children)

I'm using Purelymail with my own domain for email hosting. It's been working very well for me. It supports CalDAV and CardDAV for calendar and contacts. It's US based though.

I would recommend paying for an email hosting service. As long as you use your own domain, you can switch email providers and keep your email addresses. If you have a static IPv4 address, you can host your own inbound email and just use the hosting service for outbound.

[–] farting_gorilla@lemmy.world 2 points 1 week ago

Seems pretty nice, has kind of a personal touch and is a small shop, and hard to beat the price...but US-based, using AWS, privacy/terms of use leave a little to be desired...

[–] Ertain@feddit.online 1 points 1 week ago

I know the feeling. I've self-hosted my email for a number of years. I'm currently migrating it to a new server and there are many living parts. I would use something like Docker since that's easie rto migrate or upgrade. But the VPS I'm using barely has any RAM.

[–] alibloke@feddit.uk 1 points 2 weeks ago (1 children)

I solved it with mailcow dockerized and an LT2P service for a non residential static IP. Works great, regular updates & patches and super reliable.

You can set up a fallback using their supplied script to make a cold backup in the cloud if you need to, but I've never had to bother. I also use another of their scripts to properly dump the db and files to my NAS and then I use borg to copy all the things to Hetzner.

[–] fonix232@fedia.io 0 points 2 weeks ago

I've been debating between Mailcow and Stalwart (or Maddy), as well as Modoboa.

The fallback isn't a cold backup though - it would be the same server with the same data (ideally) being made primary in case my own server is down.

[–] silenium_dev@feddit.org 1 points 2 weeks ago* (last edited 2 weeks ago)

I just pay Hetzner 2.50-ish euros per month for their cheapest mail hosting offer and call it a day. I did self-host mail for quite some time, it was a huge PITA to set up and keep working. Every now and then I even had issues with my mails not being delivered to outlook addresses (f u M$), so I just gave it up and switched to Hetzner. Their cheapest plan even includes one domain, so depending on the domain you choose, it's not even 1€ per month for the actual email hosting

[–] christov@lemmy.world 1 points 1 week ago

Agree with most folks here, mail is too hard to self host because of the control larger providers hold around acceptance rules. I use zoho for my email, been pretty solid so far though I'm sure there are others. I use nextcloud for contacts, tried using nextcloud for calendar but had trouble getting it to send invites to people so I just use zoho for calendar as well now.

Off site fallback I sync email, calendar and contacts to multiple machines but I also use back blaze as an off site cloud backup. One day I'll get around to syncing the emails to my home server and also backing those up to backblaze.

This is all for personal use though, if I was doing anything enterprise or mission critical I'd just pay another provider to do it who isn't a vibe coded nonsense factory.

[–] Kichae@piefed.ca 1 points 2 weeks ago

I ended up just paying for a private host. Now's the time of year to find one, with all of the Black Friday/Cyber Monday promotions taking place.

[–] Pissio@lemmy.world 1 points 1 week ago

Docker mail server dms on hetzner , if you set your dns for multiple mx you can have a fallback at home or another dms in a different data center and replicate it with dovecot sync

[–] Zak@lemmy.world 1 points 2 weeks ago (1 children)

I run Maddy on a VPS. It's pretty much trouble-free.

[–] fonix232@fedia.io 0 points 2 weeks ago

I did consider Maddy but I kinda want the other features Stalwart provides.

[–] Creat@discuss.tchncs.de 0 points 2 weeks ago

Do not fully self-host your mail. It'll be constant trouble. Large providers like Google and Microsoft are notorious for blocking them, or never even accepting mail from them in the first place. You can get it unblocked in theory, I hope you like whack-a-mole. Ironically often by eMail.

What you can do is just buy a hosted mailbox (small or no storage), and have a server at home that instantly collected everything (IMAP). It also basically just proxies outgoing mail to them (SMTP). In practice you host and control your mail, without the peering-issues.

load more comments
view more: ‹ prev next ›