Chapter 2. Deploying Exchange Server 2013

You can implement Exchange services in several ways:

  • On-premisesAn implementation where you deploy Exchange server hardware on your network and manage all aspects of the implementation, including server configuration, organization configuration, and recipient configuration. Administrators manage Exchange using Exchange Admin Center and Exchange Management Shell. Users access Exchange using Outlook Web App and a URL provided by your organization or with Microsoft Office Outlook.

  • Online. An implementation where you rely on hardware and services provided by Microsoft. Here, you subscribe to Exchange Online, manage service-level settings using Office 365 Admin Center, and manage the organization and recipient configuration using Exchange Admin Center. Users access Exchange using Outlook Web App and a URL provided by Microsoft or with Microsoft Outlook.

  • Hybrid. An implementation where you have integrated on-premises and online components. Here, the on-premises and Exchange Online organizations have a shared domain namespace, and mail is securely routed between them. These organizations share a unified global address list, free/busy data, and calendar data. Administrators manage Exchange using a combination of the on-premises and online tools. Users can access Exchange using Outlook Web App and the same URL whether their mailbox is stored on premises or online. Users also can access Exchange using Microsoft Outlook.

When you use an online implementation, Microsoft manages the hardware configuration and ensures availability. Otherwise, you are responsible for any on-premises hardware. Before you deploy an on-premises or hybrid implementation of Exchange 2013, you should carefully plan the messaging architecture. Every Exchange implementation has three layers in its architecture:

  • Network layer. The network layer provides the foundation for computer-to-computer communications and essential name resolution features. The network layer has both physical and logical components. The physical components include the IP addresses, the IP subnets, local area network (LAN) or wide area network (WAN) links used by messaging systems as well as the routers that connect these links, and firewalls that protect the infrastructure. The logical components are the Domain Name System (DNS) zones that define the naming boundaries and contain the essential resource records required for name resolution.

  • Directory layer. The directory layer provides the foundation necessary for authentication, authorization, and replication. The directory layer is built on the Active Directory directory service and has both physical and logical components. The physical components include the domain controllers, Global Catalog servers, and site links used for authentication, authorization, and replication. The logical components include the Active Directory forests, sites, domains, and organizational units that are used to group objects for resource sharing, centralized management, and replication control. The logical components also include the users and groups that are part of the Active Directory infrastructure.

  • Messaging layer. The messaging layer provides the foundation for messaging and collaboration. The messaging layer has both physical and logical components. The physical components include individual Exchange servers that determine how messages are delivered and mail connectors that determine how messages are routed outside an Exchange server’s routing boundaries. The logical components specify the organizational boundaries for messaging, mailboxes used for storing messages, public folders used for storing data, and distribution lists used for distributing messages to multiple recipients.

Whether you are deploying Exchange Server for the first time in your organization or upgrading to Exchange Server 2013 from an earlier release of Exchange Server, you need to closely review each layer of this architecture and plan for required changes. As part of your implementation planning, you also need to look closely at the roles your Exchange servers will perform and modify the hardware accordingly to meet the requirements of these roles on a per-server basis. Exchange Server is a complex messaging platform with many components that work together to provide a comprehensive solution for routing, delivering, and accessing email messages, voice-mail messages, faxes, contacts, and calendar information.

Exchange Server messaging roles

With Exchange Server Setup, you can deploy servers with specific roles throughout the enterprise. Prior to setup and configuration, you need to decide how you will use Exchange Server 2013, what roles you will deploy, and where you will locate those roles. Afterward, you can plan for your deployment and then roll out Exchange Server 2013.

As part of your planning and testing, you’ll want to use the Exchange Server 2013 Deployment Assistant and the Exchange Remote Connectivity Analyzer. Both are web-based tools that provide step-by-step guidance. The Deployment Assistant, which can help you plan online, on-premises, and hybrid deployments, is available at http://go.microsoft.com/fwlink/p/?LinkId=277105, and the Connectivity Analyzer, which can help you diagnose connectivity issues, is available at https://testexchangeconnectivity.com.

Understanding Exchange Server messaging roles

On-premises implementations of Exchange Server have three layers in their architecture: a network layer, directory layer, and messaging layer. The messaging layer is where you define and deploy the Exchange Server roles. The Exchange servers at the core of the messaging layer can operate in the following roles:

  • Mailbox Server. A back-end server that hosts mailboxes, public folders, and related messaging data, such as address lists, resource scheduling, and meeting items.

  • Client Access Server. A middle-tier server that accepts connections to Exchange Server from a variety of clients. This server hosts the protocols used by all clients when checking messages. On the local network, Outlook MAPI clients are connected directly to the Client Access server to check mail using SMTP. Remote users can check their mail over the Internet by using Outlook Anywhere, Outlook Web App, Exchange ActiveSync, POP3, or IMAP4.

  • Legacy Edge Transport Server. An additional mail routing server that routes mail into and out of the Exchange organization. This server is designed to be deployed in an organization’s perimeter network and is used to establish a secure boundary between the organization and the Internet. This server accepts mail coming into the organization from the Internet and from trusted servers in external organizations, processes the mail to protect against some types of spam messages and viruses, and routes all accepted messages to a Mailbox server inside the organization.

At the time of this writing, Exchange 2013 supports the Mailbox Server and Client Access Server roles. If you want to use Edge Transports, you must deploy these transports on servers running either Exchange 2007 or Exchange 2010. Two other server roles available for Exchange 2010, Unified Messaging and Hub Transport, are now implemented as services running on Exchange 2013 Mailbox servers:

  • Unified Messaging service. A middle-tier service that integrates a private branch exchange (PBX) system with Exchange Server 2013, allowing voice messages and faxes to be stored with email in a user’s mailbox. Unified messaging supports call answering with automated greetings and message recording, fax receiving, and dial-in access. With dial-in access, users can use Outlook Voice Access to check voice mail, email, and calendar information; to review or dial contacts; and to configure preferences and personal options. To receive faxes, you need an integrated solution from a Microsoft partner.

  • Transport serviceA mail routing service that handles mail flow, routing, and delivery within the Exchange organization. This service processes all mail that is sent inside the organization before it is delivered to a mailbox in the organization or routed to users outside the organization. Processing ensures that senders and recipients are resolved and filtered as appropriate, content is filtered and has its format converted if necessary, and attachments are screened. To meet any regulatory or organizational compliance requirements, the Mailbox server can also record, or journal, messages and add disclaimers to them.

The Mailbox and Client Access roles are the building blocks of on-premises Exchange organizations. Table 2-1 provides an overview of the basic processor configurations I recommend for these roles. Processors can have multiple cores. Following the configurations shown in the table, I recommend that you build Client Access servers for scaling out and Mailbox servers for scaling up. If you deploy legacy Edge Transport servers, they should be built for scaling out as well.

Table 2-1. Recommended configurations for Exchange Server roles

SERVER ROLE

MINIMUM PROCESSORS

RECOMMENDED PROCESSORS

BUILD FOR

Legacy Edge Transport

1

4

Scale out

Client Access

1–2

2–4

Scale out

Mailbox

1–2

4–8

Scale up

Multiple server roles

2

4–8

Scale up

Because you can combine the Mailbox and Client Access roles on a single server, one of the most basic Exchange organizations you can create is one that includes a single Exchange server that provides the Mailbox Server and Client Access Server roles. These roles are the minimum required for routing and delivering messages to both local and remote messaging clients. For added security and protection, you can deploy the legacy Edge Transport server role in a perimeter network on one or more separate servers. As part of site planning, keep in mind every Active Directory site that has a Mailbox server must also have a Client Access server.

Although a basic implementation of Exchange Server might include only one server, you’ll likely find investing in multiple servers is more effective in terms of time, money, and resources. Why? High availability is integrated into the core architecture of Exchange Server 2013 and can be easily enabled.

With the Mailbox Server role, you can configure automatic failover by making the Mailbox servers members of the same database availability group. Each Mailbox server in the group can then have a copy of the mailbox databases from the other Mailbox servers in the group. Each mailbox database can have up to 16 copies, and this means you can have up to 16 Mailbox servers in a database availability group as well.

Client Access servers in Exchange 2013 are lightweight, stateless proxy servers. They provide the proxy and redirection logic for client protocols. For load balancing and failover redundancy, you previously needed to configure Client Access arrays and there typically was a specific affinity between the client and the Client Access server. Because of the client-server affinity, Microsoft recommended using application layer–based load balancing solutions, which ensured that requests from a connected client went through the same Client Access server endpoint.

With Exchange 2013, no configuration of Client Access arrays is needed. Client Access servers that are in the same Active Directory site are automatically added to an array for that site. Further, no specific affinity is required between the client and the Client Access server. This allows any available Client Access server to proxy a client’s request. If a server proxying a connection fails, the client connection is simply proxied by the next available Client Access server. This is possible because proxy and redirection logic for client protocols is built in.

Client Access servers running on Exchange 2013 also support layer 4 load balancing which distributes requests at the transport layer. In this case, the client connects to Exchange using a single virtual IP address, and a load balancer selects a server to receive the request. Because there is no affinity required, the load balancer doesn’t have to ensure that all requests from a client go to the same server. Not only does this simplify the load balancer’s job and greatly reduce the processing overhead, it allows administrators to add or remove servers at any time. It also means very basic load balancing techniques, such as round robin and least connection, can be used. Although load balancing round robin can be configured in DNS, you also can configure this and other load balancing options using Windows Network Load Balancing. However, because servers in database availability groups are already using clustering technology, they can’t also use Windows Network Load Balancing. Thus, when you deploy Mailbox servers in availability groups and want to use Windows Network Load Balancing to load balance client access, the Mailbox Server and Client Access Server roles must be running on separate servers.

For site resilience, you can deploy two Active Directory sites in separate geographic locations and then synchronize data between the two sites. With Exchange 2010, you had to perform a switchover from one site to the other if you lost all of your Client Access servers, the virtual IP for the array, or multiple servers in a database availability group. This is not required for Exchange 2013. If you lose a Client Access server array in one site, failover to the other site can happen at the client level automatically. Clients can be automatically redirected to a second site that has operating Client Access servers, and those servers act as proxies to the user’s Mailbox server in the original site.

Deploying Mailbox servers: The essentials

The underlying functionality of a Mailbox server is similar to that of a database server. Every mailbox-enabled recipient defined in the organization has a mailbox that is used to store messaging data. Groups of related mailboxes are organized using databases, and each database can have one or more database copies associated with it.

