this post was submitted on 12 Nov 2023
3 points (100.0% liked)

Self-Hosted Main

502 readers
1 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.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

I'm contemplating taking control of my email by moving away from mainstream providers like Gmail or Outlook. What self-hosted email services have you tried, and which ones do you find most reliable and user-friendly? Are there any challenges or advantages you've encountered in making the switch?

top 50 comments
sorted by: hot top controversial new old
[–] Ok_Construction4430@alien.top 2 points 10 months ago (2 children)

I wouldnt selfhost my e-mail. You will quickly be blacklisted since your server wont have a good reputation and will have issues sending out emails to peers.

[–] bermudi86@alien.top 1 points 10 months ago

I love these pessimistic, ignorant takes because at the end of the day I get more money running (setting and basically forgetting) email servers for paranoid people.

Send your marketing emails from somewhere else and you'll never have issues

[–] smileymattj@alien.top 1 points 10 months ago

Rackspace gets blacklisted exactly twice a year, like clockwork. So how’s it any worse?

[–] ElevenNotes@alien.top 1 points 10 months ago (3 children)
[–] mnopw@alien.top 1 points 10 months ago (1 children)
[–] cusco@alien.top 1 points 10 months ago
[–] kuzared@alien.top 1 points 10 months ago (1 children)

Wouldn’t the cost be prohibitive for selfhosting?

[–] ElevenNotes@alien.top 1 points 10 months ago

No 🏴‍☠️, we talk selfhosted, not business.

[–] firebird789@alien.top 1 points 10 months ago (1 children)

Alternatively if you use SOGo for groupware/webmail it serves Exchange ActiveSync. No windows server needed!

[–] ElevenNotes@alien.top 1 points 10 months ago

Not 100% though because CalDAV.

[–] huffiy@alien.top 1 points 10 months ago (2 children)
[–] kurucu83@alien.top 1 points 10 months ago

Second vote for MAIB.

[–] flunky_liversniffer@alien.top 1 points 10 months ago (1 children)

3rd for MIAB. I use Linode. I believe most ISP's restrict access to mail ports so running at home is probably not possible.

load more comments (1 replies)
[–] rnlagos@alien.top 1 points 10 months ago

Modoboa + Thunderbird

[–] firebird789@alien.top 1 points 10 months ago (2 children)

Mailcow is pretty straightforward to setup and has good documentation. No matter what you choose though be prepared to put a decent amount of work into it. I also recommend using an SMTP relay like SendGrid or Mailgun. That way you don't have to worry about deliverability as much. If you're not planning on sending a lot of email (<100 emails a day for SendGrid) you can use their free tiers.

[–] nixblu@alien.top 1 points 10 months ago

Unfortunately it’s slowly becoming deprecated (I think)

load more comments (1 replies)
[–] FateOfNations@alien.top 1 points 10 months ago (1 children)

Might not be the answer you are looking for: I would strongly advise against self-hosting your main email, especially if you are thinking about doing it on an IP address from a residential ISP or VPS/cloud provider. Unfortunately those kind of addresses have bad reputations for spam, and you will run in to significant deliverability issues at minimum. Some providers flat out block port 25, which makes sending and receiving unauthenticated email impossible (which is required to operate an “email provider”).

load more comments (1 replies)
[–] joschi83@alien.top 1 points 10 months ago

https://mailbox.org/ and https://tuta.com/ are pretty neat providers.

After hosting my own email in the 1990s-2010s, I've been cured of that and rather give some dedicated vendor a few bucks a year to take care of all the headaches for me.

[–] maximilian_-__-_@alien.top 1 points 10 months ago (3 children)
[–] NiftyLogic@alien.top 1 points 10 months ago (2 children)

Agree with Proton Mail, awesome service.

Was thinking about self-hosting my email server, but Proton is just €40/year for me. Even if I value my time at only €20/hour, that means I have just two hours per year to fix issues with my email to break even.

Sure, this is /r/selfhosted, but issues with email are usually not some config changes on my side, which can be easily resolved by rolling back my latest changes from git.

Most of the issues arise from some asshat at email provider X deciding that I'm no longer trusted and blacklisting me. Resolving that issue is more like office politics than tinkering with my setup. Pretty happy if I can live my non-work life without any additional office politics.

Thanks, but no thanks.

[–] lilolalu@alien.top 1 points 10 months ago

There is the middle ground of retrieving your mail from a mail Provider and serving it from a self hosted IMAP. That way you don't handle in- outgoing smtp but handle it locally.

[–] Thutex@alien.top 1 points 10 months ago

i've been running my own mailserver for about 10 years.
last time i've had to look at it was 2y ago (and that was because i was using quite strict blocklists, had 1 not 'optimally configured', and that one discontinued service, causing me to be forced to remove it from my list)

honestly, once it is running as you need it to, and you have all the regulars set up for your domain (dmarc/dkim/spf) it's not all that much work.

blacklisting is pretty much a non-issue if you are using a decent provider (i.e. one that does not have 100 spammers on its network) and you are not spamming out yourself.

in 10 years i've had 1 or 2 blacklists - both from long before i was using dkim/dmarc/spf and also both due to the ip range (which was fairly straightforward to get my own ip out of the list)

[–] mikandesu@alien.top 1 points 10 months ago

It's currently on yearly black friday offer.

load more comments (1 replies)
[–] wyrmroot@programming.dev 1 points 10 months ago

Rather than self host, I switched to Protonmail. I use a custom domain with catchall addresses enabled, so I can have an arbitrary number of email addresses grouped by what service it relates to, along with plenty of filtering and organization rules. So far it’s been nothing but upside, honestly.

[–] FalseRegister@alien.top 1 points 10 months ago

I found a lot of good info in r/degoogle and r/privacy

Ended up with MailFence

[–] Adures_@alien.top 1 points 10 months ago

To "take control of your email" I recommend buying your own domain, but not self-hosting.

Having your own domain will allow you to migrate from one email provider to the other, as you stop being locked in to them with their domain.

If you do not want to use Google or Microsoft, I recommend mailbox.org (used this one for a long time, but had to change, because I wanted to send emails from my aliases). Tutanota is also good choice.

Protonmail is also there as one of the more popular alternatives to Microsoft and Google, but I find them too expensive.

Why am I not recommending self-hosting email on self-hosting reddit? Unlike other services, which you can host at your home (which simplifies a lot of stuff and allow you to avoid subscription), you pretty much need VPS for selfhosting email. If your needs are simple, both mailbox.org and tutanota will cover your email needs for 3 euro per month. You don't have to think about security, spam, email delivery, building trust with other email providers. It's their responsibility, not yours. Good luck doing it cheaper on VPS.

I personally use M365 business basic, it's very reliable but exchange online might not be user friendly. However price to value ratio is just unbeatable.

[–] scalyblue@alien.top 1 points 10 months ago (1 children)

Trust me you do not want to point an MX record at your houses IP. It’s a terrible idea, dont do it, I don’t have the energy to qualify that statement but just trust me, don’t.

[–] Joyfulsinner@alien.top 1 points 10 months ago

I’m sorry but a statement like this make me not trust you at all. Take an strangers word for something with no evidence…. This is how a mob of ignorant people do stupid things.

[–] Arphenyte@alien.top 1 points 10 months ago (1 children)
[–] emperorralphatine@alien.top 1 points 10 months ago (1 children)

this is the way if you have a little patience and aren't afraid to learn.

[–] zekthedeadcow@alien.top 1 points 10 months ago

I got a 10 year credit due to a server outage that I didn't even notice. Dude takes his service seriously.

[–] bzImage@alien.top 1 points 10 months ago

5 usd a year vpc.. and host your own domain and mailserver

[–] EnricoSuavePallazzo@alien.top 1 points 10 months ago

Purelymail.com -- based on a similar thread here 6 months ago. They are very affordable, and I have 5 different domains hosted with them. They only bill based on traffic and storage. I liked being able to have multiple domains without any additional charges.

[–] su1ka@alien.top 1 points 10 months ago

My setup is: Namesilo for domains, Hetzner VPS with autobackup, Mailcow selfhosted. (Few manual updates with backups per year). Just copy paste steps from Obsidian notes. Cloudflare DNS just in case of ddos etc.

I have 3 domains with maybe 6 emails and catch em all. I do not send/receive a lot. Maybe 5-10 emails per day. Most of them are notifications from systems.

All good. I'm happy.

[–] ddpbsd@alien.top 1 points 10 months ago

Postfix or opensmtpd and dovecot probably

[–] gowithflow192@alien.top 1 points 10 months ago

If you self host you are at the behest of your domain registrar.

[–] thehoffau@alien.top 1 points 10 months ago
[–] Thutex@alien.top 1 points 10 months ago

self hosted mailserver here (on an old, dedicated vps)... just dovecot/postfix/mysql and the usual (amavis & spamassasin) - if i need to add/edit/delete users or domains, that's just a bash script.

there's lots of other options already mentioned, but you could also consider aws for this: you set your domain up with them (or verify it), set SES to forward inbound mails to wherever you want, and set your mailclient to send out through ses.

antispam & dkim/dmarc/spf included.

[–] Nassiel@alien.top 1 points 10 months ago

Maddy self hosted + Blue mail as client for phone. But be ready to be DMARC compliant :) not difficult just annoying.

[–] ohv_@alien.top 1 points 10 months ago

Eh Exchange

[–] Sinister_Crayon@alien.top 1 points 10 months ago

Personally I DO self-host... and I have very few problems. I get blacklisted occasionally but it's not been a huge concern and is usually only the low-priority blacklists... I did have to go through jumping through hoops early on to get my IP accepted but I haven't had problems in years.

For my mail server these days I use Docker Mailserver. It's really complete as a server (no frontend though) for setting up a really good IMAP/SMTP server. I have a full docker swarm cluster running here that keeps it VERY reliable. For a frontend on my desktop I use Evolution or Thunderbird (I'm a Linux user).

For a web frontend I have a few I have played with. My current "primary driver" is Snappymail acting as a plugin to my NextCloud instance. However I've had good experiences using E-Groupware which is VERY feature complete as an Outlook alternative.

Hope that helps!

[–] PaulEngineer-89@alien.top 1 points 10 months ago

Disagree with 99% of the other posts. If you self-host your email it is archived on your system. So-called “private” email isn’t after 6 months in the US. And it is more stable and higher performance to run my own Roundcube webmail on my own server. And I can control the spam filtering. All reasons to host your own.

However there is some “maintenance” involved with unscrupulous black list sites and overzealous email filter software. Google likes to declare basically everything not coming from their buddies as spam Microsoft wants you to kiss the ring. On a work account just this week I tried contacting a German company called Beckhoff and after just 3 “dead” email accounts from previous contacts they decided to ban my entire company (about 100 employees, been in business over 75 years). They also don’t answer their phones. Not sure if they’re still in business or just being German jerks. As a result of their poor performance we may switch to a competitor. I do not put up with that crap.

Also I’m not sure how to phrase this politely but despite promises unless you are using PGP to end-to-end encrypt your email, and even then it’s not 100%, you can’t ever totally make it private. Also it is impossible to totally ensure identity of the sender although we’ve come a long way. Protonmail recently published how they delivered a criminal to the authorities using the small amount of public information they log.

As a result I do agree that you should let someone else deal with the black listers, bans, etc. But I strongly disagree with keeping it on a remote server more than about 10 minutes. That means one of three options (for receiving:

  1. If you have a static ipv4 IP use the email service on Cloudflare to act as a mail relay and forward email to your server. Thus Cloudflare’s reputation not yours is what matters.
  2. If you don’t have a static address, you can rent a VPS. Low end box (lowendbox.com) has some great coupons all the time. You can get easily under $12/year. In this case tunnel from your actual server to the VPS. We really don’t “need” the VPS.
  3. Pay for a forwarding server. I used Dynu in the past. Never had an issue. It was I think $10/year. Again this assumes you have an accessible server on a static or dynamic ip. And you are basically paying for what Cloudflare does for free.
  4. Pay for webmail. Again Dynu is $20. Then just program your local webmail to call imap and download everything say every 5 minutes. But it limits you to ONE user or each user doing their own thing.

On server dovecot and sendmail work well. Roundcube looks exactly like an improved gmail.

For sending I use smtp2go. At my low usage entire family is free.

[–] chilanvilla@alien.top 1 points 10 months ago

iCloud mail is working great for me and it's totally free. Apple does the hosting, you'll need to own your own domain, and you can use one email address with it (not sure if here is a way around that).

[–] itsupport_engineer@alien.top 1 points 10 months ago

Zextras Carbonio [ https://zextras.com/carbonio ] self hosted all the way.

[–] HoustonBOFH@alien.top 1 points 10 months ago

The problem with selfhosting email, is that unlike other self hosted things, it lives in a distributed system. It has to talk with other mail servers and they have to talk back. The second part is hard due to spam measures...

For just the software side, you have a few options. Mail cow, iRedmail, and Mailinabox are very popular. Linuxbabe has instruction on how to build it from scratch using postfix. (Good to learn, but a LOT of work) But recently I stumbled on Modoboa. It does not need docker, so you can run it alone. It is not split foss with everything good behind a paywall. And it does not install unneeded apps like DNS for no reason. But keep in mind that I have only evaluated it so far and not yet put it in production.

Now for the other needs... To receive mail, you will need a static IP. Theoretically, you can get by with a dynamic DNS, but it will not go well. Your IP will change, and it will still be cached and you will lose email.

To send mail... (This is a lot more) You will need a clean static IP, with a fqdn and ptr record matching. It will need to be clean, and not in a blocked range of IPs. You will also need SPF and DKIM records, and may need dmarc. And you will need to warm up the mail server and maintain it's cleanliness. Or you can contract out your outbound to other companies like MXroute. If you farm out your outbound, it eliminates most of the complaints above. If you have the skill, you may be able to only route Microsoft and Google destined email, and direct deliver the rest yourself. (I am working on this)

[–] MammothMarch@alien.top 1 points 10 months ago

Proton mail

[–] factulas@alien.top 1 points 10 months ago

Being this is self hosted, I have heard great things about redmail once you get it configured. Soon, to give it a shot. Made it past my 15GB on Google and would rather pay for a droplet.

[–] reviewmynotes@alien.top 1 points 10 months ago

If you know what you're doing, MailCheap is an option. I picked that a few years ago and MXroute was a very close second choice for me.

load more comments
view more: next ›