Exchange On-Premises: Server Architecture and Operations

Exchange On-Premises means that the organization operates Exchange in its own infrastructure. It controls Windows hosts, Active Directory, certificates, transport services, queues, mailbox databases, and recovery. Microsoft provides product code, documentation, and updates; availability and secure maintenance remain the operator’s responsibility (Exchange Server documentation, Exchange Server architecture).

The practical difference from Exchange Online becomes apparent immediately during an outage. An on-premises admin can examine a transport queue on a specific server, check the state of a database copy, and perform a controlled switchover to another copy. However, they must also understand how SMTP, Active Directory, ESE, Windows Failover Clustering, IIS, and Exchange services work together.

The Mailbox server is the central building block

Modern Exchange servers use the Mailbox server as a shared building block. It includes Client Access services that accept and proxy connections, transport services for mail flow, and the Information Store with mailbox databases. An installation can start small; multiple servers and database copies extend the same basic model for high availability (Exchange Server architecture).

This consolidation does not mean that all functions have the same status. An HTTPS frontend may be reachable even though the requested database is not mounted. SMTP may accept connections while a message later waits in a queue. Diagnostics should therefore follow the actual path rather than only the server’s overall status.

The optional Edge Transport role is typically located in the perimeter network and processes SMTP traffic only. EdgeSync transfers selected recipient and configuration information to a local AD LDS instance. Edge does not hold a mailbox database and is not a replacement for internal Mailbox servers (Edge Transport servers).

Technology stack and dependencies

The technology stack follows from the server building block. Exchange runs on supported Windows Server versions and uses Active Directory for organization, server, and recipient configuration. IIS provides HTTP endpoints. PowerShell provides the management interface. ESE stores mailbox and queue data in separate databases (Exchange Server system requirements, Active Directory in Exchange Server).

TechnologyFunction in Exchange operationsKey admin question
Windows ServerProcesses, services, networking, certificate store, and event logsIs the host healthy and correctly patched?
Active DirectoryExchange organization, servers, recipients, RBAC, and routing informationIs the correct change visible on the Domain Controllers in use?
IIS and HTTPSOutlook on the web, EAC, EWS, ActiveSync, Autodiscover, and MAPI/HTTP frontendsDo the name, certificate, authentication, and backend route match?
SMTP and TLSMessage acceptance and forwardingWhich connector accepted the message and which next hop was selected?
ESEMailbox databases, transport queue, and transaction logsWhich database and log sequence belong together?
PowerShellManagement through cmdlets and RBACWhich role, scope, and server context apply?

For experts, the Active Directory dependency is particularly important. Exchange Setup extends the schema and writes organization configuration to the Configuration partition. Recipient attributes reside in the domain partition. Replication delays or an unreachable Domain Controller can therefore affect different functions differently.

The transport pipeline step by step

With the technical foundation in place, the message path can be read in greater detail. An incoming SMTP connection first reaches the Front End Transport service. It accepts the dialog and proxies it to the Transport service; it does not itself deliver the message to a mailbox (Mail flow and the transport pipeline).

The Transport Service stores the message in its queue database. It then categorizes it: recipients are resolved, rules and transport agents run, and routing determines the next hop. For a local mailbox, Mailbox Transport Delivery hands the message to the Store. A message sent from a mailbox returns to transport through Mailbox Transport Submission.

This sequence explains common observations. A successful SMTP test proves only acceptance at the frontend. A RECEIVE event in message tracking does not yet prove delivery. Only subsequent events, the queue, and, where applicable, Store status show where processing ended (Message tracking).

Transport agents and mail flow rules can reject, redirect, copy, or modify messages. Because multiple transport instances can arise in the process, searches should not be based on the subject alone. Network Message ID, Internet Message ID, sender, recipient, time, and server together provide the more reliable trail.

Routing, domains, and connectors

After acceptance, Exchange must know whether a recipient is local or whether the message is relayed. Accepted Domains describe this relationship. An authoritative domain expects all valid recipients in its own organization. An internal relay domain allows unknown recipients to be relayed. External relay hands the domain entirely to another mail server (Accepted domains in Exchange Server).