With Exchange Server 2007, you needed dedicated hardware for clustered Mailbox servers, those servers could not run other roles, and failover occurred at the server level. Microsoft re-engineered Exchange 2010 and Exchange 2013 to provide continuous availability while eliminating these restrictions. For Exchange 2013 specifically, this means:

  • You do not need dedicated clustering hardware for highly available Mailbox servers. Key components of Windows clustering are managed automatically by Exchange Server.

  • You do not need to use Local Continuous Replication (LCR), Cluster Continuous Replication (CCR), or Standby Continuous Replication (SCR). LCR has been discontinued. Key features of CCR and SCR have been combined, enhanced, and made available through database availability groups.

  • You can combine Exchange roles on highly available Mailbox servers, provided you don’t plan to use Windows Network Load Balancing. This means you could create a fully redundant Exchange organization using only two Exchange servers. In this case, each server would have the Mailbox and Client Access roles. You would also need a witness server for the database availability group, which doesn’t have to be an Exchange server.

The underlying technology built into database availability groups is the key ingredient that makes high availability possible. The related framework ensures failover clustering occurs in the background and doesn’t normally require administrator intervention. As a result, Exchange Server 2013 doesn’t need or use a cluster resource dynamic-link library (DLL) and uses only a small portion of the Windows clustering components, including heartbeat capabilities and the cluster database.

Database availability groups use continuous replication to achieve high availability. With continuous replication, Exchange Server 2013 uses its built-in asynchronous replication technology to create copies of mailbox databases and then keeps the copies up to date using transaction log shipping and replay. Lagged copies can automatically play down log files to automatically recovery from certain types of issues. For example, if Exchange detects that a low disk space threshold has been reached, Exchange automatically replays the logs into the lagged copy to play down the log files. If Exchange detects that page patching is required, Exchange automatically replays the logs into the lagged copy to perform page patching. If Exchange detects that there are fewer than three available healthy copies (whether active or passive) for more than 24 hours, Exchange automatically replays the logs into the lagged copy to play down the log files.

Any server in a group can host a copy of a mailbox database from any other server in the group. When a server is added to a group, it works with other servers in the group to provide automatic recovery from failures that affect mailbox databases, including server failure, database corruption, disk failure, and network connectivity failure. Although Exchange 2010 used a scheduled script to alert you that only a single copy of a database was available, this functionality is now integrated into Exchange along with other managed availability features for internal monitoring and recovery.

When you create a database availability group, Exchange adds an object to Active Directory representing the group. This object stores information about the group, including details about servers that are members of the group. When you add the first server to the group, a failover cluster is created automatically and the heartbeat is initiated. As you add member servers to the group, the heartbeat components and the cluster database are used to track and manage information about the group and its member servers, including server status, database mount status, replication status, and mount location.

Because Exchange Server 2013 databases are represented at the organization level, they are effectively disconnected from the servers on which they are stored, which makes it easier to move databases from one server to another. However, it also means you can work with databases in many different ways and that there are also several requirements when working with databases. Keep the following in mind when working with databases in Exchange Server 2013:

  • Database names must be unique throughout your Exchange organization. This means you cannot name two databases identically even if they are on two different Mailbox servers.

  • Every mailbox database, except copies, have a different globally unique identifier (GUID). Copies of a database have the same GUID.

  • Mailbox servers that are part of the same database availability group do not require cluster-managed shared storage. However, the full paths for all database copies must be identical on host Mailbox servers.

  • Exchange 2013 no longer has public folder databases. Instead, special mailboxes are now used to store the public folder hierarchy and content. Like traditional mailboxes, special mailboxes for public folders are stored in mailbox databases and are replicated as part of any database availability group you configure.

For a successful deployment of a Mailbox server, the storage subsystem must meet the storage capacity requirements and must be able to perform the expected number of input/output (I/O) operations per second. Storage capacity requirements are determined by the number of mailboxes hosted on a server and the total storage size allowed per mailbox. For example, if a server hosts 2,500 mailboxes that you allow to store up to 2 gigabytes (GB) each, you need to ensure there are at least 5 terabytes of storage capacity above and beyond the storage needs of the operating system and Exchange itself.

I/O performance of the storage subsystem is measured in relation to the latency (delay) for each read/write operation to be performed. The more mailboxes you store on a specific drive or drive array, the more read/write operations there are performed and the greater the potential delay. To improve performance, you can use multiple mailbox databases on separate disks. You might also want to store databases with their transaction log files on separate disk drives, such that database A and related logs are on disk 1, database B and related logs are on disk 2, and so on. In some scenarios, you might want the databases and logs to be on separate disks.

I/O performance in Exchange Server 2013 running on 64-bit architecture is improved substantially over 32-bit architecture. On Mailbox servers, a 64-bit architecture enables a database cache size of up to approximately 90 percent of total random access memory (RAM). A larger cache increases the probability that data requested by a client will be serviced out of memory instead of by the storage subsystem.

Unlike Exchange 2010 which required separate volumes for each database copy whether passive or active, Exchange 2013 allows a server to host multiple databases on the same volume. This allows you to have a mix of active and passive copies on the same volume. As part of your planning, look closely at the input/output per second (IOPS) capabilities of your storage architecture and place database copies appropriately. Because active copies will use more IOPS than passive copies, you’ll typically want no more than one active database copy on a volume while allowing multiple passive copies. For example, if you’re configuring a four-server database availability group, you might want to configure storage so that each server has a large volume with its active database copy and passive copies of the databases on the other servers.

Like Exchange 2010, Exchange 2013 is optimized so that servers can use large disks with 2 to 8 terabytes of storage efficiently. However, as part of your planning, you need to understand how Exchange 2013 uses automatic reseed to recover from disk failure, database corruption events, and other issues that require a reseed of a database copy. With automatic reseed, Exchange can automatically restore database redundancy using spare disks that have been pre-provisioned.

The larger the database, the longer it takes Exchange to reseed it. If a database is too large, it can’t be reseeded in a reasonable amount of time. With a typical reseed rate of 20 MB per second, it would take Exchange:

  • About 28 hours to reseed a 2-terabyte database.

  • About 42 hours to reseed a 3-terabyte database.

  • About 56 hours to reseed a 4-terabyte database.

Because of this, the total reseed time may be the most important limiting factor for sizing databases.

Deploying Client Access servers: The essentials

With Exchange 2010, the underlying functionality of a Client Access server was similar to that of an application server that made extensive use of Web services. These servers needed to be built to handle increased I/O operations, which meant processors, memory, network, and disk I/O were all potential sources of bottlenecks. Because they also performed content conversion, you could improve performance by optimizing disk storage.

As part of the major architecture changes for Exchange 2013, Client Access servers no longer handle all of the client-related messaging tasks in an Exchange implementation, nor do they perform content conversion. Instead, all processing and content conversion is performed on Mailbox servers, and Client Access servers are used only for authentication, proxy services, and limited redirection.

Client Access servers provide access through the Outlook MAPI, Internet Message Access Protocol version 4 revision 1 (IMAP4), Post Office Protocol version 3 (POP3), and Hypertext Transfer Protocol (HTTP) Internet protocols. By default, when you install a Client Access server, these services are available to both internal and external clients. You can modify the default configuration at any time and specify whether the Client Access server will be accessible to clients outside the organization. You also can configure the external URLs for each Client Access Server-related service.

Exchange Server 2013 allows access using Microsoft Outlook with Simple Mail Transfer Protocol (SMTP), Outlook Anywhere (RPC over HTTP), Outlook Web App, and Exchange ActiveSync. Internet Message Access Protocol 4 (IMAP4) and Post Office Protocol 3 (POP3) are available as alternatives to standard protocols. IMAP4 is a protocol for reading mail and accessing public and private folders on remote servers. POP3 is a protocol for retrieving mail from remote servers. Client Access servers provide access to free/busy data by using the Availability service, and they enable clients to download automatic configuration settings from the Autodiscover service.

Exchange 2013 uses the Active Directory infrastructure to determine its site membership and the site membership of other servers. The Microsoft Exchange Active Directory Topology service running on an Exchange server is responsible for updating the site attribute of an Exchange server in the directory.

Once a server determines its site membership, the server identifies which domain controllers and global catalogs to use for processing Active Directory queries. Because this information is available in the directory, Exchange servers don’t need to use DNS to resolve a server address to a subnet associated with an Active Directory site.

Exchange 2013 Mailbox servers interact directly with Outlook clients, Client Access servers, and Active Directory. Mailbox servers use Lightweight Directory Access Protocol (LDAP) to obtain recipient, server, and organization configuration information from Active Directory. Client Access servers accept connections to Mailbox servers over the local network and over the Internet. Client Access servers send requests from clients to the appropriate Mailbox server and return data from Mailbox servers to clients, including online address book files, free/busy data, calendar schedules, and client profile settings.

Some clients use POP3 or IMAP4 connections to communicate with the Exchange server. Other clients use SMTP, POP3, or IMAP4 to communicate with the Exchange server. Client Access servers proxy POP3, IMAP4, and SMTP communications between clients and Mailbox servers using POP3, IMAP4, and SMTP redirection respectively.

Outlook Web App, Exchange Active Sync, Exchange Admin Center, and PowerShell communications are handled in much the same way as communications for standard Outlook clients.

Outlook clients on the corporate network access the Client Access server to send and retrieve messages using either SMTP or Outlook Anywhere (RPC over HTTP), as do clients outside the corporate network. Regardless of whether they are on or outside the corporate network, Outlook clients access public folder data using Outlook Anywhere. To retrieve a user’s Active Directory information, Client Access servers use LDAP or Name Service Provider Interface (NSPI). By default, communications between Client Access servers and Mailbox servers is encrypted, as are communications with domain controllers and global catalogs.

Note

In Exchange 2013, RPC connections are made directly to the MAPI RPC connection point on the Client Access server and the NSPI endpoint on the Client Access server. HTTP connections are still made to the RPC Proxy component on the Client Access server. The Client Access server then communicates with the appropriate Mailbox server. For directory information, Outlook communicates with an NSPI endpoint located on the Client Access server. NSPI communicates with the Active Directory driver, which then communicates with Active Directory.

Each Active Directory site with Mailbox servers should have at least one Client Access server. When there are multiple Client Access servers in a site, these servers are automatically configured in an array. Client Access arrays provide load balancing and failover support for all client access features. Each array has an external domain name, and client requests are directed to this external domain name, allowing for transparent load balancing as well as failover and failback. When a load-balanced resource fails on one server, the remaining servers in the array take over the workload of the failed server. When the failed server comes back online, the server can automatically rejoin the array, and the load-balancing feature starts to distribute the load to the server automatically. Failover takes only a few seconds in most cases.

The external URLs for CAS-related services should point to the array rather than to individual servers, and the internal URLs should point to individual servers. Because of this, you should set the external URLs for Exchange ActiveSync, Outlook Web applications, Exchange Admin Center, and the Offline Address Book relative to the external domain name for the array. For example, Exchange ActiveSync runs as a web application named Microsoft-Server-ActiveSync. When setting up Exchange ActiveSync URLs on each individual Mailbox server, you should configure the internal URL to point to a specific CAS server, such as https://casserver48.pocket-consultant.com/Microsoft-Server-ActiveSync, and the external URL to point to a location relative to the array, such as https://array1.pocket-consultant.com/Microsoft-Server-ActiveSync.

