Hi @ Jan De Smet ,
Great to know that you've already thought of a solution and really appreciate it for your sharing!
By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:
[Alias in exchange online visible but does not exisit in onprem AD]
Issue Symptom:
For one of our users we see an existing alias in our Exchange online portal. In our AD onprem there is no such alias.
In ADSIEDIT we cannot find the alias. I found some information on deleting the user, but there's a lot of maildata, I do want to explore other possibilities first.
The Solution:
I ended up deleting the user object in the onprem AD. Synced manually.
I created a new user with the same SMTP and upn.
I then restored the content from the "old" mailbox to the new mailbox.
this worked perfect.
You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!