Self hosting email, what's the latest and greatest what FOSS can offer?

https://sopuli.xyz/post/19459498

Self hosting email, what's the latest and greatest what FOSS can offer? - Sopuli

So, as the topic says, I’m going to set up a self hosted email service for myself, family and friends. I know that this one is a controversial topic around here, but trust me when I say I know what I’m getting into. I’ve had a small hosting business for years and I’ve had my share of issues with microsoft and others, I know how to set things up and keep them running and so on. However, on the business side we used both commercial solution and a dirt-cheap service with just IMAPS/SMTPS and webmail with roundcube. Commercial one (Kerio Connect, neat piece of software, check it out if you need one) is something I don’t want to pay for anymore (even if their pricing is pretty decent, it’s still money out from my pocket). I know for sure I can rely to bog-standard postfix+dovecot+spamassassin -combo, and it will work just fine for plain email. However, I’d really like to have calendar and contacts in the mix as well and as I’ve only worked with commercial solution for the last few years I’m not up to speed on what the newest toys can offer. I’m not that strict on anything, but the thing needs to run on linux and it must have the most basic standards supported, like messages stored on maildir-format (simplifies migration to other platform if things change), support for sieve (or other commonly supported protocol) and contacts/calendar need to work with pretty much anything (android, ios, linux, windows, mac…) without extra software on client end (*DAV excluded, those are fine in my books). And obviously the thing needs to work with imaps, smtps, dkim and other necessities, but that should be implied anyways. I know that things like zimbra, sogo and iredmail exist, but as mentioned, it’s been a while since I’ve played with things like that, so what are your recommendations for setup like this today?

@IsoKiero I don't know about "latest and greatest", but your bog-standard solution seems about right; just add radicale into the mix, and you've got calendaring and contacts.
I've been using mailcow for about a year and i am very satisfied, it checks all your boxes and is easy to configure and deploy over docker.
mailcow: dockerized - Blog

The mailserver suite with the 'moo' – 🐮 + 🐋 = 💕 | Official Blog Page

mailcow: dockerized - Blog

Just beat me to it…

The one thing that they don’t have yet last I updated, though they’ve been working on it for a while, is a prod ready LDAP/SSO connection. I had the dev branch working with Keycloak, but never got plain LDAP to function.

@ShellMonkey I use the Generic OIDC option, havent tried LDAP.

I tend to keep things simple so if I can it’s easier to not set up the separate auth middleware when there’s already an AD comparable system in place.

Another option I’ve used before is called Neth Server, but that’s more one of those SOHO all-in-one systems rather than a dedicated mail box.

community.nethserver.org

NethServer Community

NethServer is a CentOS-based Linux distribution for servers

NethServer Community
Another container-based alternative in that space is Mailu.
Mailu — Mailu, Docker based mail server

Second this. Mailcow very easy to setup, though the docs could use improvement. This might have changed already.

That said, I found it easier to pay for a domain and email service where they worry about reputation and random microsoft blacklists.

Mailcow-dockerized is bulletproof. Never had a problem with it and has been rock solid.
3 years and counting here, I host my own company email and a couple of clients, 120 email accounts and only had one issue with a compromised account, limit each domain to 100 sended emails and I can catch spam emails with enough time before my vps provider notice anything
when you say limit to 100 sended emails, do you have a limit of like 100 within 24 hours or 1 hour or something like this?
Within 24 hours, if you think about it you don’t send more than 100 emails per day and more than that is more reasonable to send it with some mass-mailing system
I also use Mailcow with three domains (one business). No problems with it from day one. Updates run regularly and smoothly like clockwork. I am happy to recommend it to others.

I am happy to recommend it to others.

If they ever support non-Docker systems again, I might be curious. Right now, I couldn’t even use that.

I’ve stuck with iredmail for years. Spin up a VM, grab the installer, and see how it performs for you.
@IsoKiero I'm a happy user of #MailCow for years. It just works, simple to inslall and update. I'm using #CaddyServer as a reverse proxy to further simplify the setup. And it's made in #EU 😄
Check out Mail-in-a-Box
Mail-in-a-Box

Take back control of your email with this easy-to-deploy mail server in a box.

Mail-in-a-Box

It doesn’t answer your questions about calendar and contacts, but you might still find it interesting to take a look at this project:

maddy.email

Home - maddy

I’ve been using Maddy for about a year. It’s easy to set up and has been trouble free.
I have Dovecot and Postfix running on Debian on a server in my closet. Works great for my needs
Same (but arch btw). It uses the existing Let’s Encrypt certificate from certbot --nginx. I did everything possible advised by mxtoolbox (Blocklists, DMARC, SPF, DKIM, LIGMA and whatnot). Some things are hard or impossible, but not really needed, like reverse dns or DNS SOA.
Oh, I forgot to mention, I’m going to run the whole thing on a VPS, so I’ll have access to proper reverse dns and all, so that’s not an issue.