In Exchange 2010, Exchange Management Shell had several cmdlets you used to register and manage arrays in Active Directory. Because arrays are now created automatically, Exchange 2013 has only the Get-ClientAccessArray cmdlet for working with arrays. This cmdlet lists information about available or specified Client Access arrays. Its basic syntax is as follows:

Get-ClientAccessArray [-Identity ArrayIdentity]
[-DomainController FullyQualifiedName] [-Site SiteId]

Load balancing can be implemented using hardware or software. Windows Server includes the Windows Network Load Balancing service. Network Load Balancing doesn’t use shared resources or clustered storage devices. Instead, each server has a copy of the Client Access services and features that are being load balanced, and local storage typically is used. Generally, users usually don’t know that they’re accessing a group of servers rather than a single server. The reason for this is that the array appears to be a single server. Clients connect to the array using the array’s external domain name, and this virtual address is mapped automatically to a specific server based on availability. It is important to note that you cannot use Windows Network Load Balancing for establishing a Client Access array if the Client Access servers are co-located on a Mailbox server in a database availability group.

Deploying Transport services: The essentials

The Transport service on Mailbox servers and the Edge Transport role perform similar tasks. You use both for messaging routing, and both have a similar set of filters to protect an organization from spam and viruses. The key difference is in where you place servers with these roles. You place a Mailbox server in the internal network and configure it as a member of the organizational domain. If you use a server with the legacy Edge Transport role, you place it in the organization’s perimeter network, and you do not configure it as a member of the organizational domain.

For computers with the Mailbox server or legacy Edge Transport role, the server cannot have the SMTP or Network News Transfer Protocol (NNTP) service installed separately. Although you install legacy Edge Transport servers outside the Active Directory forest, you must have a DNS suffix configured, and you must be able to perform name resolution from the legacy Edge Transport server to any Mailbox servers.

Tip

Transports store all incoming mail in a database file called mail.que until the transport verifies that all of the next hops for that message have been completed. This database has an associated transaction log in which changes are first committed. If you are using an Exchange server’s internal drive(s) for storage in a high-volume environment in which one million or more messages are persisted, you should consider placing the database and the transaction log on separate disks for optimal performance and fault tolerance. With Storage Area Networks (SANs), it might not be immediately apparent whether disks are physically separate. This is because the volumes you see are logical references to a portion of the storage subsystem. In this case, you might be able to use the Storage Manager For SANs console or a similar tool to help you select logical unit numbers (LUNs) that are on physically separate disks.

More Info

Transports have many different queues for messages. These queues are all stored in a single Extensible Storage Engine (ESE) database called mail.que. By default, this database is located in %ExchangeInstallPath%TransportRolesdataQueue. Thanks to shadow redundancy, the deletion of a message in the database is delayed until the transport verifies that all of the next hops for that message have completed delivery. If any of the next hops fail before reporting back successful delivery, the message is resubmitted for delivery to that next hop.

Both Mailbox servers and legacy Edge Transport servers can perform protocol logging and message tracking. Only Mailbox servers perform content conversion to format messages for recipients. Protocol logging allows you to verify whether a protocol is performing as expected and whether any issues need attention. Because this feature is designed for troubleshooting, it is disabled by default. Message tracking creates logs that track messages sent and received. Incoming mail from the Internet is converted to Summary Transport Neutral Encoding Format (STNEF) prior to being delivered. STNEF messages are always MIME-encoded and always have a Content-Transfer-Encoding value of Binary. Because content conversion is performed in the temp folder, you can improve performance by ensuring that the temp folder is not on the same physical disk as the paging file and operating system.

The transport pipeline used by Exchange 2013 is different from the transport pipeline for Exchange 2010 and has the following key components:

  • Front End Transport service

  • Transport service

  • Mailbox Transport Submission service

  • Mailbox Transport Delivery service

The Front End Transport service running on Client Access servers proxies all inbound and outbound SMTP traffic for Exchange 2013. Although the Transport service running on Mailbox servers performs nearly the same tasks as the Hub Transport role, it’s important to point out the differences. As with Exchange 2010, the Transport service handles all SMTP mail flow. The service also performs message categorization and message content inspection. Unlike Exchange 2010, however, the Transport service doesn’t communicate directly with mailbox databases. Instead, the Mailbox Transport Submission and Mailbox Transport Delivery services are used to provide separate mail submission and delivery processes.

The basic submission process works like this:

  1. The Mailbox Transport Submission service receives SMTP messages from the Transport service on the local Mailbox server or on other Mailbox servers.

  2. The Mailbox Transport Submission service connects to the local mailbox database.

  3. The Mailbox Transport Submission service uses RPC to deliver the message.

The basic delivery process works like this:

  1. The Mailbox Transport Delivery service connects to the local mailbox database using RPC to retrieve messages.

  2. The Mailbox Transport Delivery service submits messages over SMTP to the Transport service on the local Mailbox server or on other Mailbox servers.

  3. The Transport service routes messages using SMTP.

Messages from inside the organization enter the transport pipeline through a Receive connector, from the Mailbox Transport Delivery service, from the Pickup or Replay directories, or from agent submission. Messages from outside the organization enter the transport pipeline through a Receive connector in the Front End Transport service on a Client Access server and are then routed to the Transport service on a Mailbox server.

Deploying unified messaging: The essentials

Unified messaging allows you to integrate voice mail, fax, and email functionality so that the related data can be stored in a user’s Exchange mailbox. To implement unified messaging, your organization must have a PBX that is connected to the LAN, and you must deploy Mailbox servers running Exchange Server 2013. After it is deployed, the Unified Messaging service running on a Mailbox server has the job of providing call answering, fax receiving, subscriber access, and auto-attendant features that allow access to content over the telephone and storage of content received from the PBX. However, it is the job of the Unified Messaging Call Router service running on Client Access servers to provide call routing and proxy services that allow calls to be connected.

Although some current PBXs, referred to as IP-PBXs, are Internet Protocol–capable, all other PBXs require a separate Internet Protocol/Voice over Internet Protocol (IP/VoIP) gateway to connect to the LAN. After you connect a PBX to the LAN, you can link it to Exchange by deploying and appropriately configuring the Unified Messaging service. The Desktop Experience feature, which is required to install Exchange server, provides the Microsoft Speech service, Microsoft Windows Media Encoder, and Microsoft Windows Media Audio Voice Code components used by the Unified Messaging service.

The Unified Messaging service doesn’t perform a great deal of I/O operations, and the primary potential bottlenecks for this service are the processors, memory, and network. Disk I/O operations for this service are primarily limited to accessing routing details and dial plans, which include auto-attendant and mail policy settings.

If you are planning to use Unified Messaging in a hybrid Exchange implementation, you’ll also need to configure session board controllers (SBCs). SBCs have two IP interfaces: one for your network and another that connects over the Internet. Your VoIP, IP-PBX, and SBC components must be configured to communicate with your Mailbox and Client Access servers. You also must create and configure a Unified Messaging IP gateway to represent each deployed device.

Integrating Exchange server roles with Active Directory

Exchange Server 2013 makes extensive use of Active Directory. Each Exchange server must access Active Directory to retrieve information about recipients and other Exchange server roles. Various Exchange server roles and services use Active Directory in other ways as well, as discussed in the sections that follow.

Note

Exchange 2013 works only with read-writeable domain controllers.

Using Mailbox servers with Active Directory

Mailbox servers are service locations for email messages, voice-mail messages, and faxes. For outgoing mail, Mailbox servers can access Active Directory to retrieve information about the location of Mailbox servers in their site. Then they can use this information to forward messages for routing.

The Transport service running on Mailbox servers contacts Active Directory for message categorization. The Categorizer queries Active Directory to perform recipient lookup, retrieves the information needed to locate a recipient’s mailbox (according to the mailbox store in which it is created), and determines any restrictions or permissions that might apply to the recipient. The Categorizer also queries Active Directory to expand the membership of distribution lists and to perform the LDAP query processing when mail is sent to a dynamic distribution list.

After the Categorizer determines the location of a mailbox, the Transport service uses Active Directory site configuration information to determine the routing topology and locate the site of the mailbox. If the mailbox is in the same Active Directory site as the Mailbox server, the Transport service delivers the message directly to the user’s mailbox. If the mailbox is in a different Active Directory site than the Mailbox server, the Transport service delivers the message to a Mailbox server in the remote Active Directory site.

Mailbox servers store all configuration information in Active Directory. This configuration information includes the details of any transport or journaling rules and connectors. When this information is needed, a Mailbox server accesses it in Active Directory.

Mailbox servers also store configuration information about mailbox users, mailbox stores, agents, address lists, and policies in Active Directory. Mailbox servers retrieve this information to enforce recipient policies, mailbox policies, system policies, and global settings.

Using Client Access servers with Active Directory

Client Access servers receive connections from local and remote clients. At a high level, when a user connection is received, the Client Access server contacts Active Directory to authenticate the user and to determine the location of the user’s mailbox. If the user’s mailbox is in the same Active Directory site as the Client Access server, the user is connected to the mailbox. If the user’s mailbox is in an Active Directory site other than the one the Client Access server is located in, the connection is redirected to a Client Access server in the same Active Directory site as the user’s mailbox.

When you use load balancing on your Client Access servers, Exchange 2013 creates arrays in Active Directory and associates each array with a specific Active Directory site. Each CAS array can be associated with only one Active Directory site. As with stand-alone CAS servers, the site information determines how connections are directed. If the user’s mailbox is in the same Active Directory site as the array, the user is connected to a CAS server and via the CAS server to the mailbox. If the user’s mailbox is in an Active Directory site other than the one in which the Client Access array is located, the connection is redirected.

You must have one Client Access server in each Active Directory site that contains a Mailbox server. At least one of your Client Access servers must be designated as Internet-facing. The Internet-facing CAS server proxies requests from Outlook Web App, Exchange ActiveSync, and Exchange Web Services to the Client Access server closest to the user’s mailbox.

With Exchange 2010, proxying was not used for POP3 or IMAP4, and you needed to manually configure cross-site connectivity so clients connecting on one site could access their mailboxes at another site. Exchange 2013 automatically proxies from a Client Access server in one site to the correct server in another site.

Using Unified Messaging with Active Directory

The Unified Messaging service accesses Active Directory to retrieve global configuration information, such as dial plans and IP gateway details. When a message is received by the Unified Messaging service, the service searches for Active Directory recipients to match the telephone number to a recipient address. When the service has resolved this information, it can determine the location of the recipient’s mailbox and then submit the message to the appropriate Mailbox server for submission to the mailbox.

Using Edge Transport servers with Active Directory

