Lukas Beran
Lukas Beran

Welcome to my blog! If you're looking for tutorials, hints or tips for IT, you're right here. You will find mostly articles on Microsoft products and technologies - operating systems, servers, virtualization, networks, management, but also the cloud. Sometimes I add some other interesting things.

September 2018
MTWTFSS
« Jan Jun »
 12
3456789
10111213141516
17181920212223
24252627282930

Categories


Change the address from onmicrosoft.com to your own domain

Lukas BeranLukas Beran

For Azure AD Connect synchronized domains, I find it quite common that a customer sets up the synchronization itself, but does not read documentation describing the preparation before deploying Azure AD Connect. This usually results in using a local domain in the local Active Directory (the .local domain) and does not have a publicly routable domain added. As a result, user accounts are created in the cloud on the default onmicrosoft.com domain instead of on their own domain. And because of that the outgoing mail has the form name@company.onmicrosoft.comΒ , which of course nobody wants πŸ™‚

How to change onmicrosoft.com to your own domain

The solution (and indeed the right preparation) is, fortunately, very simple.

You must add a publicly routable domain on which you want to run mail to your local Active Directory. In Active Directory Domains and Trusts, therefore, we add a new domain in the form of mycompany.com as an alternative UPN suffix.

This new UPN suffix must then be set to all users either directly as UPN, or we can select an attribute mail (in the form of a full e-mail address name@mycompany.comΒ ) or ProxyAddress (in the form of SMTP:name@mycompany.comΒ ). If we do not want to click it manually, we can automate it using PowerShell for example to change the UPN

(Source: Prepare a non-routable domain for directory synchronization)

If you have not started the synchronization process, you can now run it and user accounts will be created with the correct address on your own domain.

If you have already started the process and you are just fixing the problem, it is necessary to force the complete synchronization cycle for Azure AD Connect

Now just wait for the synchronization to finish and the problem is resolved πŸ™‚

New technology enthusiast interested primarily in Microsoft technologies and services. Intermittent blogger and traveler.

Comments 2
  • Sascha
    Posted on

    Sascha Sascha

    Reply Author

    Finally!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Finally I managed to beat AAD πŸ™‚

    My colleague set up Azure AD Connect and I continued on his work but was not able to get the default login from that ********* to .

    I tried every key word search I could think of to get a proper description on how to do that and after 3 days in which I cursed microsoft a lot I finally found your description.
    And well – 10 minutes later it worked.

    So as usuall its just doing it right and it will work – unfortunatly knowing how to do it right aint always that easy πŸ™‚

    Thanks for the content and have a very nice day! πŸ™‚

    Best,
    Sascha


    • Lukas Beran
      Posted on

      Lukas Beran Lukas Beran

      Reply Author

      I glad that the article helped you πŸ™‚ Have a great day as well!