• IDD
  • IDD
  • Job Scheduler Services Creation
  • Skybuffer AI
    • Skybuffer AI Installation and Initial Setup
      • On Business Technology Platform (BTP)
        • Skybuffer AI Installation Guide on BTP
      • On Premise: XSA Runtime and SAP HANA EE
        • Installing SAP HANA Including XS Runtime
        • XS Deployment Process
      • Post Installation User Guide
    • AI Agent
      • AI Agent Configurator
        • Register New AI Agent
        • Intents and Entities Creation
        • Tool Creation and Management
        • Actions
          • Message and Content Actions
            • Structured Messages
            • Adaptive Card
            • Sending Notifications
          • Destination Calls Actions
          • Conversation Flow and Memory Actions
          • Process Data Actions
            • Email Processing Action
            • Email Post-Processing Action
            • File Parsing Action
            • Upload File to Document Grounding
          • AI Actions
            • Generative AI Action
            • Document Grounding Action
            • Log Insight Action
            • Tools Orchestration Action
        • Translation
        • Scheduling
        • Communication Channels
          • Tools Activation
          • Destination Assignment
          • Copy the Existing Channel
          • Webchat Communication Channel Setup
          • Facebook Messenger Communication Channel Setup
          • Zoom Communication Channel Setup
          • Slack Communication Channel Setup
          • MS Teams Communication Channel Setup
          • Telegram Communication Channel Setup
          • Viber Communication Channel Setup
          • WhatsApp Communication Channel Setup
          • FLP Chat Communication Channel Setup
          • Background Execution Communication Channel Setup
          • OpenAiCompatible Channel Setup
          • MCP Channel
        • Monitor Section
      • Data Source Scenarios Management
      • Business AI Scenarios
      • Document Grounding Hub
      • Destination Management
      • Emails AI Processing Monitor
      • Models Hub
      • Identity Providers
      • Survey Craft
      • Predefined Response Translator
    • AI Connector
      • AI Connector Configurator
      • AI Connector Logs
      • AWS Integration
      • Twilio Integration
    • SAP Backend for Business AI
      • Business AI Scenarios Package Administration
        • Installation Guide
        • Uninstallation Guide
      • Business AI Scenarios Package Maintenance Guide
        • Product License
        • Configuration of Email Sending Mechanism
          • Configuration Settings
          • Setup of Specific Email Sending Control
        • Technical User Setup
          • Central oData Service Authorization Role Maintenance
          • Technical User ID Creation
        • Assigning Business AI Scenarios to ABAP RIK Classes
        • Simplified User Creation Scenario Setup (Without Approval Workflow)
          • Maintain and Assign Reference Users for User Creation Scenario
          • Activate Notification for New User Creation (Optional)
        • User Creation Scenario Setup with Approval Workflow
          • Configure Approval Workflow for User Creation Scenario
          • Set Up Approval Steps for Different User Types Creation
      • MCP Server
        • MCP Server Configuration in ABAP System
        • MCP Tools Creation
    • Hybrid Chats
      • Hybrid Chats Maintenance Guide
        • Business and Technical Users Setup
          • Create Business and Technical Users
          • Create Business Partners
        • Tenant Configuration
        • Live Pool Management and Configuration
          • Start Live Pool
          • Manage Live Pool
        • System Configuration
          • Configure Status Profile
          • Set Up Technical Messages for Hybrid Chats
        • Hybrid Chats Configuration
        • Hybrid Chats Categorization
          • Categorization Management
          • Categorization Mapping
          • Translate Categories
      • Hybrid Chats User Manual
        • Hybrid Chats
          • HC Archive Mode
          • HC Active Mode
        • HC My Data
          • Edit Personal Data and Profile Picture
          • Default Settings Management
          • Notification and Dialogue Manual Mode Management
          • Quick Replies Management
            • Standard User Mode - Quick Replies
            • Administrator User Mode - Quick Replies
        • HC Analytics
          • HC Analytics
          • Operator Activity Analytics
          • Exit Survey Analytics
        • HC Teams
          • Access HC Teams Application
          • Create New Team
          • Create New Team Member
          • Edit Agent
          • Edit Team Name
    • HOW-TO Guides
      • Exchange On-Premises Shared Mailbox Integration
      • MS Teams Integration. Single Sign-On
        • Create Azure Bot Service
        • Configure Azure Bot Service and Connect to the AI Agent MS Teams Channel
        • Create Middleware SSO Application
        • Configure Bot Service Application SSO
        • Create Azure AD Enterprise Application for SAP Backend
        • Configure oAuth2 in SAP System
        • Assign Identity Provider in AI Agent Channel Configuration
        • Deploy Your App into Microsoft Teams
        • Managing Application Keys
      • Office 365 Shared Mailboxes (IMAP) Integration
      • SAP AI Core Integration. Ollama Server Setup
      • DGX Spark Server Configuration
      • Skybuffer AI PoC Setup
        • SAP BTP
      • MS SharePoint Integration. Add-in Registration
    • Troubleshooting
      • Edge Browser Access Issue

