We have a single AD domain that also matches our primary email domain (e.g. @primarydomain.com), but we also have multiple company specific email domains (e.g. @companydomain.com) hosted in Office 365. We use AD Sync to sync users from our local domain with O365.
Manually we would create a user in AD with a default email address that would match the following: email@example.com
We would then sync to O365, and after the fact we would then amend the email property for the user in AD to firstname.lastname@example.org, and then add SMTP:email@example.com and smtp:firstname.lastname@example.org to the proxy address fields for the user in AD. After the next sync the user will then have email@example.com as primary email address, firstname.lastname@example.org as an alias and email@example.com as O365 login name.
How can I replicate this in Adaxes, considering that we would like to also link the companydomain.com to the user's company value set in AD.