Hi, when I enable a license for Exchange Online for a user I get the following warning: image.pngHere are the current settings for creating a remote mailbox per this article: image.pngI've tried to set a template for the remote routing address but I get the below error when running the powershell script: The property 'RemoteMailboxesRemoteRoutingAddress' cannot be found on this object. Verify that the property exists and can be set. At line:19 char:1

  • $tenant.RemoteMailboxesRemoteRoutingAddress = $addressTemplate + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidOperation: (:) [], RuntimeException     + FullyQualifiedErrorId : PropertyAssignmentException

image.png

ago by (70 points)
ago by (307k points)
0

Hello Allister,

To help us troubleshoot the issue, please, provide us with a screenshot of the Multi-server environment dialog. The dialog displays how many Adaxes services you have and what their versions are. For information on how to view it, see https://www.adaxes.com/help/MultiServerEnvironment. Also, please, provide the full script you executed in TXT format.

ago by (70 points)
0

Hi, here is the multi-server environment dialog: image.png

The script I ran is:

[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

$serviceHost = "localhost" $tenantDN = "CN=Office 365,CN=Cloud Services,CN=Configuration Objects,CN=Adaxes Configuration,CN=Adaxes" $addressTemplate = "%username%@DOMAIN.mail.onmicrosoft.com"

# Connect to the Adaxes service. $ns = New-Object "Softerra.Adaxes.Adsi.AdmNamespace" $service = $ns.GetServiceDirectly($serviceHost)

# Prompt for credentials. $credential = Get-Credential

# Bind to the Microsoft 365 tenant. $tenant = $service.OpenObject("Adaxes://$tenantDN", `     $credential.UserName, $credential.GetNetworkCredential().Password, 0)

# Update the template. $tenant.RemoteMailboxesRemoteRoutingAddress = $addressTemplate $tenant.SetInfo()

1 Answer

ago by (307k points)
0 votes

Hello Allister,

Thank you for the provided details. The $tenantDN variable value is incorrect. It must be like below. To get the proper value, make sure to follow precisely the steps from the variable description (looks like you missed steps 6 and 7).

CN=My Tenant,CN=Office 365,CN=Cloud Services,CN=Configuration Objects,CN=Adaxes Configuration,CN=Adaxes

Also, you are using an old build of Adaxes 2025.1 that has known issues. We recommend upgrading to Adaxes 2025.1 Update 4.

Upgrade instructions

What’s New

Related questions

When attempting to assign licenses during the "after creating a user" rule we're reciving the following error. Failed to create a remote mailbox for the user. The address ' ... mail attribute to the proper format that isn't the onmicrosoft.com domain as well.

asked Sep 2, 2021 by zorps (20 points)
0 votes
0 answers

When creating a hybrid user mailbox with a Business Rule, after user creation, the remote routing address of the mailbox is set to the users email alias. How do I set it to the 365 address username@ourdomain.mail.onmicrosoft.com

asked Apr 13, 2022 by john.harding (70 points)
0 votes
1 answer

Hi, is it possible to export automatically the exchange online mailbox of a user to a .PST file on our archive server before the user is deleted? Kind regards, Fabian

asked Oct 26, 2023 by fabian.p (380 points)
0 votes
1 answer

Using this built in function: There is no option to change the domain on the user account, however this is not the domain we use for UPN. However after creating a user, you can change it but trying to avoid going back into the object.

asked Apr 14, 2023 by mightycabal (1.2k points)
0 votes
1 answer

Hello, I can not give the user right to create mailbox exchange I have the following message: The 'Microsoft Exchange (domaine.local\Configuration\Services)' ... (Adaxes\Adaxes Configuration\Configuration Objects\Managed Domains)' object does not exist.

asked May 22, 2012 by mmichard (360 points)
0 votes
1 answer