docker-mailserver Mail Server Migration

Background

Two years ago I set up my own mail server on RackNerd using docker mailserver. However, this provider's IP reputation isn't great — the subnet is permanently blacklisted, and from the very beginning, mail sent to Microsoft Outlook bounced. Still, since I could receive email, I never changed it. After that, I used my own mail server for registering all sorts of things.

Until this Friday, I was taking the UK Intermediate radio licence exam, and I'd still registered using my self-hosted email, so the examiner contacted me through that address too. However, before the exam I couldn't find the Zoom link for the test, so I sent a last-minute email to ask the examiner — and didn't notice that the examiner uses Hotmail, Microsoft's service. Cue a bounce-back email.

After the exam, I decided to move the mail server from RackNerd to the NetCup server I had rented not long before.

 

Design

Because I don't want to go to too much trouble — or rather, I want to make as few changes as possible — I plan to reuse the previous configuration and domain.

The advantage of containers like docker is that they're easy to migrate. In theory, you just need to move the configuration and persistent data to the new machine.

For the network configuration, just point the original server's DNS records to the new device's IP and then set up the new rDNS.

Operation

 

Afterword

Good thing it wasn't sent — I later found that the exam's Zoom link was right at the end of the email I was about to reply to, after the sign-off.