{"id":15379,"date":"2026-11-30T07:59:41","date_gmt":"2026-11-30T07:59:41","guid":{"rendered":"https:\/\/wpm.si\/wordpress-development\/email-migration-51-domains-moved-back-in-one-evening\/"},"modified":"2026-11-30T08:07:06","modified_gmt":"2026-11-30T08:07:06","slug":"email-migration-51-domains-moved-back-in-one-evening","status":"publish","type":"post","link":"https:\/\/wpm.si\/en\/maintenance-and-support\/email-migration-51-domains-moved-back-in-one-evening\/","title":{"rendered":"Email Migration: 51 Domains Moved Back in One Evening"},"content":{"rendered":"<p><strong>In November we began migrating our clients&#8217; email from our own server to <a href=\"https:\/\/mxroute.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">MXroute<\/a>, a specialised email provider.<\/strong> The first three waves covered 51 domains and around 180 mailboxes. The migration ran in stages: first we transferred the contents of each mailbox, then switched the DNS records, and finally resynced everything that had arrived in between. <strong>Then the provider began extensive maintenance, and we had to decide quickly.<\/strong><\/p>\n<h1>What Happened<\/h1>\n<p>At the end of November, MXroute started extensive maintenance and a data migration on the server holding our mailboxes, which we also kept clients updated on in a <a href=\"https:\/\/wpm.si\/en\/email-2\/\">separate post about the disruption<\/a>. Webmail was working, but access through email clients such as <a href=\"https:\/\/www.microsoft.com\/microsoft-365\/outlook\/email-and-calendar-software-microsoft-outlook\" target=\"_blank\" rel=\"noopener noreferrer\">Outlook<\/a> and phone apps was not. <strong>That wasn&#8217;t acceptable for our clients, so we decided to move the email back to our own server temporarily.<\/strong><\/p>\n<h1>What We Did in One Evening<\/h1>\n<ul>\n<li><strong>We notified every client<\/strong> by email before making any changes, explaining what was about to happen and what they needed to do.<\/li>\n<li><strong>We switched the mail DNS records (MX) for all 51 domains<\/strong> back to our server. The domains use DNS at different providers, including <a href=\"https:\/\/www.cloudflare.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Cloudflare<\/a>, <a href=\"https:\/\/pressable.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Pressable<\/a>, <a href=\"https:\/\/kinsta.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Kinsta<\/a> and <a href=\"https:\/\/quic.cloud\/\" target=\"_blank\" rel=\"noopener noreferrer\">QUIC.cloud<\/a>, with some on our own server, so each one had to be handled where it lives.<\/li>\n<li><strong>We checked and fixed the <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc7208\" target=\"_blank\" rel=\"noopener noreferrer\">SPF<\/a>, <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc6376\" target=\"_blank\" rel=\"noopener noreferrer\">DKIM<\/a> and <a href=\"https:\/\/dmarc.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">DMARC<\/a> records<\/strong> for every domain, so outgoing mail wouldn&#8217;t land in spam. We repaired broken DKIM keys on four domains and added a DMARC record to ten that didn&#8217;t have one.<\/li>\n<li><strong>We configured all domains on our server<\/strong> for local mail delivery.<\/li>\n<\/ul>\n<h1>The Hardest Part: Mail That Had Arrived at the Provider<\/h1>\n<p>In the weeks after the migration, clients had received several thousand messages that existed only at the new provider. The standard transfer method over <a href=\"https:\/\/en.wikipedia.org\/wiki\/Internet_Message_Access_Protocol\" target=\"_blank\" rel=\"noopener noreferrer\">IMAP<\/a> wasn&#8217;t working because of the maintenance, so we wrote our own tool that:<\/p>\n<ul>\n<li>logs in to the webmail of each mailbox and reads the original messages,<\/li>\n<li>compares every message against the contents on our server and transfers only the ones that are missing,<\/li>\n<li>preserves folders, the date received and the read and starred flags,<\/li>\n<li>sets sorting by date in webmail, so messages appear in the right order.<\/li>\n<\/ul>\n<p>We tested the tool on a single mailbox first and checked the result by hand, and only then ran it across all of them. <strong>Within half an hour we had returned more than 6,000 messages from 176 mailboxes to our server, with no errors and no duplicates.<\/strong> A few special cases, such as a full mailbox and a changed password, were handled individually.<\/p>\n<h1>Why This Matters<\/h1>\n<p>Clients could read their email the whole time and not a single message was lost. In Outlook and on their phones, all they had to change were the server settings. <strong>This is exactly why <a href=\"https:\/\/wpm.si\/en\/maintenance-and-support-packages\/\">maintenance<\/a> exists.<\/strong> When something goes wrong at an external provider, a client shouldn&#8217;t be left alone with an email outage, a status page to refresh and no idea where their messages went.<\/p>\n<h1>What Happens Next<\/h1>\n<p>We&#8217;ll continue the migration once MXroute completes its maintenance, using the same approach: test everything on one mailbox first, then run it across all of them. If you&#8217;d like to know how your own email is set up and what happens if your provider goes down for a few days, <a href=\"https:\/\/wpm.si\/en\/contact\/\">get in touch<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our email provider started major maintenance and Outlook stopped working. Here&#8217;s how we moved 51 domains back to our own server in one evening, losing nothing.<\/p>\n","protected":false},"author":1,"featured_media":15375,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-15379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-maintenance-and-support"],"_links":{"self":[{"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/posts\/15379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/comments?post=15379"}],"version-history":[{"count":0,"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/posts\/15379\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/media\/15375"}],"wp:attachment":[{"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/media?parent=15379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/categories?post=15379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpm.si\/en\/wp-json\/wp\/v2\/tags?post=15379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}