Receive Connectors classify incoming sessions based on local binding, remote IP range, authentication, and permissions. Send Connectors select an outbound path from address space, cost, source servers, and DNS or smart-host routing. Multiple matching connectors are evaluated according to documented routing rules; a connector’s name does not control selection (Connectors on Exchange servers, Mail routing in Exchange Server).

For normal operations, a simple model is sufficient: a Receive Connector explains how a message comes in; an Accepted Domain and recipient resolution explain whether Exchange is responsible; a Send Connector and routing explain where it goes next. Experts add AD sites, Delivery Groups, DAG membership, connector scoping, and transport rules.

Mailbox database, logs, and checkpoint

When transport hands a message to the Store, another part of the system begins. Exchange stores mailboxes in ESE mailbox databases. Changes are first written to transaction logs and later committed to the .edb file. The checkpoint file records up to which log position the database pages have been written (Transaction logs and checkpoint files).

This sequence enables crash recovery but requires related files. A copied .edb without matching logs and a known shutdown state is not automatically recoverable. Likewise, a backup must not indiscriminately delete log files that are still required for recovery or replication.

The transport queue also uses ESE, but it is a separate database with its own logs. Mailbox databases and queues must therefore be monitored and recovered separately. A healthy mailbox database does not eliminate a blocked SMTP next hop; an empty queue does not repair a corrupted mailbox copy (Queues and the queue database).

Database Availability Group and Active Manager

A single Mailbox server explains normal operations. For high availability, multiple servers are joined into a Database Availability Group, or DAG. Each mailbox database has exactly one active copy and can have passive copies on other DAG members. Changes are transferred through log and block replication and replayed on passive copies (Database availability groups, Mailbox database copies).

The Active Manager in the Microsoft Exchange Replication Service decides which copy is active. Best Copy and Server Selection evaluates, among other things, copy and replay status, activation blocks, and server health. A copy queue of zero is therefore helpful, but not complete proof that a copy can be activated immediately (Active Manager).

Transport high availability protects a different section of the path. Shadow Redundancy keeps an additional copy while the message is in transit. Safety Net retains already processed messages for possible resubmission after database activation. DAG, Shadow Redundancy, and Safety Net complement one another; none of the three features replaces a backup against accidental deletion or long-undetected corruption (Transport high availability).

Client access and Autodiscover

The database can be healthy and a user may still be unable to open Outlook. Client Access Services accept HTTPS connections and proxy them to the backend on the server with the active database. A load balancer therefore needs more than an open TCP port: the name, certificate, protocol endpoint, and backend health must all match (Client Access protocol architecture).

Autodiscover provides the client with the appropriate settings. Domain-joined clients can use Service Connection Points in Active Directory; external and other clients follow DNS and HTTPS procedures. Errors often result from outdated SCPs, conflicting DNS responses, incorrect certificate names, or a frontend that proxies to the wrong backend (Autodiscover service).

MAPI over HTTP is the typical Outlook transport. Outlook on the web, EWS, and ActiveSync also use HTTPS, but have their own virtual directories, authentication, and application characteristics. A successful OWA test therefore does not automatically prove a healthy MAPI/HTTP session (MAPI over HTTP).

Active Directory and recipients

After transport and client access, the directory remains the common foundation. Exchange stores organization and server configuration as well as recipient attributes in Active Directory. Cmdlets do not write this data to a private Exchange database, but to AD through Exchange logic (Active Directory in Exchange Server).

A recipient issue is therefore investigated along three questions: Does the correct object exist? Are the type, primary address, proxy addresses, and target attributes correct? Has the change reached the Domain Controller used by the affected Exchange service? Only then is it worthwhile to investigate transport.

For experts, global catalogs, AD sites, Recipient Update, Address Book Policies, and hybrid attributes are added. Direct changes with generic AD tools bypass Exchange validation and can create configurations that are syntactically present but functionally inconsistent.

Security and administrative control

Exchange publishes SMTP and HTTPS services and processes highly privileged directory and mailbox data. The foundation consists of timely Security Updates, minimally exposed endpoints, appropriate certificates, secured administrative accounts, and traceable changes (Exchange Server Security Updates, TLS certificates in Exchange Server).

