---
title: "Configure Exchange 2019 calendar on-premise"
description: ""
url: https://help.sembly.ai/en/articles/113-configure-exchange-2019-calendar-on-premise
collection: "Account settings"
updated: 2026-10-22
language: en
---

# Configure Exchange 2019 calendar on-premise



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 configuration steps needed to ensure secure, reliable access. 

## Verify EWS is enabled

Exchange 2019 has EWS enabled by default, but you should confirm:

1.  Open Exchange Management Shell (EMS).
    
2.  Run the command:
    
    ```javascript
    Get-WebServicesVirtualDirectory | Format-List Name,Server,InternalUrl,ExternalUrl
    ```
    
3.  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:

```auto
Set-WebServicesVirtualDirectory -Identity "EWS (Default Web Site)" -ExternalUrl https://mail.yourdomain.com/EWS/Exchange.asmx
```

-   Replace `https://mail.yourdomain.com` with your actual Exchange external domain.
    
-   Verify connectivity:
    

```auto
Test-WebServicesConnectivity -ClientAccessServer <YourServerName> -Service EWS
```

## Create a service account

Most external services require a dedicated account:

1.  Create a user account in Active Directory.
    
2.  Assign ApplicationImpersonation if the service needs access to multiple mailboxes:
    

```auto
New-ManagementRoleAssignment -Name:impersonationAssignmentName -Role:ApplicationImpersonation -User:serviceAccount
```

-   Replace `serviceAccount` with your service account name.
    

## Configure mailbox permissions (optional)

If the service accesses a specific mailbox:

```auto
Add-MailboxPermission -Identity user@domain.com -User serviceAccount -AccessRights FullAccess
```

## Enable authentication

Some integrations still use Basic Authentication; Microsoft recommends OAuth 2.0:

1.  Check current EWS authentication:
    

```auto
Get-WebServicesVirtualDirectory | Format-List Name,Server,BasicAuthentication,WindowsAuthentication
```

2.  Enable Basic Authentication (if necessary):
    

```auto
Set-WebServicesVirtualDirectory -Identity "EWS (Default Web Site)" -BasicAuthentication $true
```

For 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:

1.  Register your application in Azure AD (for Hybrid/Office 365) or ADFS (on-prem).
    
2.  Grant EWS.AccessAsUser.All permissions.
    
3.  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).
