Erm, qmail had lots of bugs[1], when compiled for 64-bit processors (lots of integer overflows), but djb pushed back and said 64-bit wasn't supported. If anything, qmail is known as the most annoying MTA to package, since no modifications to the source are permitted, and the application has to be built using a massive patch tree instead. The quirky management daemons required to run qmail were also obnoxious and at o…
Reminds me of the era when dual-core processors started becoming generally available. Suddenly the bugs in multi-threaded software were much more apparent. Vendors replied to complaints with: “We don’t support those processors”. No buddy, you don’t support stable software. It’s buggy even on a single core, it’s just less obvious.
How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
21–30 of 31 posts
Re: How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
#22Does anyone know how qmail has fared since this PDF was written in 2007? Did it make it to 2023 without any bugs surfacing?
It didn't make the transition to 64 bits worth of memory with the record intact. https://lwn.net/Articles/820969/ Although the CVE _is_ from 2005 so perhaps it doesn't count.
Not that the whole thing was very well handled.
Re: How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
#23Earlier quoted context omitted.
Reminds me of the era when dual-core processors started becoming generally available. Suddenly the bugs in multi-threaded software were much more apparent. Vendors replied to complaints with: “We don’t support those processors”. No buddy, you don’t support stable software. It’s buggy even on a single core, it’s just less obvious.
It's a very interesting phenomenon. There are lots of claims along the lines of "a single CPU is so fast it will exercise all kinds of multi-threading patterns very quickly" but in my experience it indeed takes multiple processors to reliably show up various races and faulty implicit orderings.
From a correctness perspective, they're "identical", because even on a single core a context switch can occur anywhere. In theory, even one core can interleave individual instructions, it's just not done for performance reasons.
So if multiple cores causes a crash, then that crash bug was always there, and could have occurred even on a single core. It's just much less likely to be triggered.
Thankfully now every mainstream computer and practically all phones are multi-core, so software has to be written properly. The early 2000s were a mess though, with a lot of heisenbugs that were maddening to track down.
Re: How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
#24Earlier quoted context omitted.
It didn't make the transition to 64 bits worth of memory with the record intact. https://lwn.net/Articles/820969/ Although the CVE _is_ from 2005 so perhaps it doesn't count.
I mean... I'd say expecting a program written for a 32 bit OS to just work on 64 is excessive. And the fix is just to add mildly sane memory limits to the processes, which is an OS level task, thus, not necessarily a bug. Not that the whole thing was very well handled.
Re: How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
#25Re: How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
#26So much could be learned in modern *nix distributions from this philosophy...
Re: How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
#27The title of the actual paper is "Some thoughts on security after ten years of qmail 1.0". The post currently has the made-up title "How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]".
Re: How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
#28Re: How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
#29I ran several Qmail systems. Daemontools worked rather well. They had a habit of delivering email reliably. "Life with Qmail" was a very decent primer. I also ran several other mail systems at the same time (and still do). Exchange's smtpd is still a bit of a pain and I never put it on the internet directly. Nowadays (last 15 years) I use Exim for a MTA/proxy - at home and at work.
Any reason you prefer Exim? I've enjoyed running Postfix forever and though the config is a bit baroque, have had no issues with running it in my somewhat weird setup.
Exim is hugely configurable. If you use it on Debian/Ubuntu and you have somewhat complex needs then ditch the split config thingie and simply create your own /etc/exim4/exim4.conf from scratch.
You can test a config with "exim -bhc " to simulate a SMTP session from , before you restart Exim to make the config active. So:
helo me
mail from: name@example.co.uk
rcpt to: name@another.example.co.uk
data
etc etc
At each stage you get a debug output of what would happen. You have to be a bit careful with this because a new Exim daemon will use the new config. For small changes do it "inline", for major changes, copy the conf to a new name and specify it with -C and test until it works. There are a lot of options.Documentation is complete for Exim. If you find a flaw then Jeremy and co will fix it - the Exim devs are very, very driven, for want of a better word. You will get short shrift on the mailing lists if you obviously haven't tried to do any research but you will soon get some extremely knowledgable help if you show willing. No Disqus etc - just old school mailing lists and that is the way it should be.
The big boys are destroying SMTP gradually but it can and does still work, if you are careful.
EDIT:
Re: How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]
#30The title of the actual paper is "Some thoughts on security after ten years of qmail 1.0". The post currently has the made-up title "How to Write Software with Zero bugs – 25 years after qmail 1.0 – D. Bernstein [pdf]".