A robust email, calendaring, and collaboration platform developed by Microsoft, designed for enterprise-level communication and data management.Miscellaneous topics that do not fit into specific categories.
Based on my understanding and my research, your network team does not need to make any firewall changes. The "LDAP server unavailable" error is actually being caused by the parameters in the legacy script, which are being run on the wrong server.
The parameters -CreateInternetSendConnector and -CreateInboundSendConnector are strictly intended to be run on your Mailbox server, not your Edge server. When you run New-EdgeSubscription with those parameters, the Exchange Management Shell attempts to write configuration data directly to your internal Active Directory. Because the Edge server sits in your DMZ, it is isolated and cannot reach your internal Domain Controllers. Therefore, it throws the exact error you are seeing: "LDAP server unavailable".
Your coworker's observation about port 50636 is correct, but this is the intended design. The Microsoft Exchange EdgeSync service operates as a one-way push. The Mailbox server connects outbound to the Edge server's local directory (AD LDS) over TCP port 50636 to push recipient data. The Edge server never initiates a connection back to the internal network over 50636. You can consider advise your team to cancel the network change, as opening this port bidirectionally is unnecessary and could pose a security risk.
To complete your Certificate Renewal and Edge Subscription
- Generate the XML file on the Edge Server: Log into the Edge Server, open the Exchange Management Shell, and run the following command. (Note: Do not use any other parameters here):
New-EdgeSubscription -FileName "C:\EdgeSubscription.xml"(Press 'Y' if prompted to overwrite the existing configuration). - Remove the old subscription on the Mailbox Server: Copy the
EdgeSubscription.xmlfile you just created from the Edge server to the C:\ drive of your internal Mailbox server. Then, log into the Mailbox server and remove the old, expired subscription:Get-EdgeSubscription | Remove-EdgeSubscription - Import the XML on the Mailbox Server (Using your parameters): Still on the Mailbox server, import the file. This is where those optional parameters belong:
$FileData = [System.IO.File]::ReadAllBytes('C:\EdgeSubscription.xml')New-EdgeSubscription -FileData $FileData -Site "Default-First-Site-Name" -CreateInternetSendConnector $true -CreateInboundSendConnector $true
(Note: Please change "Default-First-Site-Name" if your Active Directory site is named differently).
- Force Synchronization: Finally, on the Mailbox server, force the sync to establish the connection using the newly trusted certificate:
Start-EdgeSynchronization
Additionally, Exchange Server 2016 and 2019 reached their End of Support on October 14, 2025. If your environment is still running on those versions, I highly recommend planning an in-place upgrade to Exchange Server Subscription Edition (SE). The Edge Transport architecture has not changed in Exchange SE, so the steps outlined above will apply perfectly to your environment regardless of the version you are running.
For your information, you can see:
New-EdgeSubscription (ExchangePowerShell) | Microsoft Learn
Network ports for clients and mail flow in Exchange | Microsoft Learn
I hope this information helps. If you need further question, please feel free to let me know. I look forward to your response!
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.