Close Menu
Peter Klapwijk – In The Cloud 24-7Peter Klapwijk – In The Cloud 24-7
    Facebook X (Twitter) Instagram
    Peter Klapwijk – In The Cloud 24-7Peter Klapwijk – In The Cloud 24-7
    • Home
    • Intune
    • Windows
      • Modern Workplace
    • macOS
    • Android
    • iOS
    • Automation
      • Logic Apps
      • Intune Monitoring
      • GitHub
    • Security
      • Passwordless
      • Security
    • Speaking
    • About me
    Peter Klapwijk – In The Cloud 24-7Peter Klapwijk – In The Cloud 24-7
    Home»Exchange Online»Add a new domain to an existing Hybrid Exchange configuration
    Exchange Online

    Add a new domain to an existing Hybrid Exchange configuration

    Peter KlapwijkBy Peter KlapwijkApril 27, 2018Updated:December 3, 2019215 Mins Read

    Let`s assume you are running a Hybrid Exchange configuration with one domain configured. You use this domain as logon domain (part of the User Principal Name) and your email reply address. For some reason a new domain needs to be added to your existing Hybrid Exchange configuration so you can you this domain in new email addresses.
    The steps involved to add this new domain are described in this article, but before you begin you need to make sure how this new domain will be used. If you need the new domain to be added to the user mailboxes only as a mail alias, than the figuration is pretty straight forward. But if this domain needs to be used as the reply address, you also need to to decide if you keep your existing domain as part of the logon name or you also need to change that domain.

    Add the new domain to Office 365

    The first thing we need to do is add the new domain to Office 365. Logon to the Office 365 Admin center, go to Setup and click on Domains. Choose Add domain, enter your new domain (in this example dpconsultancy.eu) and click Next.

    Add a domain

    You need to prove your are the owner of the domain by adding a TXT record to your external DNS. The required value to add as TXT record is found on the Verify Domain page.
    After you have added the DNS record to your external DNS click Verify.

    Verify domain

    After your domain is verified, the domain is added to Office 365. Now you should also add other DNS records, like the MX-record, SPF en a CNAME for Autodiscover. Depending on your mailflow configuration your MX-record should point to your on-premises Exchange Server or to Exchange Online.

    On-premises Exchange configuration

    We also have to add the new domain to the on-premises Exchange, because from their we control the email addresses for local en online mailboxes in a Hybrid Configuration.
    Switch to your on-premises Exchange server and open the Exchange Admin Center (in case of Exchange 2013 or 2016). Go to Mailflow and choose the Accepted domains tab. Click the plus sign.

    Exchange admin center

    Add your new domain as Authoritative.

    Add new domain

    After the domain is added, it`s time to run the Office 365 Hybrid Configuration wizard. After verifying your credentials for the local domain and Exchange online, click Next till you see the Hybrid Domains screen. Make sure you check the newly added domain.

    Hybrid domains

    Again you need to verify you own the domain by adding a TXT record to your external DNS.

    Domain ownership

    Don`t make any changes to the rest of the configuration and choose Next on all the screens till you see below screen. Check Yes, upgrade the current configuration.

    Upgrade configuration

    The wizard will upgrade your existing configuration, for example it adds the domain to the mailflow connector between your Exchange Server and Exchange Online. When the wizard is finished you can add an email address with your new domain to your users mailboxes.

    Adding the new domain to your mailboxes

    The new domain is added to Exchange Online and your on-premises Exchange, now it needs to be added to the mailboxes. Depending your needs you can add a new email address with the domain manually to the mailboxes using the on-premises Exchange Admin Center (or Powershell) or by changing the Email Address Policy (or add a new policy.

    Add new domain

    After you have added new email addresses via the on-premises Exchange and performing an Azure AD Connect sync the new email address is added to the Exchange Online mailbox.
    Keep in mind when you set the new email address as reply address and don`t change the User Principal Name, those are not equal anymore, like the example below.
    In the example below my UPN contains my old (existing) domain and my new reply address contains the new domain.

    User properties

    Add the new domain to the User Principal Name

    When you also want to add the newly added domain to the User Principal Name, you first need to add a new UPN Suffix. On your local Domain Controller open Active Directory Domains and Trust, right click on AD Domains and Trust en choose Properties. Here you can add an alternative UPN Suffix (your new domain).

    Add UPN suffix

    After you have added the UPN suffix, you are able to change the UPN of your users to contain the new domain. You can do this manually by changing the domain in the User account properties.

    Change UPN

    You can also do this in bulk. To change all existing UPN`s (in this example contoso.local) to contain the new domain (contoso.com):

    $LocalUsers = Get-ADUser -Filter {UserPrincipalName -like '*contoso.local'} -Properties userPrincipalName -ResultSetSize $null
    $LocalUsers | foreach {$newUpn = $_.UserPrincipalName.Replace("contoso.local","contoso.com"); $_ | Set-ADUser -UserPrincipalName $newUpn}

    Or you can change the suffix for all users in a OU (the OU is Users under the OU DeKlapwijken in the domain deklapwijken.nl:

    $LocalUsers = Get-ADUser -LDAPFilter '(userPrincipalName=*)' -SearchBase "OU=Users,OU=DeKlapwijken,DC=deklapwijken,DC=nl" -Properties userPrincipalName
    $LocalUsers | foreach {$newUpn = $_.UserPrincipalName.Replace("contoso.local","contoso.com); $_ | Set-ADUser -UserPrincipalName $newUpn}

    After performing another sync both your User Principal Name and reply address are changed to contain the new domain and are now equal again.

    UPN and email addresses

    Exchange Online Identity Management Microsoft 365 Office 365 Outlook
    Share. Facebook Twitter LinkedIn Email WhatsApp
    Peter Klapwijk
    • Website
    • X (Twitter)
    • LinkedIn

    Peter is a Security (Intune) MVP since 2020 and is working as Modern Workplace Engineer at Wortell in The Netherlands. He has more than 15 years of experience in IT, with a strong focus on Microsoft technologies like Microsoft Intune, Windows, and (low-code) automation.

    Related Posts

    Exchange Server 2007 end of life on April 11th

    March 1, 2017

    Exchange Error: 550 5.1.1 RESOLVER.ADR.ExRecipNotFound

    February 27, 2017

    How to protect against ransomware?

    September 15, 2016
    View 21 Comments

    21 Comments

    1. Adam Cross on July 6, 2018 03:43

      I have a wierd issue. I followed what you did here exactly, and when I run the HCW, the domain doesn’t show up in the list of domains to select and proceed. I rebooted the mail servers, ran the wizard all the way through, changing nothing. Nothing seems to work. Logs don’t show anything except that under potential hybrid domain, it is missing from there. The domain shows as authoritative in both on-prem and o365. It worked 6 months ago when I had to add a new domain at that time.

      Reply
      • Peter on July 18, 2018 21:19

        Hi Adam,
        Sorry for the late reply. I have no idea. I have added an extra domain in a few Exchange setups lately, that`s why I wrote this article, and all through these steps. Maybe it`s a bug in the current HCW (the one you`re running)? Think you should contact Microsoft support, if it`s still not visible for you.

        Reply
        • echo on July 23, 2018 18:00

          Found issue, just firstly needed to add to o365 admin portal and on local exchange /ecp, then run hybrid wizard and picks up new domain.
          hope that helps if you havent found the solution yet.

          Reply
      • Echo on July 23, 2018 16:42

        I am having exactly same issue now, hybrid wizard doesnt see new domain in the list, and Hybrid Wizard was just updated when launched, guessing its same version 16.0.2417.0
        Have you found a solution to this?

        I have opened up a case with MS, but afraid its not going to be fast find.

        Reply
        • echo on July 23, 2018 16:51

          MS actually just forced update to 16.0.2485.0, but still no luck.

          Reply
          • echo on July 23, 2018 18:00

            Found issue, just firstly needed to add to o365 admin portal and on local exchange /ecp, then run hybrid wizard and picks up new domain.
            hope that helps if you havent found the solution yet.

            Reply
    2. Christian on July 18, 2018 02:28

      Peter
      Thanks so much for this article! I’ve been googling for this some days ago!
      Nice and easy steps!

      This one will go to my favorites!

      Reply
      • Peter on July 18, 2018 21:20

        Hi Christian,

        You`re very welcome. Good to read it`s not only a good reference for me 🙂

        Regards,

        Peter

        Reply
    3. Chris Robles on January 18, 2019 23:24

      When I run the Hybrid Configuration Wizard I am able to check the new domain I am adding, but if I keep all my other domains checked, it says I need a TXT record for those domains too. So, should I de-select the other domains? In your screen shot you have both domains checked. If I run Get-FederatedDomainProof for my other domains it shows they are good and finds the DNS TXT records for them. Is there any harm verifying those domains again by adding another TXT record? Thanks for this write-up.

      Reply
      • Peter Klapwijk on January 18, 2019 23:34

        Hi Chris,
        It`s been a while since I have added a new domain to an existing deployment, but as far as I remember the existing domain was already checked and I needed to check the new domain. But I just needed to verify the new domain. Maybe this is changed since that time, the Wizard received a lot of updates since that date.
        I cannot image it harms your deployment when you verify the existing domains again.

        Reply
    4. Brandt Smith on February 1, 2019 22:48

      Don’t we need to get an SSL certificate installed on the On-Premises Exchange server with the new domain listed as a SAN to the name of the mail server?

      Reply
      • Peter Klapwijk on February 2, 2019 08:17

        That depends on your configuration. If everything points to Exchange Online, nothing hits your on-premises servers, it`s not needed. But of mailflow or for example Autodiscover hits your on-premises server, you need to add the certificate.

        Reply
        • Brandt Smith on February 4, 2019 15:12

          Nothing???
          We occasionally have Interns use on-premises mailboxes. We also have printer/scanner/copier machines that use the SMTP of the on-premises Exchange.

          Reply
          • Peter Klapwijk on February 7, 2019 13:31

            Well, than it does hit your on-prem servers and you should add the certificate.

            Reply
            • Brandt Smith on February 7, 2019 14:52

              Thanks!

    5. Ase on September 8, 2020 12:11

      Hi,

      I have 200 plus accepted domains but only my primary domain is selecting when run the HCW?

      Do i have to select all.

      As

      As

      Reply
    6. Kam on February 19, 2021 00:59

      We are running exchange 2016 hybrid with central mail routing which means all emails are using in-Prem before going to exchange online, do you need to add the new domain to the SAN certificate?

      Reply
    7. Nash on July 6, 2022 13:06

      Great Article thank you, still applicable

      Reply
    8. Jacod Detry on October 1, 2022 00:58

      Do I need to change the certificate to a multidomain one before I run the hybrid? I have already imported the cert on the on prem exchange server, but I have not applied it any services. Do I need to do that beforehand? Or will that happen during the hybrid wizard that I can change the cert?

      Reply
      • JD on October 17, 2022 19:13

        You do need to apply the cert to the SMTP service or the hybrid wizard will fail

        Reply
    9. Mohammed on October 21, 2022 06:21

      Thanks. this is what I was looking for.

      Reply
    Leave A Reply Cancel Reply

    Peter Klapwijk

    Hi! Welcome to my blog post.
    I hope you enjoy reading my articles.

    Hit the About Me button to get in contact with me or leave a comment.

    Awards
    Sponsor
    Latest Posts

    Configure Azure file shares for Entra joined Windows devices and cloud identities

    December 19, 2025

    Managing Windows 365 Link devices with Intune

    October 24, 2025

    Hard drive and partitions are not shown while installing Windows

    October 14, 2025

    Intune compliance for Windows 365 Cloud PCs

    September 12, 2025
    follow me
    • Twitter 4.8K
    • LinkedIn 6.1K
    • YouTube
    • Bluesky 1.5K
    Tags
    Administrative Templates Android Automation Autopilot Azure Azure AD Browser Conditional Access Edge EMS Exchange Online Feitian FIDO2 Flow Graph Graph API Identity Management Intune Intune Monitoring iOS KIOSK Logic Apps macOS MEM MEMMonitoring Microsoft 365 Microsoft Defender Microsoft Edge Microsoft Endpoint Manager Modern Workplace Office 365 OneDrive for Business Outlook Passwordless PowerApps Power Automate Security SharePoint Online Windows Windows 10 Windows10 Windows 11 Windows 365 Windows Autopilot Windows Update
    Awards
    Sponsor
    Follow me on Twitter
    Tweets by inthecloud_247
    Tags
    Administrative Templates Android Automation Autopilot Azure Azure AD Browser Conditional Access Edge EMS Exchange Online Feitian FIDO2 Flow Graph Graph API Identity Management Intune Intune Monitoring iOS KIOSK Logic Apps macOS MEM MEMMonitoring Microsoft 365 Microsoft Defender Microsoft Edge Microsoft Endpoint Manager Modern Workplace Office 365 OneDrive for Business Outlook Passwordless PowerApps Power Automate Security SharePoint Online Windows Windows 10 Windows10 Windows 11 Windows 365 Windows Autopilot Windows Update
    Archives
    Peter Klapwijk

    Hi! Welcome to my blog post.
    I hope you enjoy reading my articles.

    Hit the About Me button to get in contact with me or leave a comment.

    Copy right

    This information is provided “AS IS” with no warranties, confers no rights and is not supported by the authors, or In The Cloud 24-7.

     

    Copyright © 2025 by In The Cloud 24-7/ Peter Klapwijk. All rights reserved, No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

    Shorthand; Don’t pass off my work as yours, it’s not nice.

    Recent Comments
    • George on Configure Azure file shares for Entra joined Windows devices and cloud identities
    • Ganesh sekarbabu on Configure Azure file shares for Entra joined Windows devices and cloud identities
    • John on Connect to Azure file shares with Microsoft Entra Private Access
    • Luis on Application installation issues; Download pending
    • AndrewWak on Issues syncing SharePoint Online libraries with OneDrive for Mac
    most popular

    Application installation issues; Download pending

    October 1, 2024

    How to change the Windows 11 language with Intune

    November 11, 2022

    Restrict which users can logon into a Windows 10 device with Microsoft Intune

    April 11, 2020

    How I solved a strange Kerberos issue

    December 12, 2024
    Recent Comments
    • George on Configure Azure file shares for Entra joined Windows devices and cloud identities
    • Ganesh sekarbabu on Configure Azure file shares for Entra joined Windows devices and cloud identities
    • John on Connect to Azure file shares with Microsoft Entra Private Access
    • Luis on Application installation issues; Download pending
    • AndrewWak on Issues syncing SharePoint Online libraries with OneDrive for Mac
    Copy right

    This information is provided “AS IS” with no warranties, confers no rights and is not supported by the authors, or In The Cloud 24-7.

    Copyright © 2023 by In The Cloud 24-7/ Peter Klapwijk. All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

    Shorthand: Don’t pass off my work as yours, it’s not nice.

    Peter Klapwijk – In The Cloud 24-7
    X (Twitter) LinkedIn YouTube RSS Bluesky
    © 2026 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.

    Manage Cookie Consent
    To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
    Functional Always active
    The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
    Preferences
    The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
    Statistics
    The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
    Marketing
    The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
    • Manage options
    • Manage services
    • Manage {vendor_count} vendors
    • Read more about these purposes
    View preferences
    • {title}
    • {title}
    • {title}