You deploy legacy Edge Transport servers in perimeter networks to isolate them from the internal network. As such, they are not members of the internal domain and do not have direct access to the organization’s internal Active Directory servers for the purposes of recipient lookup or categorization. Thus, unlike the Transport service on Mailbox servers, legacy Edge Transport servers cannot contact an Active Directory server to help route messages.

To route messages into the organization, an administrator can configure a subscription from the legacy Edge Transport server to the Active Directory site that allows it to store recipient and configuration information about the Exchange organization in its AD LDS data store. After a legacy Edge Transport server is subscribed to an Active Directory site, it is associated with the Mailbox servers in that site for the purpose of message routing. Thereafter, Mailbox servers in the organization route messages being delivered to the Internet to the site associated with the legacy Edge Transport server, and Mailbox servers in this site relay the messages to the legacy Edge Transport server. The legacy Edge Transport server, in turn, routes the messages to the Internet.

The EdgeSync service running on Mailbox servers is a one-way synchronization process that pushes information from Active Directory to the legacy Edge Transport server. Periodically, the EdgeSync service synchronizes the data to keep the Edge Transport server’s data store up to date. The EdgeSync service also establishes the connectors needed to send and receive information that is being moved between the organization and the Edge Transport server and between the Edge Transport server and the Internet. The key data pushed to the Edge Transport server includes:

  • Accepted and remote domains

  • Valid recipients

  • Safe senders

  • Send connectors

  • Available Mailbox servers

  • Available SMTP servers

  • Message classifications

  • TLS Send and Receive Domain Secure lists

After the initial replication is performed, the EdgeSync service synchronizes the data periodically. Configuration information is synced once every hour, and it can take up to one hour for configuration changes to be replicated. Recipient information is synced once every four hours, and it can take up to four hours for changes to be replicated. If necessary, administrators can initiate an immediate synchronization using the Start-EdgeSynchronization cmdlet in Exchange Management Shell.

Note

During synchronization, objects can be added to, deleted from, or modified in the Edge Transport server’s AD LDS data store. To protect the integrity and security of the organization, no information is ever pushed from the Edge Transport server’s AD LDS data store to Active Directory.

Integrating Exchange Server 2013 into existing Exchange organizations

Existing Exchange Server 2007 and Exchange Server 2010 installations can coexist with Exchange Server 2013 installations. Generally, you do this by integrating Exchange Server 2013 into your existing Exchange Server 2007 or Exchange Server 2010 organization. Integration requires the following:

  • Preparing Active Directory and the domain for the extensive Active Directory changes that will occur when you install Exchange Server 2013.

  • Configuring Exchange Server 2013 so that it can communicate with servers running Exchange Server 2007 and Exchange Server 2010.

If you need a legacy server, you need to keep or add it to the Exchange organization before adding the new Exchange 2013 servers. Then, you have a coexistence implementation. You cannot upgrade existing Exchange Server 2007 or Exchange Server 2010 servers to Exchange Server 2013. You must install Exchange Server 2013 on new hardware, and then move the mailboxes from your existing installations to the new installation. See the Moving to Exchange Server 2013 section later in this chapter for more details.

As an alternative to coexistence, you can deploy a new Exchange 2013 organization. After you deploy a new Exchange 2013 organization, you can’t add servers that are running earlier versions of Exchange to the organization. Adding earlier versions of Exchange to an Exchange 2013 organization is not supported.

Coexistence and Active Directory

For coexistence with legacy Exchange Server versions, Exchange Server 2013 Cumulative Update 1 (CU1) is the minimum version. Exchange Server 2013 (Release to Manufacturer) RTM doesn’t support legacy Exchange organizations. Keep the following in mind:

  • Exchange 2003 and earlier versions are not supported for coexistence.

  • Exchange 2007 is supported for coexistence only when all Exchange 2007 servers are running Rollup 10 for Exchange 2007 SP3 or later.

  • Exchange 2010 is supported for coexistence only when all Exchange 2010 servers are running SP3 or later.

Before you install any build of Exchange Server 2013 in a legacy Exchange Server organization, ensure that Exchange Server 2010 is fully deployed. The reason for this is that you can install additional Exchange Server 2010 servers running a particular server role only if you’ve deployed a server with one of these roles prior to installing Exchange Server 2013. Therefore, if you haven’t previously deployed all four Exchange Server 2010 server roles in your legacy Exchange Server organization, you may want to do so prior to installing any build of Exchange Server 2013.

Exchange Server 2013 contains extensive Active Directory schema changes and other Active Directory updates, so you might want to prepare Active Directory and the domain for these changes prior to installing Exchange Server 2013 for the first time, especially in a large enterprise.

To do this, follow these steps:

  1. Prepare the schema by running the following command prior to executing the Exchange Server 2013 Setup:

    setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

    This command connects to the schema master and imports the LDAP data interchange format files that are used to update the schema with Exchange 2013 specific attributes. Optionally, use the /DomainController parameter to specify the name of the schema master. You must run this command on a 64-bit computer in the same domain and site as the schema master. If schema needs to be updated and you haven’t previously prepared schema, you must ensure the account you use is delegated membership in the Schema Admins group. Wait for the changes to replicate before continuing.

  2. Prepare Active Directory for Exchange 2013 by running the following command prior to executing the Exchange Server 2013 Setup:

    setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms

    You must run this command in the same domain and site as the schema master. This computer must be able to connect to all domains in the forest on TCP port 389. To run this command, you must be a member of the Domain Admins groups for the local domain or the Enterprise Admins group. Wait for the changes to replicate before continuing.

    The PrepareAD option performs a number of tasks:

    • Creates the Microsoft Exchange container and the Exchange organization container in the directory if they don’t exist, such as when you are installing a new Exchange organization. Here, you must set a name for the organization using the /OrganizationName parameter.

    • Verifies that the schema has been updated for Exchange 2013. It does this by checking the objectVersion property for the Exchange configuration container and ensuring the value is 15449 or higher. The command also sets the Exchange product ID of the Exchange organization to that of the version you are installing. The base value for Exchange 2013 RTM is 15.00.0516.032. This value is incremented when you deploy Cumulative Updates to Exchange.

    • Creates any containers that are required in Active Directory for Exchange 2013, creates the default Accepted Domains entry if a default was not previously set, and imports the Rights.ldf file to add the extended rights required for Exchange to the directory.

    • Creates the Microsoft Exchange Security Groups organizational unit in the root domain of the forest and then creates the following management role groups used by Exchange to this organizational unit if these haven’t been previously created: Compliance Management, Delegated Setup, Discovery Management, Help Desk, Hygiene Management, Organization Management, Public Folder Management, Recipient Management, Records Management, Server Management, UM Management, and View-Only Organization Management. As necessary, also adds these groups to the otherWellKnownObjects attribute on the Exchange Services Configuration container.

    • Creates the Unified Messaging Voice Originator contact in the Microsoft Exchange System Objects container of the root domain and then prepares the local domain for Exchange 2013.

  3. The domain in which you ran setup.exe /PrepareAD is already prepared. For all other domains that will have mail-enabled users or in which you will install Exchange 2013, you must log in and run:

    setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms.

    You also can specify the name of the domain in which you want to run the command, such as:

    setup.exe/PrepareDomain:Tech.Pocket-Consultant.com
    /IAcceptExchangeServerLicenseTerms

    Alternatively, you can run:

    setup.exe /PrepareAllDomains /IAcceptExchangeServerLicenseTerms

    to prepare all domains in the forest. To run this command, you normally must be a member of the Domain Admins groups for the local domain or the Enterprise Admins group. However, if the domain was created after running /PrepareAD, the account you use must be a member of the Exchange 2013 Organization Management role group and the Domain Admins groups in the domain.

    For new organizations, this command creates the Microsoft Exchange System Objects container and sets its permissions. For all organizations, this command:

    • Sets the objectVersion property in the Microsoft Exchange System Objects container so that it references the version of domain preparation for Exchange 2013, which is 13236 or higher.

    • Creates a domain global group in the current domain called Exchange Install Domain Servers and adds this group in the Microsoft Exchange System Objects container as well as the Exchange Servers group in the root domain.

    • Assigns permissions in the domain for the Exchange Servers group and the Organization Management group.

Although Exchange Server 2013 Setup can perform these processes for you during the upgrade, the changes can take some time to replicate throughout a large organization. By performing these tasks manually, you can streamline the upgrade process. You also can ensure the tasks are run with accounts that have appropriate permissions.

As a prerequisite for installing Exchange Server 2013, Active Directory must be at Windows Server 2003 forest functionality mode or higher. Additionally, the schema master for the Active Directory forest along with at least one global catalog server and at least one domain controller in each Active Directory site must be running one of the following operating systems:

  • Windows Server 2012 RTM or R2 Standard or Datacenter

  • Windows Server 2008 R2 Standard or Enterprise

  • Windows Server 2008 R2 Datacenter RTM or later

  • Windows Server 2008 Standard or Enterprise (32-bit or 64-bit)

  • Windows Server 2008 Datacenter RTM or later

  • Windows Server 2003 Standard Edition with Service Pack 2 (SP2) or later (32-bit or 64-bit)

  • Windows Server 2003 Enterprise Edition with SP2 or later (32-bit or 64-bit)

When you deploy IPv6, Exchange 2013 servers can send data to and receive data from devices, servers, and clients that use IPv6 addresses. However, Exchange 2013 supports IPv6 only when IPv4 is also installed. Further, although you can disable IPv4 so that only IPv6 is enabled, Exchange still requires that IPv4 be installed.

Configuring Exchange Server 2013 for use with existing Exchange organizations

When managing Exchange servers, you should use the administrative tools for that Exchange Server version. Exchange Admin Center and Exchange Management Shell are the primary management tools for Exchange Server 2013. Mailboxes located on Exchange Server 2007 and Exchange Server 2010 servers are also displayed in Exchange Admin Center.

You can manage the Exchange 2007 or 2010 mailbox properties using Exchange Admin Center or Exchange Management Shell. You can use either tool to move mailbox recipients from Exchange 2007 or Exchange 2010 to Exchange 2013.

When deploying Exchange 2013 in an Exchange 2007 or Exchange 2010 organization, keep the following in mind:

  • If you want to use the Exchange Server 2013 Client Access server role, you must deploy the Client Access server role in each Active Directory site that contains the Mailbox Server role. Clients will see the Outlook Web App or Exchange ActiveSync version that is on their mailbox store. With Client Access arrays, the Client Access servers must all be members of the same Active Directory site.

  • Exchange 2007 mailboxes can be enabled with unified messaging, but they will need an Exchange 2007 Unified Messaging server. Similarly, Exchange 2010 mailboxes can be enabled with unified messaging, but they will need an Exchange 2010 Unified Messaging server.

  • If you want to use the legacy Edge Transport server role, you must deploy this server before installing Exchange 2013. You will then need to configure SMTP connectors to accept mail from and send mail to the Internet. Other modifications are required to mail Exchange and smart host records. Further, you can synchronize the Edge Transport server’s AD LDS data with Active Directory only if the Exchange Server 2013 Active Directory preparation process has been performed.

  • For management, you must deploy at least one Mailbox server and one Client Access server running Exchange 2013.

