News for hackers. Stuff that matters.
Re:Mox – modern, secure, all-in-one email server by QuadrupleA on Tuesday March 04, 2025 @11:50PM (#43262973)
Wow... having just gone through a 20+ hour byzantine nightmare of setting up postfix & dovecot (that's on top of an already deep understanding of SMTP, DKIM, SPF, DMARC, SASL, etc.) and now struggling through an even more kafkaesque nightmare of rspamd (with its 3 different programming languages needed to understand its 92+ configuration files, which you can't modify by the way, you have to add your own "override" and "merge" config files on top of that mess) for the simple purpose of getting it to DKIM-sign my stupid outgoing messages the way all the big mail systems want... I wish I had seen mox earlier!

Not sure its quality, but battling with postfix & dovecot's 20+ years of legacy cruft, I felt compelled many times to just throw them aside and build something like this on first principles - simple single binary mail server with modern protocol support, sans all the archaic UNIX-account timesharing-era sendmail bullshit that still lives on in the mainstays.

Going to have a look at this one, despite now having moderately deep postfix & dovecot knowledge.

Re:Mox – modern, secure, all-in-one email server by WhyNotHugo on Wednesday March 05, 2025 @12:11AM (#43263093)
I’ll never understand why postfix is so popular given how hated it is. OpenSMTPd has worked wonders for many years and in much easier to set up.
Re:Mox – modern, secure, all-in-one email server by tmn007 on Wednesday March 05, 2025 @12:31AM (#43263219)
if you started with sendmail (and sendmail.cf) then postfix was alright
Re:Mox – modern, secure, all-in-one email server by n3storm on Wednesday March 05, 2025 @02:01AM (#43263712)
That's it, also Qmail was a nightmare (still is?) Perspective most of times is everything.
Re:Mox – modern, secure, all-in-one email server by mrweasel on Wednesday March 05, 2025 @06:34AM (#43265329)
Oh I miss qmail, felt much easier to deal with than the alternatives.
Re:Mox – modern, secure, all-in-one email server by defanor on Wednesday March 05, 2025 @12:36AM (#43263249)
User experience with it, and opinions on it, seem to vary. I, for one, rather like both postfix and dovecot: both are well-documented, maintained, lightweight, reliable, yet configurable and feature-rich software, with few dependencies and good track records.
Re:Mox – modern, secure, all-in-one email server by ofrzeta on Wednesday March 05, 2025 @01:01AM (#43263381)
I have no idea how/why it is hated. For me it is one of the best open source server packages. For instance if you have a specific problem you will find some configuration directives on the Internet and they will actually work.
Re:Mox – modern, secure, all-in-one email server by jmb99 on Wednesday March 05, 2025 @01:59AM (#43263706)
I’ve been using it for a decade without issue. Only problems I’ve ever had self-hosting were related to being randomly junk-black-holed by the big three independently of each other for 1~30 days for seemingly no reason, but no software is going to fix that.
Re:Mox – modern, secure, all-in-one email server by spl757 on Wednesday March 05, 2025 @03:20AM (#43264167)
haters gonna hate
Re:Mox – modern, secure, all-in-one email server by codethief on Wednesday March 05, 2025 @04:03AM (#43264486)
OpenSMTPd seems easier superficially but it's not particularly well-documented. I don't remember the details but I remember struggling with setting it up because certain config flags were not documented and I had to guess their exact meaning from the few blog posts out there that discuss OpenSMTPd. (It also didn't help that there were slight changes in the config format at some point in the past.)
Re:Mox – modern, secure, all-in-one email server by loloquwowndueo on Wednesday March 05, 2025 @09:03AM (#43266495)
Probably popular because it’s the default mta in Debian-based installs.

Hey it could be worse, at least it’s not sendmail.

Re:Mox – modern, secure, all-in-one email server by KronisLV on Wednesday March 05, 2025 @12:22AM (#43263163)
I just gave up and now use https://github.com/docker-mailserver/docker-mailserver

It hasn’t given me many issues so far! Nice to see new options popping up, though!

Re:Mox – modern, secure, all-in-one email server by sgt on Wednesday March 05, 2025 @12:52AM (#43263343)
I ended up changing to mailu recently, very happy with it. https://mailu.io
Re:Mox – modern, secure, all-in-one email server by sgt on Wednesday March 05, 2025 @12:58AM (#43263368)
Btw, I ended up disabling webmail. I don't the users really need it. Nothing will compare to the Gmail experience anyway, so might as well just encourage people to use proper Mail clients like Mail.app or Mail on iOS.
Re:Mox – modern, secure, all-in-one email server by rytis on Wednesday March 05, 2025 @04:38AM (#43264684)
> Nothing will compare to the Gmail experience

I think this might be a matter of personal preferences. Personally I find GMail very confusing, and not that user friendly.

FastMail UI is so much more intuitive. For me.

Re:Mox – modern, secure, all-in-one email server by aryonoco on Wednesday March 05, 2025 @05:07AM (#43264868)
I used to think Gmail’s interface was excellent until I moved to Fastmail.
Re:Mox – modern, secure, all-in-one email server by BLKNSLVR on Wednesday March 05, 2025 @06:31AM (#43265311)
Seconding for mailu. I've had a mailu server running for at least a couple of years that requires very little on-going maintenance, but I don't use it daily or for anything personally mission critical.

When I do need it, however, it's there, humming away happily.

Re:Mox – modern, secure, all-in-one email server by conradev on Wednesday March 05, 2025 @01:02AM (#43263396)
Re:Mox – modern, secure, all-in-one email server by elliotali on Wednesday March 05, 2025 @03:18AM (#43264155)
Using this now, and love it. For easy mail reception and sending, mail-in-a-box does it all for you (if you don't mind opinionated, but stable) and Stalwart does it all for you and is highly configurable, including an oauth2 server and more. Keen to try Mox, but I think it went viral and their website accidentally got ddos'ed.
Re:Mox – modern, secure, all-in-one email server by guillermin on Wednesday March 05, 2025 @04:01AM (#43264469)
I've been using mail-in-a-box for 5 years and I couldn't be happier. For me, stability is the #1 concern for an email server, and mail-in-a-box is really set it and forget it. I also like that it includes CalDAV and CardDAV, so it served as a complete substitute to Google Mail+Contacts+Calendar.
Re:Mox – modern, secure, all-in-one email server by rekabis on Thursday March 06, 2025 @06:31PM (#43286094)
Is it known to be compatible with OpenBSD as-is, or with minimal tweaking?
Re:Mox – modern, secure, all-in-one email server by tucnak on Wednesday March 05, 2025 @02:57AM (#43263998)
Check out mailcow
Re:Mox – modern, secure, all-in-one email server by figassis on Wednesday March 05, 2025 @03:14AM (#43264128)
Maddy did it for me. Pretty awesome.
Re:Mox – modern, secure, all-in-one email server by p0w3n3d on Wednesday March 05, 2025 @03:31AM (#43264243)
One does not simply send mail these days
Re:Mox – modern, secure, all-in-one email server by nicce on Wednesday March 05, 2025 @05:17AM (#43264920)
Or receive.. depends how you look at it. Big players like Microsoft and Google defines what goes into spam box.
Re:Mox – modern, secure, all-in-one email server by fodkodrasz on Wednesday March 05, 2025 @06:23AM (#43265280)
And in the case of Microsoft: often the invoices, expired credit card notification from Microsoft itself are considered spam in o365... Had some inconveniences because of this.

But hey, at least it has a Copilot bar thoughtfully filling that useless vertical space on my screen!

Re:Mox – modern, secure, all-in-one email server by dwedge on Wednesday March 05, 2025 @03:37AM (#43264306)
I use this for one of my domains, had it running for over a year and it's been rock solid
Re:Mox – modern, secure, all-in-one email server by citrin_ru on Wednesday March 05, 2025 @04:13AM (#43264535)
> postfix & dovecot's 20+ years of legacy cruft

That's not my experince - I use postfix and dovecot for years and they are rare examples of high quality software to me. I don't see any cruft. They are flexible which make learning and configuration harder compare to opinionated software where most decisions made for you by a developer and you have not choice but to accept them. I myself view sometimes see flexibility as a disadvantage but IMHO they strike a good balance. Postix often criticized by Exim user for not being flexible/configurable enough. And they don't force to use unix accounts, it's just one of options.

Having said that I would agree that using a mail server which combines all in one package is easier than unix way with multiple specialized parts combined. For a novice it could be a challenge to stichs (configure) multiple parts together, especially if you don't know how to test each part separately and blidnly follow some how-to.

Where you can find plenty of legacy cruft is mail standards and implmenting them correctly is not an esty task that's why I trust Postfix and wary of anything new until it battle tested on a large number of servers.

Re:Mox – modern, secure, all-in-one email server by QuadrupleA on Wednesday March 05, 2025 @11:19AM (#43268625)
You may have just forgotten the pain of the learning curve? Admittedly postfix & dovecot are way more sane than rspamd. But their whole default config (and something like 50% of the options and documentation) are oriented around UNIX system accounts for each of your mail users, which seems insane and 80s-era to me (let's go dial up to the mainframe at 300 baud and see if we have any mail). It takes dozens of pages of documentation to orient yourself away from all that, understand Postfix's "address classes", that you generally want "virtual mailboxes", etc. No support for DKIM, except through sendmail-invented "milters", of which Postfix heartily recommends you to OpenDKIM, a project which hasn't been touched in 10+ years, doesn't support EC signing, is not packaged on most distros, is documented on a outdated non-https site with sparse even more out-of-date plaintext documentation, referring you to a defunct FTP site to download the code, etc. And milter requires setting up a UNIX or inet socket and tedious configuration, etc. etc.

Poor support for SASL, at least for mail users looking to god forbid send an email and relay it to the internet, and password-protect against random spammers doing the same, referring you instead to Dovecot SASL - also legacy cruft (partly the SASL protocol designers' fault), SASL has numerous "mechanisms" but nearly everybody uses just the PLAIN mechanism, ensuring a TLS channel is established first, which is about 10 lines of code to implement.

Just a ton of unnecessary legacy cruft IMHO.

Re:Mox – modern, secure, all-in-one email server by account42 on Thursday March 06, 2025 @04:45AM (#43278255)
> No support for DKIM, except through sendmail-invented "milters", of which Postfix heartily recommends you to OpenDKIM, a project which hasn't been touched in 10+ years, doesn't support EC signing, is not packaged on most distros, is documented on a outdated non-https site with sparse even more out-of-date plaintext documentation, referring you to a defunct FTP site to download the code, etc. And milter requires setting up a UNIX or inet socket and tedious configuration, etc. etc.

OpenDKIM has been working fine for me for the last 10+ years. It's also in the default repos of my distro.

> Poor support for SASL, at least for mail users looking to god forbid send an email and relay it to the internet, and password-protect against random spammers doing the same, referring you instead to Dovecot SASL - also legacy cruft (partly the SASL protocol designers' fault), SASL has numerous "mechanisms" but nearly everybody uses just the PLAIN mechanism, ensuring a TLS channel is established first, which is about 10 lines of code to implement.

SASL works fine for me with Postfix and Dovecot, including sending restricted to authenticated users. Also CRAM-MD5 was recommended over PLAIN everywhere even back when I set this up.

Re:Mox – modern, secure, all-in-one email server by megous on Wednesday March 05, 2025 @05:02AM (#43264839)
OpenDKIM works fine, and is easy to configure. My first time config was like 30 mins following the guide here: https://wiki.debian.org/opendkim

And postfix is exceptionally well documented software. One of the best. It's easy to script config modifications thanks to `postconf` and do all kinds of interesting stuff with milters or policy servers, etc.

Re:Mox – modern, secure, all-in-one email server by Avamander on Wednesday March 05, 2025 @05:04AM (#43264857)
OpenDKIM is unmaintained and does not support Ed25519 signatures.
Re:Mox – modern, secure, all-in-one email server by tecleandor on Wednesday March 05, 2025 @07:05AM (#43265511)
Auch. Now that you say... last commit in 2018 and last release in 2014. And a couple beta releases in 2018.
Re:Mox – modern, secure, all-in-one email server by megous on Wednesday March 05, 2025 @08:34AM (#43266173)
It does in my Linux distro for the last 4.5 years.

https://github.com/trusteddomainproject/OpenDKIM/commits/7c7...

Re:Mox – modern, secure, all-in-one email server by bsdice on Wednesday March 05, 2025 @05:41AM (#43265045)
Took me weeks to perfect our own setup based on Postfix, Dovecot, Roundcube with some patches, rspamd with attachment-type whitelisting and a bazillion other features, clamav with extra patterns, plus the many tweaks and enhancements you need to dig out from obscure places.

Like fts-flatcurve, an archive plugin for dovecot that can find stuff in 30 years worth of mails in a second, over IMAP in Roundcube. Or rspamd settings to blacklist not a single IP but an entire ASN of misbehaving colo clients. IMAP with namespaces is also a true pain to configure. Or setting bzip2 compression for an auto-expunged journal for spam, and archive without expunge. Painful.

If you made it this far, you will find that your IP address is tainted. So choosing a hoster that keeps his backyard clean from spammers is necessary, otherwise you will suffer by association. Did I mention SPF records in DNS.

So I consider our server a piece of art. 30 years in operating systems certainly helped.

Re:Mox – modern, secure, all-in-one email server by sam_lowry_ on Wednesday March 05, 2025 @06:27AM (#43265296)
You are probably on Debian, this adds a lot of complexity.

My exim config became10x smaller after I started using upstream directly.

Re:Mox – modern, secure, all-in-one email server by GTP on Wednesday March 05, 2025 @06:56AM (#43265450)
This isn't a project unique in his genre. There are also others like Mailu[0] that, although different in the implementation (Docker containers abstracting away the hard parts of deploying "traditional" components) share the spirit of having a self-contained project that is easy to deploy. Are there some specific reasons why you didn't go the Mailu (or some similar project) way? I'm asking because, every now and then, I have the itch of deploying my own mail server to be used for my side projects (nothing commercial), so if you have an opinion on those projects I would be curious to hear it.

[0] mailu.io

Re:Mox – modern, secure, all-in-one email server by UltraSane on Wednesday March 05, 2025 @07:18AM (#43265587)
Dealing with Linux email servers and related things is easily the worst experiences I have ever had working in IT. Just miserable.
Re:Mox – modern, secure, all-in-one email server by throw0101d on Wednesday March 05, 2025 @08:25AM (#43266096)
> Wow... having just gone through a 20+ hour byzantine nightmare of setting up postfix & dovecot

Did you do this by hand / manually, or use a 'pre-canned' solution like:

* https://mailcow.email

* https://workaround.org

Re:Mox – modern, secure, all-in-one email server by kbmn on Wednesday March 05, 2025 @09:30AM (#43266877)
Comparison between Mailcow and Mox:

Mailcow (from https://docs.mailcow.email/getstarted/prerequisite-system/#m...):

  A single SOGo worker can acquire ~350 MiB RAM before it gets purged. The more ActiveSync connections you plan to use, the more RAM you will need. A default configuration spawns 20 workers.
  *RAM usage examples*
  A company with 15 phones (EAS enabled) and about 50 concurrent IMAP connections should plan 16 GiB RAM.
  6 GiB RAM + 1 GiB swap are fine for most private installations while 8 GiB RAM are recommended for ~5 to 10 users.

Mox:

I checked with htop, and my Mox process currently takes <100 MB.

Re:Mox – modern, secure, all-in-one email server by QuadrupleA on Wednesday March 05, 2025 @03:40PM (#43272034)
Manually - I want as slim/minimal/resource-efficient a setup as I can, and to understand what I'm configuring.
Re:Mox – modern, secure, all-in-one email server by throw0101d on Wednesday March 05, 2025 @04:00PM (#43272323)
https://workaround.org has pretty good instructions for each component that allows one to understand things: very little magic involved.

* https://workaround.org/ispmail-bookworm/big-picture/

Re:Mox – modern, secure, all-in-one email server by jcarrano on Wednesday March 05, 2025 @11:20AM (#43268647)
I once set up qmail on a home server. Looking back, I have no idea how I managed.
Re:Mox – modern, secure, all-in-one email server by coob on Wednesday March 05, 2025 @12:15PM (#43269448)
It is a rite of passage. That config system…
Re:Mox – modern, secure, all-in-one email server by throw16180339 on Wednesday March 05, 2025 @06:23PM (#43274180)
It's a lot better than sendmail.cf, which I had to use in a previous job.

    # handle "from:<>" special case
    R$*<>$*                 $@@                    turn into magic token
    
    # basic textual canonicalization
    R<$*<@$+>>              $@$1<@$2>
    R$*<$+>$*               $2                     basic RFC822 parsing
    
    # make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
    R@$+,$+:$+              @$1:$2:$3              change all "," to ":"
    R@$+:$+                 $@$>6<@$1>:$2          src route canonical
    
    R$+:$*;@$+              $@$1:$2;@$3            list syntax
    R$+@$+                  $:$1<@$2>              focus on domain
    R$+<$+@$+>              $1$2<@$3>              move gaze right
    R$+<@$+>                $@$>6$1<@$2>           already canonical
Re:Mox – modern, secure, all-in-one email server by Emoticon4032 on Wednesday March 05, 2025 @02:14PM (#43270922)
I gave up and started self-hosting Mailcow. It’s worth paying the support fee to free yourself to do other more productive things. Let them manage the complexities.
Re:Mox – modern, secure, all-in-one email server by arielcostas on Wednesday March 05, 2025 @02:38PM (#43271233)
I did that a few years ago too. Then decided to just use OpenSMTPD instead of Postfix, keep Dovecot for IMAP and rspamd for signing DKIM. I followed the guide at https://prefetch.eu/blog/2020/email-server/ and got it running relatively smoothly. However, Microsoft (and sometimes Google) kept blocking emails coming from my server's IP, so I just decided to stop messing around and pay migadu 19€ a year for dealing with that stuff for me.
Re:Mox – modern, secure, all-in-one email server by account42 on Thursday March 06, 2025 @04:32AM (#43278191)
IME postfix + dovecot + opendkim were pretty easy to set up. No idea why you'd need to go through a "20+ hour byzantine nightmare" for that.