If you are connecting your calendar via Other Calendars and encountering any issues, this guide will help you understand the key requirements and configurations needed for a successful setup.
Sembly and other external calendar services can integrate with Microsoft Exchange Server 2019 using Exchange Web Services (EWS). This article explains how EWS works in this context and walks you through the necessary configuration steps to ensure secure and reliable access.
Verify EWS is Enabled
Exchange 2019 has EWS enabled by default, but you should confirm:
- Open Exchange Management Shell (EMS).
Run the command:
Get-WebServicesVirtualDirectory | Format-List Name,Server,InternalUrl,ExternalUrl
- Make sure InternalUrl and ExternalUrl are set correctly.
- ExternalUrl is required if the service connects from outside your network.
Set or Update the EWS URL
If your EWS URL needs updating for external access:
Set-WebServicesVirtualDirectory -Identity "EWS (Default Web Site)" -ExternalUrl https://mail.yourdomain.com/EWS/Exchange.asmx- Replace
https://mail.yourdomain.comwith your actual Exchange external domain. - Verify connectivity:
Test-WebServicesConnectivity -ClientAccessServer <YourServerName> -Service EWSCreate a Service Account
Most external services require a dedicated account:
- Create a user account in Active Directory.
- Assign ApplicationImpersonation if the service needs access to multiple mailboxes:
New-ManagementRoleAssignment -Name:impersonationAssignmentName -Role:ApplicationImpersonation -User:serviceAccount- Replace
serviceAccountwith your service account name.
Configure Mailbox Permissions (Optional)
If the service accesses a specific mailbox:
Add-MailboxPermission -Identity user@domain.com -User serviceAccount -AccessRights FullAccessEnable Authentication
Some integrations still use Basic Authentication; Microsoft recommends OAuth 2.0:
- Check current EWS authentication:
Get-WebServicesVirtualDirectory | Format-List Name,Server,BasicAuthentication,WindowsAuthentication- Enable Basic Authentication (if necessary):
Set-WebServicesVirtualDirectory -Identity "EWS (Default Web Site)" -BasicAuthentication $trueFor production, use OAuth 2.0 for better security.
Test Connectivity
The external service will typically need:
- EWS URL:
https://mail.yourdomain.com/EWS/Exchange.asmx - Username & password: service account credentials
- Domain: Active Directory domain
- Optional: Impersonation for multiple mailboxes
Firewall & SSL
- Ensure port 443 is open for HTTPS traffic from the external service.
- Use a valid SSL certificate that matches your external domain.
Enable OAuth (Optional)
For modern, secure integration:
- Register your application in Azure AD (for Hybrid/Office 365) or ADFS (on-prem).
- Grant EWS.AccessAsUser.All permission.
- Configure the service with Client ID, Tenant ID, and Secret.
Troubleshooting
If issues occur, try:
- Restarting Exchange services
- Resetting OWA virtual directories
- Installing the latest Cumulative Update (CU)
Comments
0 comments
Article is closed for comments.