Setting the default Offline Address Book

A new Offline Address Book (OAB) will be created when you deploy the first Exchange 2013 Mailbox server in an existing Exchange organization. All existing clients that use OAB will see this new OAB by default the next time they perform an OAB update, and they also will perform a full OAB download. If you don’t want this to happen, you must configure existing mailbox databases to explicitly point to the current default OAB before you deploy the first Exchange 2013 server.

You can do this by following these steps:

  1. In Exchange Management Console, navigate to Organization Configuration, Mailbox, Database Management, and then open the Mailbox Database Properties dialog box for the mailbox database you want to work with.

  2. On the Client Settings tab of the Mailbox Database Properties dialog box, you’ll see an entry for the Offline Address Book and a related Browse button. Use this option to explicitly set the default OAB.

  3. Repeat this process for each mailbox database that you want to update.

You also can use Exchange Management Shell to view all mailbox databases without a default OAB explicitly set on them and then explicitly set a default OAB. Start by entering the following command:

Get-MailboxDatabase | Where {$_.OfflineAddressBook -eq $Null} |
FT Name,OfflineAddressBook -AutoSize

If no values are returned, a default OAB is already explicitly set throughout the organization. If values are returned, you need to configure some databases with an explicitly defined default OAB. The following commands locate all mailbox databases in an Exchange 2007 or Exchange 2010 environment with no default OAB defined at the database level and then set these mailbox databases to the current default OAB in the organization:

Get-MailboxDatabase | Where {$_.OfflineAddressBook -eq $Null} |
Set-MailboxDatabase -OfflineAddressBook (Get-OfflineAddressBook |
Where {$_.IsDefault -eq $True})

If you have both Exchange 2007 and Exchange 2010 deployed on premises, you must run the command twice (using the respective Exchange Management Shell for each version).

Finally, you can confirm that all mailbox databases now have an explicitly defined default OAB, by re-running the first command. The command should return no values.

Moving to Exchange Server 2013

Most organizations have existing Exchange installations. When moving Exchange 2007 or Exchange 2010 installations to Exchange Server 2013, you cannot perform an in-place upgrade. Instead, you must install new Exchange Server 2013 servers into the existing organization and then migrate to Exchange Server 2013.

Migration from Exchange 2007 or Exchange 2010 to Exchange 2013 involves installing Exchange Server 2013 on new servers and then moving the mailboxes and public folders from your existing installations to the new installation. In a migration, only mailbox and public folder data is moved, and any Exchange configuration data is not maintained.

The steps you perform to migrate from Exchange 2007 or Exchange 2010 to Exchange 2013 are as follows:

  1. Plan to migrate all Exchange servers in a particular site to Exchange 2013 at the same time. You should start with Internet-accessible Active Directory sites and then migrate internal Active Directory sites. For each Exchange 2013 Client Access server, you can configure only one Outlook Web App URL for redirection.

  2. If you plan to have a legacy Edge Transport server in your Exchange 2013 organization, install it prior to installing Exchange 2013 on any server in your organization.

  3. Install Exchange Server 2013 on new hardware and make it a member of the appropriate domain in the forest. You should install the Mailbox Server role first and then the Client Access Server role. You can install these roles on a single server or on multiple servers. You must deploy a Client Access server in each Active Directory site that has a Mailbox server.

  4. Move Internet mail flow from Exchange 2007 or Exchange 2010 to Exchange 2013.

  5. Move mailboxes and public folders from the existing Exchange 2007 or Exchange 2010 installations to the new Exchange Server 2013 Mailbox server or servers. If you move a mailbox that is part of an email address policy, the email address for the mailbox is automatically updated based on the settings in the email address policy. In this case, the new email address becomes the primary address, and the old email address becomes the secondary address.

    During a migration, the version of a CAS feature that a user sees, such as Outlook Web App, depends on where the user’s mailbox is located. If the mailbox is on an Exchange 2007 server, the user sees Exchange 2007 versions of CAS features. When you move the mailbox to Exchange 2013, the user will see Exchange 2013 versions of CAS features.

    Real World

    You move mailboxes from Exchange 2007 or Exchange 2010 to Exchange 2013 by using an online move. Perform the move from the Exchange 2013 server by using move mailbox requests, either with Exchange Management Shell or Exchange Admin Center. You can’t use the Exchange Management tools for Exchange 2007 or Exchange 2010 to move the mailboxes.

  6. Once you’ve complete the move and have validated the configuration, you can remove unneeded Exchange 2007 or Exchange 2010 servers from the organization.

Caution

Before removing the last Exchange 2007 or Exchange 2010 server with a particular role, you must be sure that you will never need to introduce an Exchange 2007 server with the role again. Once you remove the last Exchange 2007 or Exchange 2010 server with a particular role, you can never add another one with that role.

Running and modifying Exchange Server 2013 Setup

Exchange 2013 Setup is the program you use to perform installation tasks for Exchange 2013. You use Exchange 2013 Setup to install Exchange Server roles and the Exchange management tools. You can install Exchange 2013 from media or from a download. The same media or download is used for both Exchange Server 2013 Enterprise and Exchange Server 2013 Standard.

Downloads are packaged, self-extracting, executable files. When you access the download page, tap or click Download to start the download process. Next, copy the download to your computer for installation at a later time by tapping or clicking Save. After you copy the download to the computer on which you plan to install Exchange, you can double-tap or double-click the executable file to extract the Exchange 2013 Setup components to a folder. When prompted, be sure to specify an exact folder to put all the setup components in one place. Within this folder, you’ll find a program called Setup.exe. This is the Exchange Server 2013 Setup program.

You use Setup to install Exchange Server 2013 and to add roles to a server. If you want to uninstall a server, you use Programs And Features in Control Panel. Because Exchange 2013 requires that you uninstall all installed roles at the same time, you cannot uninstall only the Mailbox role or only the Client Access role from a server.

Installing new Exchange servers

For servers deployed within the organization, you can install the Mailbox and Client Access roles on a single computer. As the size and needs of the organization increase, however, it becomes more and more beneficial to host these roles on separate servers. Keep the following in mind:

  • You can achieve increased security by isolating the Internet-facing Client Access role and deploying it on a server other than one that also hosts the Mailbox role.

  • You can achieve high availability for the Mailbox role simply by installing two or more Mailbox servers, creating a database availability group, adding mailbox databases to this group, and then adding database copies.

  • You can achieve high availability for message transport simply by installing multiple Mailbox servers. Thanks to the shadow redundancy feature, a message that is submitted to a Mailbox server is stored in the transport database until the transport server verifies that all of the next hops for that message have completed delivery. If the next hop doesn’t report successful delivery, the message is resubmitted for delivery. In addition, when messages are in the transport dumpster, they aren’t removed until they are replicated to all the appropriate mailbox databases.

  • You can achieve high availability for the Client Access role by installing the role on multiple servers and, optionally, configuring network or hardware load balancing. Using load balancing requires planning.

When you use multiple Exchange servers, you should deploy the roles in this order:

  1. Mailbox server

  2. Client Access server

For client access to work correctly, install at least one Client Access server in each Active Directory site that has a Mailbox server. For message transport, install at least one Mailbox server for each group of Active Directory sites that are well connected on a common LAN. For example, if the organization consists of sites A and B, which are well connected on a common LAN, and sites C and D, which are well connected on a common LAN, with wide area network (WAN) links connecting sites A and B to sites C and D, a minimal implementation would be to have Mailbox servers only in site A and site C. However, Microsoft recommends that you have the Client Access and Mailbox Server roles in each Active Directory site with mail-enabled clients.

Because you install legacy Edge Transport servers outside the Active Directory forest, you can deploy additional Edge Transports at any time. By configuring multiple Edge Transport servers, you can ensure that if one server fails, Edge Transport services continue. If you also configure your Edge Transport servers with round-robin DNS, you can load balance between them.

Real World

If you are installing Exchange Server on a new network, such as one for a new company or a development environment, be sure that you’ve properly configured Active Directory and DNS before installing Exchange Server. You need to create a domain. Typically, you do this by installing a server and establishing the server as a domain controller in a new forest.

When you set up DNS, be sure you configure the appropriate reverse lookup zones. You should have one reverse lookup zone for each subnet. If you forget to set up the reverse zones and do this after installing your servers, be sure that the appropriate PTR records have been created for your domain controllers and Exchange servers. In Active Directory Sites And Services, check that the sites and subnets are configured appropriately. You need to create a subnet in Active Directory to represent each of the subnets on your network. If DNS reverse zones and Active Directory subnets are not configured properly, you will likely experience long startup times on your servers, and Exchange services will likely not start properly.

Installing Exchange Server

Before you run Exchange Server 2013 Setup make sure that the server meets the system requirements and prerequisites as discussed in the Chapter 1 section “Exchange Server 2013 editions.” You can run Exchange Server 2013 only on full installations of Windows Server 2008 R2 and Windows Server 2012. You cannot install Exchange Server 2013 on a server running in Windows Server Core mode. Instead, you must convert the Core mode to a full installation. The supported editions are as follows:

  • Windows Server 2012 RTM or R2 Standard or Datacenter

  • Windows Server 2008 R2 Standard with Service Pack 1 (SP1)

  • Windows Server 2008 R2 Enterprise with Service Pack 1 (SP1)

  • Windows Server 2008 R2 Datacenter RTM or later

Note

You can use Setup to install the Exchange Server 2013 management tools on 64-bit editions of Windows 7 SP1 and Windows 8 or later.

You can run Exchange Server 2013 Setup in one of several modes, including:

  • Install. Used when you’re installing a new server role or adding a server role to an existing installation.

  • Upgrade. Used when you have an existing installation of Exchange and you’re installing a service pack or cumulative update.

  • Uninstall. Used when you’re removing the Exchange installation.

Important

Exchange Server 2013 doesn’t support in-place upgrades from any previous version of Exchange. Further, after you install Exchange Server 2013, you won’t be able to rename the server.

Generally, you should install Exchange Server 2013 on member servers rather than on domain controllers. This will ensure Exchange operates with strictest security allowed and has optimal performance. If you do install Exchange Server 2013 on a domain controller, you won’t be able to demote the server. Once Exchange 2013 is installed, changing a server’s role from a member server to a directory server, or vice versa, isn’t supported.

If something goes wrong with the installation and re-running Setup and following the prompts doesn’t help you resolve the problem, you have several options. You can restore the server from backup or you can run Exchange Server 2013 Setup in recovery mode by running setup /m:RecoverServer at a command prompt. If you are recovering to a different server, the server must use the same fully qualified domain name (FQDN) as the failed server.