RBAC separates tasks through roles, role groups, and scopes. Mailbox permissions such as Full Access or Send As remain separate from it. Administrator Audit Logging records cmdlet changes, but does not replace operating system, Active Directory, and security logs (Permissions in Exchange Server, Administrator audit logging).

For experts, the management interface itself is part of the protection model. EAC, Exchange Management Shell, Remote PowerShell, WinRM, RDP, and hypervisor access have different rights and protocols. A compromised server administrator can take actions outside Exchange RBAC; tiering and separate privileged accounts therefore remain important.

Operations: from symptom to specific server

Managed Availability runs probes, monitors, and responders. Health Sets group these results by function and can trigger automatic recovery actions. They are a good starting point, but not a complete end-to-end test (Managed Availability).

For mail flow, local diagnostics begin with Get-Queue and Get-MessageTrackingLog. Queue count, next hop, retry time, and LastError belong together. For databases, use Get-MailboxDatabaseCopyStatus and Test-ReplicationHealth. Get-ServerHealth shows Health Sets and monitors.

These cmdlets run in the Exchange Management Shell on supported Windows Server versions. Network and DNS tests, by contrast, can be performed from either admin platform. Test-NetConnection checks a TCP endpoint on Windows; nc performs the same port test on Unix. Resolve-DnsName and dig check DNS. openssl s_client is suitable for SMTP with STARTTLS, while swaks is suitable for a controlled SMTP dialog.

The diagnostic order is: resolve the public or internal name, test connectivity to the correct frontend, confirm acceptance in the protocol log, follow tracking events, check the queue and next hop, and only investigate the Store and database for local delivery.

Backup and recovery

High availability keeps the service available during individual failures; recovery restores a desired previous or lost state. Exchange documents server recovery, database restore, and Recovery Database as separate procedures (Backup, restore, and disaster recovery).

A recoverable inventory includes at least Active Directory, Exchange organization and server configuration, certificates and private keys, mailbox databases with logs, connector and rule configuration, and documented installation and recovery parameters. The Recovery Database allows a restored database to be mounted in isolation and content to be transferred into active mailboxes (Restore data using a recovery database).

Experts do not merely test whether a backup job succeeded. They measure how long it actually takes to restore Active Directory, a failed server, a database, and individual mailbox content. This includes checking which log sequences are required, what DNS and certificate dependencies exist, and whether client and SMTP paths function again after the restore.

Technical evolution and limitations

Exchange 4.0 was released in 1996. Early versions used their own directory, MAPI, and ESE; SMTP and Active Directory became central platform components with Exchange 2000. Exchange 2007 introduced server roles and Exchange Management Shell. Exchange 2010 replaced older clustering models with the Database Availability Group (Exchange Team: A brief history of time, Exchange Server 2007 transport redesign).

Later versions consolidated Client Access and Mailbox functions again into a shared server building block. Exchange Server Subscription Edition continued the on-premises product line under the Modern Lifecycle in 2025. Build numbers, supported upgrade paths, and Security Updates must be checked in Microsoft’s current documentation before every change (Exchange Server SE release notes, Exchange Server build numbers and release dates).

Exchange On-Premises is suitable when the organization needs control over database operations, network paths, and local integration and can provide the required 24/7 operations. The downside is complex dependencies, continuous security maintenance, and recovery responsibility. A single server may look simple; a resilient Exchange service is always also an Active Directory, network, certificate, storage, and operations project.

Sources
Free tool

Mail DNS Check

Check a domain's MX, SPF, DKIM, DMARC, and more in seconds.

Free tool

Mail Header Analyzer

Trace an email's delivery path and authentication from its header, 100% locally in your browser.

Analyze a header →
Free tool

Command Builder

Assemble DNS, SMTP, TLS, LDAP and network commands for PowerShell or the shell, built-ins first.

Build a command →
Free tool

HIN Check

Is an email address reachable securely via HIN? Checks the mail domain against HIN's directory.

Free tool

LEG Price Calculator

Is a Swiss local electricity community worth it? Grid discount versus service fee, for consumers and solar producers.

Run the numbers →

All tools →

Enlarged infographic