bad sysadmins

Deserve everything they get.

Regular readers of trivia (I have at least one besides the ‘bots) may have noticed that it has been a little quiet around here for a while. There are a couple of reasons for this.

The first, and primary, reason, is that whenever I thought of a topic for a new post (and there have been multiple occasions when some lunacy in the real world has prompted me to want to comment) I got distracted by some activity in said real world to the extent that I forgot about the post, or worse, some other lunacy overtook it in priority. (OK, that is an excuse, but not an entirely untrue one).

The second reason is that around the middle of this year I finally got around to some seriously needed housekeeping on my VMs – particularly necessary on my mail server. Back in the day when I was a sysadmin for a living, I would never have allowed my systems to fall behind the upgrade curve as badly as I had. Of course I made sure that all my systems (particularly the public facing ones) were patched to the correct level, but I had failed to upgrade the base OS on time. However, the approaching deadline for the EOL of Debian 11 long term support meant that I really had to upgrade. (Yes, I was still running Debian 11 as late as June of this year. My bad).

So, as I say, around about June/July of this year I bit the bullet and devoted a couple of days to some serious upgrade work. Now because the latest version of Debian (at the time) was 13.5 or 13.6 I would have to skip the whole of Debian 12. Not necessarily a smart (or even easy) thing to do without something breaking. Debian always give you a nice upgrade path from one major release to the next, but skipping a major release could be asking for trouble. My plan therefore was a staged upgrade from 11.11 to 12 then from 12 to 13. What could possibly go wrong?

Well, actually quite a lot could go wrong and even though I am no longer paid to maintain systems I am not daft enough to attempt such an upgrade on live servers without both a test run first and a recovery plan in place. Fortunately I have a bunch of VMs besides the two crucial ones (my mail server and this web server) used for a variety of purposes, such as VPN end points or Tor. All I needed for testing was a (potentially sacrificial) VM at the same OS and patch level as the ones I wanted to upgrade. I picked one I used as a VPN end point, If it all blew up in my face I could easily spin up a replacement with no real hassle.

I was lucky. Nothing really exploded to the extent that I had bits lying around. My staged upgrade meant that I could test Debian 12 to ensure everything worked as expected before moving to 13(.6). It did (or at least it seemed OK on my test platform).

My next upgrade was to the VM running trivia. An important live server but not one crucial to my daily life. Of course I made all the necessary backups of my blog, the blog database and the other webs running there, so if everything went horribly wrong I could easily port everything to a (running) new server already at Debian 13.6 with the requisite software stack in place. Again it seems I was lucky. Nothing essential seemed to break, either at Debian 12 or the final destination 13.6. The webserver (lighttpd) worked fine, it served trivia to the world with no apparent problems, I could log in to the wordpress administration panel and I successfully managed an upgrade to the latest version of wordpress. All good. (Or so I thought – more on that later).

The tricky part was moving my mail without something going horribly wrong. I am a little odd in that I actually bother to run my own mail server when the rest of the world uses either one of the Corporate giants or the service provided by their ISP (which in turn may actually be a white boxed version of one of the Corporate giants’ offerings). It is becoming increasingly difficult to do this but that is one of the reasons I continue to do so. I’m curmudgeonly. I like to plough my own furrow. And I like independence (and the privacy) that affords me.

However, one of the (many) difficulties in running a mail server these days is that the said Corporate giants don’t like it and make it difficult for any independent server to interoperate with theirs. You cannot just spin up a mail server and expect it to be able to send mail without having in place the necessary DKIM, SPF and DMARC records. Even with all the necessary DNS “proofs” in place, it is almost impossible to send mail which will not be either marked as spam or (worse) denied entirely by the recipient server if your mail server is new. You have to have a reputation as a “good” server. That reputation comes from being seen at a stable IP address, preferably in a well known location outside of a cheap data centre used by spammers, for some long time. This is a classic Catch 22 problem. In order to send email which will be accepted by the likes of Google, Apple, Microsoft et al. you must have a stable server with a good long reputation. But in order to gain this reputation you have to have been successfully sending email for some time. My email server has been where it is for some time now and its reputation is very hard won (trust me on this). So if I blew my postfix server I would have problems with my mail regardless of the fact that I had a duplicated backup server ready to go at another IP address.

You can bet I was careful. And my contingency plan actually involved being ready to move my mail to a paid service at a third party email provider if that should prove necessary. In the event, it didn’t, but I still had problems.

I love the postfix MTA. It is a good solid, secure piece of software, written by the kind of guy I really trust (Wietse Venema). I have never had a problem with it that I couldn’t fix in fairly short order. I understand its configuration file syntax and I have seen it work through umpteen OS upgrades or version changes of postfix itself over the years. It is infinitely better, and much, much easier to understand, than the awful pile of crud that is sendmail that I first had to contend with back in the early 90s when I was managing a bunch of Solaris boxes. I was not particularly worried about any potential changes in postfix.

OTOH, the dovecot IMAP server is a bit more problematic. I had seen problems in the past with changes in dovecot. So it is entirely my fault that I didn’t pay enough attention to the Debian 13 release note which said:

The dovecot email server suite in trixie uses a configuration format that is incompatible with previous versions. Details about the configuration changes are available at docs.dovecot.org.

Worse, the dovecot documentation for the 2.3 to 2.4 upgrade stated categorically that:

WARNING

Dovecot 2.3.x settings will NOT work unless the configuration is changed as described in this section.

You can guess what happened.

On finishing the upgrade to Debian 13 I could no longer collect my email. Dovecot had simply failed and refused to start. Fortunately postfix was perfectly happy so incoming mail was being received and correctly passed to the requisite directories in /var/vmail/, I just couldn’t collect it.

OK, my bad, entirely my bad and I was stupid, I accept that, but I really, really really, don’t like it when a previously perfectly functional piece of software stops working because the developers have decided to arbitrarily make major changes to the syntax of the configuration files between releases. And not just at major version number releases (such as happened when moving from the 1.2.xx branch to the 2.xx branch) but here in moving from 2.3 to 2.4. Much, much, much better in my view for the developers to accept the old version and simply note in the new configuration files that “this way of doing things is deprecated – please read the docs at X and change your configuration or it may stop working at release XX.YY.”

Oh well.

In their defence I will say that the dovecot team provided a fairly detailed set of instructions for the upgrade from 2.3 to 2.4 as well as a pointer to an upgrade tool which might help those poor souls (like me) who wished to carry on using dovecot despite the idiocy of the changes, but as I say, that would not have been necessary if they hadn’t made the damned changes when they did.

I spent a weary and annoying weekend fixing my mail installation when I should have been doing something much more interesting. It has been stable for a while now of curse, but I an now seriously considering dumping dovecot in favour of another IMAP server such as Cyrus or Courier. If and when I do, I’ll let you know how I got on.

Permanent link to this article: https://baldric.net/2026/11/27/bad-sysadmins/

Leave a Reply

Your email address will not be published.