When you recover a server, you don’t specify the roles to restore. Setup detects the Exchange Server object in Active Directory and installs the corresponding files and configuration automatically. After you recover the server, you can restore databases and reconfigure any additional settings.

When you are ready to run Setup, you can begin the installation and install server roles by completing the following steps:

  1. Log on to the server using an administrator account. When you install the Mailbox and Client Access roles, you must use a domain account that is a member of the Enterprise Administrators group. If you’ve already prepared Active Directory, this account must also be a member of the Exchange Organization Administrators group.

    Important

    Before beginning setup, you should close any open Windows PowerShell or Microsoft Management Console (MMC) windows. Otherwise you will see a warning during the readiness checks that you need to close these windows. The installation process makes updates to Windows PowerShell and MMC and requires exclusive access.

    Real World

    Ensure the server’s TCP/IP settings are properly configured before beginning setup. Also, ensure that the server is a member of the domain in which you want the Exchange organization to be configured. During setup, the server will try to identify the Active Directory site in which it is located. The server will try to connect with a domain controller and global catalog sever in this site.

  2. Do one of the following:

    • If you are using an installation disc, insert the Exchange Server 2013 DVD into the DVD-ROM drive. If Autorun is enabled, Exchange Server 2013 Setup should start automatically. Otherwise, double-tap or double-click Setup.exe on the root folder of the DVD.

    • If you are using a download, access the folder where you extracted the Exchange setup files and then start Exchange 2013 Setup by double-tapping or double-clicking Setup.exe.

    Important

    If you’ve enabled User Access Control (UAC), you must press and hold or right-click Setup.exe and select Run As Administrator.

  3. On the Check For Updates page, shown in Figure 2-1, you can specify whether to check for updates to the setup process. If you don’t want to check for updates, select Don’t Check For Updates before you tap or click Next to continue. Setup will then copy files and initialize resources. The server also tries to validate the state of Active Directory.

    A screen shot of the Check For Updates page, with the Connect To The Internet And Check For Updates option selected.
    Figure 2-1. Exchange Server Setup allows you to check for updates to the setup process.

    If the server is unable to validate the state of Active Directory and choose a domain controller to work with, Setup will log errors and may also report that a domain controller could not be located. If errors are reported, do not continue with the installation. Instead, exit Setup and resolve the communication problem.

  4. The Introduction page begins the installation process. Tap or click Next to continue.

  5. On the License Agreement page, review the software license terms. If you agree to the terms, select I Accept The Terms In The License Agreement, and then tap or click Next.

  6. On the Recommended Settings page, shown in Figure 2-2, select whether you want to use the recommended settings. If you select Use Recommended Settings, Exchange will automatically send error reports and information about your computer hardware and how you use Exchange to Microsoft. If you select Don’t Use Recommended Settings, error and usage reporting are disabled, but you can enable them at any time after Setup completes. Tap or click Next to continue.

    A screen shot of the Recommended Settings page, with the Use Recommended Settings option selected.
    Figure 2-2. Using the Recommended Settings to automatically send error reports and information about your computer hardware to Microsoft.
  7. On the Server Role Selection page, shown in Figure 2-3, choose whether you want to install the Mailbox role, the Client Access role, both roles, or just the management tools on this computer. You can add additional server roles later if you choose not to install them during this installation. An organization must have at least one Mailbox role and at least one Client Access server role installed. Both roles can be installed on the same computer. However, unlike previous releases, you cannot uninstall only one role from a server—both roles must be uninstalled together. The management tools are installed automatically if you install any server role.

    A screen shot of the Server Role Selection page, with the Mailbox and Client Access roles selected.
    Figure 2-3. Selecting the server roles to install.
  8. Select Automatically Install Windows Server Roles And Features That Are Required To Install Exchange Server to have Setup install any required Windows prerequisites. You may need to reboot the computer to complete the installation of some Windows features. If you don’t select this option, you must install the required Windows features manually. Tap or click Next to continue.

  9. On the Installation Space And Location page, note the space required for the installation. Tap or click Browse to choose a location for the installation. Ensure you have enough disk space available on the related drive. Tap or click Next to continue.

  10. If this is the first Exchange server in your organization, on the Exchange Organization page, shown in Figure 2-4, type a name for your Exchange organization or accept the default value of First Organization. The Exchange organization name must be 64 characters or less and can contain only the characters A through Z, a through z, 0 through 9, space (as long as the space is not leading or trailing), and hyphen or dash. You can’t leave the organization name blank. Tap or click Next to continue.

    A screen shot of the Exchange Organization page, with the organization name set to First Organization.
    Figure 2-4. Setting the name of the Exchange organization.

    Real World

    Exchange 2013 supports shared permissions and split permissions. Split permissions allow organizations to separate Exchange management and Active Directory management. Role Based Access Control (RBAC) is the recommended split permissions model used with Exchange. If you want to use shared permissions or split permissions that use RBAC, do not select the Apply Active Directory Split Permissions check box. If your organization has strict requirements for separate management of Active Directory and Exchange Server and RBAC will not meet your needs, select the Apply Active Directory Split Permissions check box. However, you will then be unable to create users, groups, contacts, and other Active Directory objects using the Exchange management tools.

  11. If you’re installing the Mailbox role, on the Malware Protection Settings page, choose whether you want to enable or disable malware scanning. If you disable malware scanning, it can be enabled later. Tap or click Next to continue.

  12. On the Readiness Checks page, shown in Figure 2-5, ensure the prerequisite checks completed successfully. Note any warnings. Note any errors as well. You must resolve any reported errors before you can install Exchange Server 2013. For most errors, you don’t need to exit Setup. After resolving a reported error, tap or click Retry to run the prerequisite checks again.

    A screen shot of the Readiness Checks page, with a warning that Setup will prepare the organization for Exchange.
    Figure 2-5. Reviewing any warnings on the Readiness Checks page.
  13. When all readiness checks have completed successfully, tap or click Install to install Exchange 2013. The installation process should take about 60 minutes.

    The Setup Progress page, shown in Figure 2-6, tracks the progress of the installation. The installation is performed in a series of steps, with the progress for the current step tracked with a progress bar and as a percentage of completion. The number of steps varies, depending on the tasks Setup must perform to prepare the environment as well as the options you selected. Typically, the steps you see will include:

    screen shot of the Setup Progress page, showing the installation progress.
    Figure 2-6. Tracking the progress of the installation.
    1. Organization preparation

    2. Preparing setup

    3. Stopping services

    4. Exchange Files… Language Files

    5. Restoring services

    6. Languages

    7. Management tools

    8. Mailbox role: Transport service

    9. Mailbox role: Client Access service

    10. Mailbox role: Unified Messaging service

    11. Mailbox role: Mailbox service

    12. Client Access role: Front End Transport service

    13. Client Access role: Front End service

    14. Finalizing setup

  14. Finally, you’ll see the Setup Completed page, shown in Figure 2-7, when Setup completes the installation. Although you must restart the server to finalize the installation, you may want to select the Launch Exchange Administration Center check box before selecting Finish and then set the product key.

    screen shot of the Setup Completed page, which confirms that Setup has finished the installation.
    Figure 2-7. The setup is complete.

Note

Alternatively, you can manually start Exchange Admin Center by opening Internet Explorer and entering the Exchange Admin Center URL. By default, this URL is https://ServerName/ecp/ where ServerName is the name of the server, such as: https://mailserver35/ecp/.

By default, Exchange 2013 runs in trial mode. To get out of trial mode, you must validate the installation. In the left pane of Exchange Admin Center, tap or click Servers. As shown in Figure 2-8, a link is provided for entering a product key. Tapping or clicking this link opens the properties dialog box for the mail server with the general page displayed. Enter a valid product key in the boxes provided and then tap or click Save.

screen shot of Exchange Admin Center, showing the Servers panel.
Figure 2-8. Opening Exchange Admin Center.

You can change the product key at any time on the general page. Select Change Product Key, enter a valid product key, and then tap or click Save.

You can upgrade a Standard edition to an Enterprise edition using the options on the general page as well. Select Change Product Key, enter a valid product key for Enterprise edition, and then tap or click Save.

Verifying and completing the installation

You can verify that Exchange Server 2013 installed successfully by running the Get-ExchangeServer cmdlet in Exchange Management Shell. This command displays a list of all Exchange 2013 server roles that are installed on a specified server.

During installation, Exchange Setup logs events in the Application log of Event Viewer. You can review the Application log to make sure there are no warning or error messages related to Exchange setup. Typically, these events have event IDs 1003 and 1004, with the source as MSExchangeSetup.

You also can learn more about the installation by reviewing the setup log file created during the setup process. This log file is stored in the %SystemDrive%ExchangeSetupLogs folder with the name ExchangeSetup.log. The %SystemDrive% variable represents the root directory of the drive where the operating system is installed. Because these logs contain standard text, you can perform a search using the keyword error to find any setup errors that occurred.

As discussed previously, Setup must be able to contact Active Directory. If Setup is unable do this, errors will be logged and the Exchange organization will not be prepared properly. In the following example, Setup couldn’t validate the state of Active Directory and couldn’t locate a domain controller:

[06/02/2013 20:18:31.0253] [0] Setup is choosing the domain controller
to use
[06/02/2013 20:18:42.0630] [0] Setup is choosing a local domain
controller…
[06/02/2013 20:18:45.0033] [0] [ERROR] Setup encountered a problem while
validating the state of Active Directory: Could not find any Domain
Controller in domain pocket-consultant.com.
[06/02/2013 20:18:45.0158] [0] [ERROR] Could not find any Domain Controller
in domain pocket-consultant.com.
[06/02/2013 20:18:45.0205] [0] [ERROR] Domain controller not found in the
domain "pocket-consultant.com".
[06/02/2013 20:18:45.0205] [0] Setup will use the domain controller ''.
[06/02/2013 20:18:45.0205] [0] Setup will use the global catalog ''.
[06/02/2013 20:18:45.0955] [0] No Exchange configuration container was
found for the organization. Message: 'Could not find any Domain Controller
in domain pocket-consultant.com.'.

Because of this problem, Setup didn’t fully prepare the organization and had problems configuring the Mailbox role: Transport service and the other services as well. With Exchange 2013 RTM, the scripts for setup waited for up to 40 minutes during the Mailbox role: Transport service configuration, while continuously checking and eventually timing out. Setup took much longer than usual, but did continue all the way to completion. Although this long wait was an indicator of a problem, later updates to Setup for Cumulative Update 1 and beyond removed the waits, so there are no longer long lags that may indicate a problem.

When Setup is able to validate the state of Active Directory, the log records a very different set of events as shown in the following example:

