Skip to main content
Greg Bond

Legacy host gravity: why half your ops tickets are a migration you are postponing

For months my agents burned cycles solving reverse-proxy quirks, port fights, and mail delivery detours on a legacy DirectAdmin, Apache, and Exim server. Moving to one clean Docker and Caddy box plus native cloud mail is retiring roughly 96 files and 80,000 lines of workaround code in one cut.

Nov 29, 2026, AI Systems

TL;DR

For months my agents burned cycles solving reverse-proxy quirks, port fights, and mail delivery detours on a legacy DirectAdmin, Apache, and Exim server. Moving to one clean Docker and Caddy box plus native cloud mail is retiring roughly 96 files and 80,000 lines of workaround code in one cut.


1. The operational reality

Modern containers do not want to live on a legacy shared-hosting control panel.

I learned that the slow way. Over a year I stacked 26 Docker containers onto an older server still running DirectAdmin, Apache, and Exim. Every time we added a service, updated TLS, or changed outbound mail, we hit another edge case in the underlying host.

Each edge case became a ticket. Each ticket produced a custom shell script, a courier workaround, or another test fixture. Before long a huge share of the backlog had nothing to do with the website or the business. It existed purely to keep modern containers polite around a legacy host.

2. The distinction

There is a difference between fixing a bug and paying rent on the wrong foundation.

Patching feels disciplined because every PR is small and low risk. Moving servers feels disruptive, so you keep postponing it for one more sprint. Six months later, you have written 80,000 lines of glue to avoid a weekend migration.

3. The cut

Instead of writing another patch for the old box, we provisioned one clean Docker and Caddy server (hetzner-prod), split CI and external monitoring onto small dedicated nodes, moved transactional mail to Cloudflare Email Sending, and put human mail on a $5/month native mailbox.

Once the 72-hour rollback window clears, one cleanup PR deletes the legacy deploy scripts and workaround layers altogether.

If half your operational tickets are workarounds for your host, you do not have a software problem. You have a migration you are postponing.