Exchange On-Premises Shared Mailbox Integration

7 views 0

This document describes the preparation of a local Microsoft Exchange Server environment for EWS-based integrations. The setup uses Active Directory Domain Services and a locally hosted Exchange Server instance running inside a Windows Server.

Step 1. Install Exchange Server

Download Exchange Server:

Microsoft Exchange Server Download

Open PowerShell as Administrator and run the following commands one by one:

Prepare Schema

.\Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF

Prepare Active Directory

.\Setup.exe /PrepareAD /OrganizationName:"LabOrg" /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF

Prepare All Domains

.\Setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF

Install Exchange

.\Setup.exe /Mode:Install /Roles:Mailbox /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF

The installation typically takes 30–60 minutes.

Restart the server after installation completes.

Step 2. Verify Exchange Installation

Check Exchange services: Get-Service *Exchange*

Most Exchange services should be in the Running state, including services related to Active Directory topology, transport, information store, frontend transport, search, and RPC client access.

Some services such as POP3 or IMAP4 may remain stopped if they are not configured or required.

Verify EWS

Open: https://localhost/EWS/Exchange.asmx

This confirms that Exchange Web Services (EWS) is available.

Verify Exchange Admin Center

Open: https://localhost/ecp

Verify Outlook Web App

Open:https://localhost/owa

Step 3. Create a Shared Mailbox

Open Exchange Management Shell and create the shared mailbox:

New-Mailbox -Shared -Name "TestShared" -Alias TestShared

Grant Full Access permissions:

Add-MailboxPermission -Identity TestShared -User Administrator -AccessRights FullAccess

Grant Send As permissions:

Add-ADPermission TestShared -User Administrator -ExtendedRights "Send As"
Step 4. Exchange Web Services (EWS)

Exchange Web Services (EWS) is a SOAP-based API used for integrations with Microsoft Exchange Server on-premises environments.

Typical EWS endpoint:https://localhost/EWS/Exchange.asmx

EWS can be used for:

  • Reading and sending emails
  • Shared mailbox access
  • Calendar management
  • Attachment handling
  • Mailbox impersonation
  • NTLM and Basic authentication
  • Service integrations

Applications written in Node.js, C#, Python, or PowerShell can communicate with Exchange through this endpoint.

Step 5. Prepare Certificates for Node.js Integration

The Exchange certificate must be exported from the Exchange server and trusted on the application machine.

Export Exchange Certificate

Open Exchange Management Shell and list certificates:

Get-ExchangeCertificate | fl Thumbprint,Subject,CertificateDomains,Services

Create export directory:

New-Item -ItemType Directory -Path C:\Temp -Force | Out-Null

Export the certificate (Windows):

$thumb = "6ECFA8EDB06AD8EC06F180EBF2DFAA4FC23A245D"
$cert  = Get-Item "Cert:\LocalMachine\My\$thumb"

[System.IO.File]::WriteAllBytes(
  "C:\Temp\exch-srv.cer",
  $cert.Export([System.Security.Cryptography.X509Certificates.X509ContentType]::Cert)
)

Copy the .cer file to the local machine.

Trust the Certificate

Run on the local machine:

certutil -addstore -f Root "C:\certs\exch-srv.cer"

Was this helpful?

Yes  No
Related Articles
  • MCP Server Configuration in ABAP System
  • MCP Tools Creation
  • Upload File to Document Grounding
  • Job Scheduler Services Creation
  • MCP Server
  • Data Source Scenarios Management
Copyright 2022 Skybuffer.com. All Rights Reserved.