[06/02/2013 20:40:07.0115] [0] Setup is choosing the domain controller
to use
[06/02/2013 20:40:14.0135] [0] Setup is choosing a local domain
controller…
[06/02/2013 20:40:24.0729] [0] Setup has chosen the local domain controller
CorpServer24.pocket-consultant.com for initial queries
[06/02/2013 20:40:24.0885] [0] PrepareAD has either not been run or has not
replicated to the domain controller used by Setup. Setup will attempt to
use the Schema Master domain controller CorpServer24.pocket-consultant.com
[06/02/2013 20:40:24.0885] [0] The schema master domain controller is
available
[06/02/2013 20:40:24.0901] [0] The schema master domain controller is in
the local domain; setup will use CorpServer24.pocket-consultant.com
[06/02/2013 20:40:24.0901] [0] Setup is choosing a global catalog…
[06/02/2013 20:40:24.0917] [0] Setup has chosen the global catalog server
CorpServer24.pocket-consultant.com.
[06/02/2013 20:40:24.0932] [0] Setup will use the domain controller
'CorpServer24.pocket-consultant.com'.
[06/02/2013 20:40:24.0932] [0] Setup will use the global catalog
'CorpServer24.pocket-consultant.com'.
[06/02/2013 20:40:24.0948] [0] No Exchange configuration container was
found for the organization. Message: 'Could not find the Exchange
Configuration Container'.

Here, Setup was able to select a domain controller to work with, locate the schema master, and choose a global catalog server. Note that Setup reports that PrepareAD was not run or replicated and that no Exchange configuration container was found. This is normal for a new installation of Exchange 2013. Shortly after validating the state of Active Directory, Setup will determine the organization-level operations to perform. For a new installation of Exchange 2013, related entries should look similar to the following:

[06/02/2013 20:40:26.0339] [0] Setup is determining what organization-level
operations to perform.
[06/02/2013 20:40:26.0339] [0] Setup has detected a missing value. Setup is
adding the value PrepareSchema.
[06/02/2013 20:40:26.0339] [0] Setup has detected a missing value. Setup is
adding the value PrepareOrganization.
[06/02/2013 20:40:26.0339] [0] Setup has detected a missing value. Setup is
adding the value PrepareDomain.

Here, Setup reports that it will prepare the Active Directory schema, the Exchange organization, and the domain. You can confirm each by looking for the elements that should have been created or configured as discussed in the section titled Coexistence and Active Directory earlier in the chapter.

To complete the installation for an initial deployment of Exchange into an organization, you need to perform the following tasks:

  • For Client Access servers:

    • If you plan to use ActiveSync for mobile messaging clients, configure direct push, authentication, and mobile devices.

    • Configure internal and external URLs for the Outlook web applications, Exchange ActiveSync, Exchange Admin Center, and Offline Address Book.

    • Configure authentication and display options, as appropriate.

    • Enable the server for POP3 and IMAP4, as appropriate.

    • A self-signed digital certificate is created by default but won’t be automatically trusted by clients. You can either establish trust or obtain a certificate from a third party that the client trusts.

  • For Mailbox servers:

    • Configure domains for which you will accept email. You need an accepted domain entry for each SMTP domain for which you will accept email.

    • Configure Send connectors as appropriate. If you are unsure about the Send connectors that are needed, create an Internet Send connector at a minimum. Use the address space of “*” to route all outbound mail to the Internet.

    • If you also deployed the Edge Transport server role, you need to subscribe to the Edge Transport server so that the EdgeSync service can establish one-way replication of recipient and configuration information from Active Directory to the AD LDS store on the Edge Transport server.

    • Configure DNS MX resource records for each accepted domain.

    • Configure OAB distribution for Outlook 2007 and later clients.

    • Configure database availability groups and mailbox database copies, as appropriate.

  • For Unified Messaging service:

    • Configure a unified messaging dial plan, and add the server to it.

    • Configure unified messaging hunt groups.

    • Enable users for unified messaging, as appropriate.

    • Configure your IP/VoIP gateways or IP-PBXs to work with Exchange Server.

    • Configure a Unified Messaging IP gateway in Exchange Server.

    • As desired, create auto-attendant and mailbox policies and configure additional dial plans, gateways, and hunt groups.

Adding, modifying, or uninstalling server roles

The Exchange Server 2013 installation process uses Windows Installer. Using Windows Installer helps to streamline and stabilize the installation process, and it makes modification of installation components fairly easy. Thanks to Windows Installer, you can install additional roles by re-running Setup from media or the download folder and resume a failed installation or modification simply by re-running Exchange Setup.

Although Exchange Setup doesn’t allow you to remove individual roles from a server, you can use the options on the Programs And Features page under Control Panel, Programs to uninstall Exchange Server. To do this, follow these steps:

  1. In Control Panel, tap or click the Uninstall A Program link under Programs. In Programs And Features, select the Microsoft Exchange Server 2013 entry to display the Uninstall button.

  2. If you want to remove all roles and uninstall Exchange Server, tap or click Uninstall. Clear the check boxes for roles you want to remove. Tap or click Next, and then follow the prompts.

Before you can remove the Mailbox role from a server, you must move or delete all mailboxes hosted in mailbox databases on the server and all offline address books hosted in public folders.

Understanding cumulative updates and service packs

Microsoft has been using cumulative updates and service packs with Exchange Server for some time. Starting with Exchange Server 2007, Microsoft began releasing customer rollup updates instead of individual hotfixes. Here, each rollup contained one or more routine product updates, one or more security updates, or both that were delivered and applied in a single package. The goal was to simplify delivery of updates and make maintaining Exchange Server easier. However, because security updates were delivered with hotfixes in a single package, you couldn’t install security updates separately from hotfixes. Additionally, service packs for Exchange Server 2007 were delivered as full product updates and installed as an upgrade.

Working with cumulative updates and service packs

With Exchange Server 2013, Microsoft decided to deliver routine product updates and security updates separately. Under this servicing model, routine product updates are delivered periodically as a single, cumulative update, and security updates are delivered separately. While this allows you to install security updates as they are released without having to install a cumulative update, cumulative updates themselves will contain security updates. As with earlier releases of service packs in Exchange Server, cumulative updates are delivered as full product updates and installed as upgrades.

To better align on-premises Exchange and Exchange Online, Microsoft tries to release cumulative updates on a fixed schedule and applies cumulative updates to their hosted Exchange servers prior to official release. Thus, when an update is released you know it has been applied to all Exchange Online servers and all of the mailboxes stored in the cloud.

Important

Microsoft is releasing cumulative updates for other products, including Lync and SharePoint, on separate fixed schedules as well. Ideally, this will be a quarterly release schedule with four cumulative updates released each year during the product’s lifecycle.

Cumulative updates more closely resemble service packs than rollup updates. Not only may cumulative updates contain hotfixes and security updates, they may also contain new features, product enhancements, and other changes that affect the way the product works. While language modifications were previously limited to Service Pack releases, cumulative updates may contain updates to language resources. A cumulative update also may contain Active Directory schema updates. If so, the schema changes will be additive and backward compatible with previous release and product versions.

Important

Cumulative updates do not replace service packs. Microsoft will continue to release service packs for Exchange Server 2013.

Every cumulative update and service pack is a full release of the product. This means, you install cumulative updates and service packs as product upgrades and that each update package will be larger than the previous product or update package. Because you install cumulative updates and service packs as upgrades, any customizations you’ve made to Exchange Server (using web.config files on Client Access servers, EdgeTransport.exe.config files on Mailbox servers, registry changes, or other custom configuration options on servers) are not preserved. This means you will lose any customizations. To prevent this, you must save your customizations and then re-apply them after applying a cumulative update or service pack.

Real World

Don’t forget that it is possible the upgrade process will fail. If this happens, you can recover from the failed upgrade like you would recover from a failed service pack installation, which may include running Exchange Server 2013 Setup with a special recovery option. To do this, you enter the command SETUP /m:RecoverServer.

In the unlikely event that the upgrade fails and is unrecoverable, you will need to re-install Exchange Server. This re-installation process will create a new server object and should not result in the loss of mailbox or queue data. However, you will need to re-seed or re-attach existing databases after the re-installation process.

Applying cumulative updates and service packs

You apply cumulative updates and service packs using Exchange Server Setup. Because each cumulative update and service pack is a new build of Exchange Server 2013, you don’t need to apply cumulative updates or service packs in sequence. You can apply the latest cumulative update or service pack at any time. For example, if you deployed Exchange Server 2013 RTM but didn’t upgrade to Exchange Server Cumulative Update 1, you could upgrade the original installation directly to Exchange Server Cumulative Update 2.

Important

When you are deploying Exchange servers, you don’t need to deploy Exchange Server 2013 RTM and then upgrade to a cumulative update or service pack later. Because each cumulative update or service pack is a complete build, you can fully deploy the Exchange server using only the current cumulative update or service pack.

In a Database Availability Group configuration, all servers should be running the same cumulative update or service pack of Exchange Server 2013—except during an upgrade. During an upgrade, individual servers within a Database Availability Group can have different cumulative update or service pack versions. This mixed state is expected to be only temporary. Database Availability Group should not operate in a mixed state for long periods of time.

Similarly, all servers in a Client Access array should be running the same cumulative update or service pack of Exchange Server 2013—except during an upgrade. During an upgrade, individual servers within a Client Access array can have different cumulative update or service pack versions. Again, this mixed state is expected to be temporary.

Cumulative updates and service packs are published at the Microsoft Download Center. Because staying current with cumulative updates and service packs may present a special challenge for some Exchange installations, it is important to note that cumulative updates are supported only for three months after the release of the subsequent cumulative update. With Microsoft’s goal of delivering cumulative updates quarterly, this typically means that a prior cumulative update is supported for about six months.

Tracking Exchange Server version numbers

Versioning with Exchange Server 2013 gets a little tricky. This is because Exchange Server can have both service packs and cumulative updates for those service packs. To differentiate between versions, Microsoft references both the Exchange Server version and the cumulative update.

The official release of Exchange Server 2013 is referred to as Exchange Server 2013 RTM. Cumulative updates for this release are referred to using the full release name plus the cumulative update number. Thus, Exchange Server 2013 RTM with Cumulative Update 1 is referred to as Exchange Server 2013 RTM CU1.

As Microsoft releases service packs for Exchange Server 2013, those service packs will be full product rollups that include prior cumulative updates of the product. Cumulative updates for Exchange Server 2013 with specific service packs will be released as well. In this instance, cumulative updates are referred to using the full release name, the service pack name, and the cumulative update number. Thus, Exchange Server 2013 SP1 with Cumulative Update 1 is referred to as Exchange Server 2013 SP1 CU1.

Keep in mind the version of Exchange Server is updated when you install a cumulative update, a service pack, or both. This means that one way to determine what cumulative update, service pack, or both is applied is to check the version number of an Exchange server. The build number for Exchange 2013 RTM is 516.32; the build number for Exchange 2013 RTM Cumulative Update 1 is 620.29; the build number for Exchange 2013 RTM Cumulative Update 2 is 712.22, and so on.