I like exim a bit more but yeah. The dead simple solution is my goto. It can be tricky without any experience but there’s a ton of information out there.

And once you set it up your pretty good almost indefinitely.

You can do calendar and contacts separate from email. Try Radicale. I’ve been using it for years.
Redirect

I’ve been playing with Stalwart-Email as a combined SMTP/IMAP server. Its open source and written in rust, still pretty early in development and I haven’t played with it enough to give any real opinion on the pluses or minuses compared to other software, but its worth taking a look at.
Stalwart Labs

Discover the differences between the community and enterprise editions of our mail server solution.

I’m also using Stalwart! It just works!

Currently using Stalwart after about a decade of using iRedMail. Stalwart’s setup was such a breeze; I let out an audible laugh/noise when the install completed in the blink of an eye and had all the DKIM, DMARC, SPF, etc. settings available for config.

Making some nice improvements with each release too, proper user management, etc. Definitely a fan. Looking forward to when they support CalDAV and CardDAV.

Stalwart is 95% awesome. What holds me back is, that Mails are stored in a Database and not Maildir. Maildir is insanely trivial to backup incrementally and to restore individual mails if necessary. That currently holds me on dovecot.
For self-hosting, be mindful IP addresses have reputation scores and your IP needs to build them up positively. You need to have reverse DNS set, DKIM, SPF records etc for a more trusted reputation, domain reputation etc to not be flagged and sent to spam folders. I just got the $1/month Proton E-Mail for 10 addresses for 1 custom domain as I didn’t feel like dealing with any of this with self hosting, but props for going the self-hosting route.
ISPs often have SMTP relay servers. If you hook into that, your mail gets instant street cred.

Yes, you’re right. But to be honest, it only took me four weeks of perseverance and a few mails to the administrators of spam lists and I had no more problems with receiving and sending mail.

If you set up your mail server correctly and also enter a postmaster address, you will be informed of any problem, no matter how small, and can address it promptly.

I was surprised at how quickly and, above all, helpfully the staff at the spam list providers respond when you write to them politely and, if necessary, ask for more background information and best practices.

It was definitely worth it for me and I would do the work and build up the knowledge again at any time. As a result, you have maximum freedom in configuration and extensive options for customizing your own workflow in dealing with emails.

I’ve been using Poste.io for about 2 years on a vps from Netcup. It has caldav/carddav built in. I also use Radicale and Baikal for caldav/carddav.
Poste.io ~ complete mail server

Full featured solution for your email server. Native implementation of the latest anti-spam methods, webmail and easy administration included.

I like [nixos-mailserver.readthedocs.io/en/latest/](NixOS Mailserver)
Welcome to NixOS Mailserver's documentation! — NixOS Mailserver documentation

this isn’t addressing the technical side per se, but consider your user’s rebelling factor, i.e. them passively resisting using the stuff you provide and sticking with corpo-crap.

not to go into details, but I’ve got a number of opensource solutions in place for various clients. we have huge some issues with users who need to be corralled and coerced into using the provided messengers, web portals, and such. some resist out of habit, other’s because they prefer the infinitely more polished UX of assorted spyware as opposed to the janky feel and rather rudimental features of opensource alternatives (think gmail vs roundcube).

The couple of domains have been running on my company so the userbase is already there, but as I’m shutting down the business side they need to move to something else. And I don’t really care if they want to switch to something else, that’s not my problem.

I have been using modoboa, my installation is fine as far as it goes, but coming up a little short technologically these days, and the upgrade path is total replace. If you have or install Docker on your server, there are poste.io and docker-mailsever,which both look good. Running your mailserver in a container or VM is almost essential, for security, and so you can blow it away and start over if you make a mistake.

Running an email server is not necessarily hard, but it is stressful: if you have other users, even family, they will take it for granted when it works, and complain loudly when it does not. Like any server that others use. But, beyond security, I have a certain stubborn geek machismo about it, it’s a level of sysadmin above basic.

Has anyone here used Mox? It looks interesting, but maybe a little immature.

My stack is postfix, dovecot, slapd for accounts, SoGO for web mail, calendar and task and contact management. Syncs to my phone via davx and just works out of the box. It’s multi domain and my small company even sells hosted email services.

Rspamd for anti spam and dkim. Use a free email testing service to confirm SPF etc are setup correctly.

Also make sure you have regular backups and up to date lets encrypt certificates.

Honestly, what I use is not what I would recommend. ;-) My own setup follows these directions (TL;DR: OpenBSD, as much OOTB OpenBSD software as possible, and Dovecot.)
An OpenBSD E-Mail Server Using OpenSMTPD, Dovecot, Rspamd, and RainLoop | Vultr Docs

Learn to set up a robust OpenBSD email server using OpenSMTPD, Dovecot, Rspamd, and RainLoop with this comprehensive tutorial.