How to migrate mailboxes with x400 address to smtp addresses on Office 365

Microsoft Office 365 is steadily gaining ground as a business grade collaboration and email tool. More and more companies are also migrating from their on premise Exchange deployments to 365. As a result, we can observe that some of them encounter difficulties while making the move. One of these problems is conversion of the old X.400 email address standard, commonly used in the days of Exchange 2003 to the now widely used SMTP.

The X.400 standard is a set of recommended protocols for exchanging and addressing emails. Due to the fact that it describes much more message properties (such as country name, mail service provider, initials, surname, organization name, etc.) its address is quite long and complicated, as opposed to SMTP . E.g. an SMTP address like [email protected] in the X.400 standard would be presented as: c=us;admd=codetwo;prmd=chicago;g=thomas;s=smith.

Due to its complexity X.400 was slowly replaced and ruled out by SMTP which is today’s email transfer standard. However, in old messaging systems, such as MS Exchange 2003 it is still present, which poses a problem when an organization wants to move to newer systems, such as Exchange 2010, 2013 or Office 365.

The issue with X.400 on latest systems is that these addresses are simply not supported and email clients are not able to recognize them as valid senders/recipients.

To fix this issue you need to convert all migrated users’ addresses to the SMTP standard. They can be changed manually, user-by-user if there is a small number of them. However, it is better to run the following PowerShell script in the EMS if the number of X.400 users is large:

$Recipients = Get-Mailbox -ResultSize Unlimited | Where {$_.EmailAddresses -like "X400:*"}
 foreach ($Recipient in $Recipients)
 {
 [array]$AllEmailAddresses = $Recipient.EmailAddresses
 [array]$NoX400Addresses = $Recipient.EmailAddresses | Where {$_ -notlike "X400:*"}
 Set-Mailbox -Identity $Recipient.Identity -EmailAddresses $NoX400Addresses
 }

Bear in mind that after migrating to Office 365 these addresses are unusable until they are converted, which might result with users not being able to send/receive messages.

Luckily, there is a tool that does the conversion on the fly, while migrating: CodeTwo Office 365 Migration. Instead of tedious manual editing or complicated PS scripting, you can relax, letting our software complete the whole process automatically for you.

Tools for Exchange Server

Recommended articles

How to migrate from Exchange Server 2016/2019 to Microsoft 365

How to migrate from Exchange Server 2016/2019 to Microsoft 365

Migrating Exchange data to the cloud is not rocket science – explore your options and launch the migration stress-free. As you may already know, Exchange Server 2016 and 2019 have reached end of life and are no longer officially supported by Microsoft. If your organization still uses either of these platforms to manage email, contacts, calendars, and tasks, keep in mind that: Your environment may become vulnerable to newly discovered security threats – Microsoft will no longer provide security updates for Exchange 2016 and 2019 (unless you’ve enrolled in the Extended Security Update program, which ends in October 2026). Your emails may get blocked – Microsoft has started to throttle and block emails sent from unsupported Exchange Server versions to Exchange Online (as I covered in this article). That said, migrating to a supported platform is now the only viable long-term option for keeping your organization’s email environment secure, supported, and fully operational. If your organization wants or needs to keep things on‑premises (and continue using Microsoft’s solutions for that), upgrading to Exchange Server Subscription Edition (SE) is the only path forward. But given Microsoft’s clear preference for its cloud services – evident in the faster rollout of new features and the many security capabilities available exclusively in Microsoft 365 (Office 365) – now is a great time to leave your on‑prem environment behind and migrate to Exchange Online as part of Microsoft 365. While switching over to a new platform might seem like a rough ride, I’ll show you some easy ways to follow when migrating mailboxes from Exchange Server 2016/2019 to Microsoft 365. How to prepare for email migration to Microsoft 365 Before you start the migration process, you need to make sure your environment is ready for the move. For this purpose, you can use this guide in the Microsoft 365 admin center – it will help you connect your organization to Microsoft 365 and integrate your existing user accounts with Microsoft Entra ID. Microsoft also recommends completing the steps below: Set up an SPF record to determine valid email sources for your organization’s Microsoft 365 domain. Set up the Exchange Online Protection service as a means of protection against spam and malware. If you’re behind on updates, make sure to install the latest Cumulative Update (CU). And here is my quick, less obvious Microsoft 365 migration checklist: Verify if your software will work in Microsoft 365 (especially when it comes to server software). Microsoft 365 migration might be the time you learn that there is crucial legacy software that half the company uses and which is hard to replace. Encourage the whole company to clean up projects. It’s much easier to do this before the migration and start fresh. Gather as much information about your on‑premises environment as possible. For example, you might need to recreate access roles and permissions from scratch in the cloud or set up mail flow rules. Without prior research, it will be much more difficult. Verify if you need to migrate service accounts. There can be a lot of them on‑premises and in most cases, you won’t need them after the move. Review mailbox size limits in Exchange Online before migration to see which licenses you’ll need and whic
How to start remote PowerShell session to Exchange or Microsoft 365

How to start remote PowerShell session to Exchange or Microsoft 365

One of many features of the PowerShell command line tool is its ability to connect with and manage the Exchange Server remotely. The procedure described below applies to the classic on-prem Exchange server and to the Microsoft 365/Exchange Online version.
How to migrate Exchange public folders to a shared mailbox in Microsoft 365

How to migrate Exchange public folders to a shared mailbox in Microsoft 365

Still using public folders? Learn how to move them easily to a modern alternative with CodeTwo.

Comments

  1. Hi there,
    After I exported a PST file, I found that email addresses were converted to 32 hex characters and some additional information:
    This is an example:
    cn=Recipients/cn=73ef4a460a8b46b585be9579f6c46abe-Alvaro Alfo

    Is there a way to get información in a less cryptical format? I would work fine with: /g=.. and s=…

    Thanks a lot.

    Antonio

    • avatar
      Adam the 32-bit Aardvark says:

      Hi Antonio,

      Apologies for the late reply. What migration method did you use and from which Exchange version were you migrating?

      Adam

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

CodeTwo sp. z o.o. sp. k. is a controller of your personal data.
See our Privacy Policy to learn more.