Real World

The Exchange 2013 management tools make it easy to determine version numbers. In Exchange Admin Center, simply select Servers in the feature pane and then select Servers to see a list of Exchange servers by name, install roles, and version. In Exchange Management Shell, you can display a similar list by entering the following command:

Get-ExchangeServer | select name, serverrole, admin*

Using security updates with cumulative updates and service packs

The servicing model changes the way security updates are released as well. For Exchange Server 2013, security updates are designated for a specific cumulative update and contain all of the fixes available at the time of release in a single update package. Thus, to ensure a server has the most recent security fixes, you need to apply only the most recently released security update for a specific cumulative update. For example, if you are using Exchange Server 2013 with CU2, you ensure a server has the most recent security fixes by applying the most recent security update for CU2.

As cumulative updates themselves contain security updates, you need to apply only security updates that have been released after a specified cumulative update. Thus, if for some reason you didn’t apply security updates for Exchange Server 2013 CU1 and have now upgraded to Exchange Server 2013 CU2, you don’t need to apply any of the security updates that are specific to Exchange Server 2013 CU1 (or Exchange Server 2013 RTM).

Security updates for Exchange Server 2013 are available via Microsoft Update and are published at the Microsoft Download Center. Finally, it is important to point out that security updates released for a particular cumulative update will not need to be uninstalled before moving to the next cumulative update.

New service packs for Exchange 2013 will include all the prior cumulative updates and security updates. Thus, when you install Exchange 2013 Service Pack 1, you don’t also need to install any prior cumulative updates and security updates.

Installing cumulative updates and service packs

Cumulative updates and service packs are full builds of Exchange Server 2013. You install a cumulative update or service pack as an upgrade, and there is no rollback process should installation fail. Because of this, you should ensure you have a full recovery plan in place prior to applying a cumulative update. Typically, this means having server backups and other backup plans in place prior to installing an update.

You’ll find cumulative updates and service packs for Exchange Server 2013 at the Microsoft Download Center. A single download is provided for both Exchange Server 2013 Enterprise and Exchange Server 2013 Standard. For example, Exchange Server 2013 CU2 is available at http://www.microsoft.com/en-us/download/details.aspx?id=39609. A current list of cumulative updates can be found at http://technet.microsoft.com/en-us/library/jj907309(v=exchg.150).aspx.

When you access the download page, tap or click Download to start the download process. Next, copy the download to your computer for installation at a later time by tapping or clicking Save. Copy the download to your server if necessary.

When you run the executable, Windows verifies the file, and you’ll then be able to extract the download to a folder. Be sure to specify an exact folder so that all the setup components are put in one place. Within this folder, you’ll find a program called Setup.exe. This is the Exchange Server 2013 Setup program.

Preparing to install a cumulative update or service pack

Before you run Exchange Setup make sure you read the release notes for the cumulative update or service pack. Also make sure that any server on which you plan to install the cumulative update or service pack meets the system requirements and prerequisites for Exchange Server 2013.

You can run Exchange Server 2013 only on full installations of Windows Server 2008 R2 and Windows Server 2012 RTM or R2. Exchange Server 2013 doesn’t support in-place upgrades from any previous version of Exchange. After you install a cumulative update or service pack, you cannot uninstall the cumulative update or service pack to revert to an earlier version of Exchange Server 2013. If you uninstall a cumulative update or service pack, Exchange Server 2013 is removed from the server.

As cumulative updates and service packs may contain Active Directory schema changes and other Active Directory updates, you may want to update Active Directory prior to deploying a cumulative update or service pack on any server in your organization, especially in a large enterprise. Here, keep the following in mind:

  • If the update contains schema changes, run the following command prior to executing the Exchange Server 2013 Setup.exe:

    setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
  • If the update contains enterprise Active Directory changes (such as role-based Access Control updates), run the following command prior to executing the Exchange Server 2013 Setup.exe:

    setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms
  • If the update contains changes to the permissions within the Active Directory domain partition, run the following command in each domain containing Exchange servers or mailboxes:

    setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms
  • If required, ensure that you run these commands using the Setup program provided in the cumulative update you are working with.

Although Exchange Server 2013 Setup can perform these processes for you during the upgrade, the changes can take some time to replicate throughout a large organization. By performing these tasks manually, you can streamline the upgrade process. You also can ensure the tasks are run with accounts that have appropriate permissions. Keep the following in mind:

  • If schema needs to be updated and you haven’t previously prepared schema, you must ensure the account you use is delegated membership in the Schema Admins group.

  • If you’re installing the first Exchange 2013 server in the organization, the account you use must have membership in the Enterprise Admins group.

  • If you’ve already prepared the schema and aren’t installing the first Exchange 2013 server in the organization, the account you use must be a member of the Exchange 2013 Organization Management role group.

Note

Administrators who are members of the Delegated Setup group can deploy Exchange 2013 servers that have been previously provisioned by a member of the Organization Management group.

You must apply a cumulative update or service pack by upgrading your Exchange 2013 servers in the required order. First, you upgrade Mailbox servers and then you upgrade Client Access servers. After you install a cumulative update or service pack, you must restart the server so that changes can be made to the registry and operating system.

If something goes wrong with the installation and re-running Setup and following the prompts doesn’t help you resolve the problem, you have several options. You can restore the server from backup or you can run Exchange Server 2013 Setup in recovery mode by running setup /m:RecoverServer at a command prompt. If you are recovering to a different server, the server must use the same FQDN as the failed server.

When you recover a server, you don’t specify the roles to restore. Setup detects the Exchange Server object in Active Directory and installs the corresponding files and configuration automatically. After you recover the server, you can restore databases and reconfigure any additional settings.

Installing a cumulative update or service pack

As discussed previously, a current list of cumulative updates and service packs for Exchange Server 2013 can be found at http://technet.microsoft.com/en-us/library/jj907309(v=exchg.150).aspx.

When you are ready to run Setup and install an update, you can begin the installation. If you are installing a new server using a current cumulative update or service pack, follow the procedure as discussed previously under “Installing Exchange Server.” Otherwise, to update an existing installation of Exchange 2013, complete the following steps:

  1. Log on to the server using an administrator account. When you install the Mailbox and Client Access roles, you must use a domain account that is a member of the Enterprise Administrators group. If you’ve already prepared Active Directory, this account must also be a member of the Exchange Organization Administrators group.

    Important

    Before beginning setup, you should ensure that the server’s Windows PowerShell Script Execution Policy is set to unrestricted. Check the current setting by entering Get-ExecutionPolicy at a PowerShell prompt. Set the execution policy to unrestricted by entering Set-ExecutionPolicy Unrestricted. If you don’t modify the execution policy, Exchange Server may not be upgraded properly. Afterward, close any open Windows PowerShell or MMC windows. Otherwise you will see a warning during the readi-ness checks that you need to close these windows. The installation process makes updates to Windows PowerShell and MMC and requires exclusive access.

    Caution

    If you are applying a cumulative update or service pack to an existing Exchange 2013 server, any customized per-server settings you made in Exchange configuration files will be overwritten. To prevent this, save your customized settings before you run Setup. This will help you easily reconfigure your server after the update.

  2. Access the folder where you extracted the Exchange setup files, and then start Exchange 2013 Setup by double-tapping or double-clicking Setup.exe. If you’ve enabled User Access Control (UAC), you must press and hold or right-click Setup.exe and select Run As Administrator.

  3. On the Check For Updates page, you can specify whether to check for updates to the setup process. If you don’t want to check for updates, select Don’t Check For Updates before you tap or click Next to continue. Setup will then copy files and initialize resources, as shown in Figure 2-9 and Figure 2-10.

    A screen shot of the Copying Files page, showing the copy progress.
    Figure 2-9. Exchange Server Setup copies files needed for installation to a temporary folder.
    A screen shot of the Initializing Setup page, showing the initialization progress.
    Figure 2-10. Exchange Server Setup prepares resources.

    The server also tries to validate the state of Active Directory. If the server is unable to validate the state of Active Directory and choose a domain controller to work with, Setup will log errors and may also report that a domain controller could not be located. If errors are reported, do not continue with the installation. Instead, exit Setup and resolve the communication problem.

  4. If you are installing a new server, you’ll see the Introduction page. If you are updating an existing server, you’ll see the Upgrade page, shown in Figure 2-11. Tap or click Next to continue.

    A screen shot of the Upgrade page, showing the option to continue with the installation.
    Figure 2-11. The Upgrade page.

    Important

    Seeing the Upgrade page is a confirmation that Setup identified the existing Exchange 2013 installation on the server. There is a problem if you are applying an update or service pack to a server already running Exchange 2013 and don’t see the Upgrade page at this point. You may need to restart the server or resume Exchange services that have been stopped and then re-run Setup.

  5. On the License Agreement page, review the software license terms. If you agree to the terms, select I Accept The Terms In The License Agreement, and then tap or click Next.

  6. On the Readiness Checks page, shown in Figure 2-12, ensure the prerequisite checks completed successfully. If they haven’t, you must resolve any reported errors before you can update Exchange Server 2013. For most errors, you don’t need to exit Setup. After resolving a reported error, tap or click Retry to run the prerequisite checks again.

    A screen shot of the Readiness Checks page, showing detected errors that must be resolved before installation can continue.
    Figure 2-12. Reviewing any warnings on the Readiness Checks page.

    Note

    A cumulative update or service pack may require additional Windows components. For example, Cumulative Update 1 required the Failover Cluster Command Line Interface component be installed. This is a Remote Server Administration Tool component that could be selected on the feature page of the Add Roles And Features Wizard. The component was listed under Remote Server Administration Tools, Feature Administration Tools, Failover Clustering Tools.

  7. When all readiness checks have completed successfully, tap or click Install to update Exchange 2013. The installation process should take about 60 minutes.

The Setup Progress page, shown in Figure 2-13, tracks the progress of the installation. The installation is performed in a series of steps, with the progress for the current step tracked with a progress bar and as a percentage of completion. The number of steps varies, depending on the tasks Setup must perform to prepare the environment, as well as the options you selected.

screen shot of the Setup Progress page, showing the installation progress.
Figure 2-13. Tracking the progress of the installation.

As part of the update, Setup removes existing Exchange files from the installation and then copies new files into the appropriate directories. Finally, you’ll see the Setup Completed page, shown in Figure 2-14, when Setup completes the installation.

screen shot of the Setup Completed page, which confirms that Setup has finished the installation.
Figure 2-14. The setup is complete.

You must restart the server to finalize the installation. After you restart the server, you can verify the update using the techniques discussed previously under “Verifying and completing the installation.” Because any customized per-server settings in Exchange configuration files are overwritten, you’ll need to restore the related files or re-create the customized settings.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset