Exchange Server 2010
Exchange Server 2010
Prepared by:
Jason B. Black
APSCN LAN Support
Spring 2012
Table of Contents
HARDWARE AND OPERATING SYSTEM REQUIREMENTS 4
--Hardware Requirements 4
--Software Requirements 4
--Active Directory Pre-Installation Check 4
--Recommended Installations Before Deployment 5
INSTALLING EXCHANGE SERVER 2010 7
--Setting up the Pagefile Size 7
--Installing the Microsoft Office 2010 Filter Packs 8
--Installing the Exchange Server 2010 Prerequisites 9
--Set the .NET TCP Port Sharing Service to Automatically Start 10
--Installing the Basic Exchange Components 10
--Creating Partitions for the Transaction Logs and Exchange Databases 12
--Moving the Exchange Database and Transaction Logs to Their Respective Partitions 14
INITIAL CONFIGURATION OF EXCHANGE SERVER 2010 16
--Creating the External Receive Connector 16
--Creating the External Send Connector 17
--Creating Database-Wide Mailbox Size Limits 18
--Creating E-Mail Address Policies 19
--Creating OU-Based Dynamic Distribution Lists 20
--Creating a Student Mail Transport Policy 22
--Mail-Enabling Users 23
--Setting Up a Delay for Exchange Services 24
--Setting Up a Scheduled Backup of Exchange 25
--Configuring the Change Password Feature for OWA 26
MANAGING EXCHANGE SERVER 2010 27
Managing User Mailboxes 27
--Mail-Enabling Users 27
--Disabling a User Mailbox 28
--Working with Disconnected/Orphaned Mailboxes 29
--Re-Assigning an Orphaned Mailbox 29
--Creating Mailboxes for Non-User Resources 30
--Creating Mailboxes for Rooms 30
--Creating Mailboxes for Equipment 30
Managing Address Lists, Distribution Groups, and E-Mail Addresses 33
--Creating and Removing Global Address Lists 33
APPENDICES:
Appendix A: Setting Up ActiveSync Policies for Mobile Devices 39
Appendix B: DNS Settings 41
Appendix C: Using Exchange 2010 with a Mail Proxy, Filter, or Relay 44
Appendix D: Backing Up Exchange Server 2010 48
Appendix E: Troubleshooting Common Startup Issues 51
regsvr32 schmmgmt.dll
Choose OK. You should receive a success confirmation.
Open an MMC console by going to start > run and typing mmc
winver
If this server is beneath the minimum requirements, you may transfer
that role through the Operation Masters option of the Active Directory
Schema MMC.
It is advised for DIS personnel to have the following downloaded prior to performing the onsite
Go to www.microsoft.com and search for Note: This will be provided for you on the
“Microsoft Office 2010 Filter Packs” administrator's desktop for the class.
Download and Run the file named
FilterPackx64.exe
Click Next
Example: msd.k12.ar.us
Click Next
Make a choice on the Customer Experience The one exception to this is if you receive a
Program and choose Next. warning that there is no A-record in DNS for the
server. You may continue to install, but won't be
The server will then perform a series of checks to able to receive mail until the external DNS records
ensure all prerequisites have been met. Let it have been installed and are propagated globally.
finish and if it does so without errors, you are free
to click Install.
Exchange will begin to install at this point. This may take some time, during which you might
consider contacting the DIS helpdesk to set up your Firewall Feature Set entries, and to set the host,
MX, and autodiscover records for your own domain. See Appendix B: DNS Settings
Find the disk that you want to put the volumes on,
then right-click on Unallocated Space.
Examples:
Exchange Databases
Exchange T-Logs
Click OK to finish.
Expand Server Configuration, then choose Hub
Transport.
Click OK to finish.
Click OK.
Click Next through the next few screens, then You've created the Send Connector now. You
choose New should be set to both send and receive mail.
Note: If your site is using the state spam filter or another filtering and relaying service, don't forget
that your send and receive connectors need to be modified to only receive from the approved filters
and to only send through the relay. For instructions on how to do this, please consult Appendix C:
Locking Down Exchange to a Relay Filter.
Click Next
Under the Filter Settings, choose the radio button
marked The Following Specific Types, then
check the box for Users With Exchange
Mailboxes.
Click Next.
Mail-Enabling Users
From the Exchange Management Console,
expand Recipient Configuration, then Mailbox.
Click on Mailbox.
In the Action pane to the right, click New Mailbox
to bring up the New Mailbox Wizard.
Click Next
Click Add
In this portion, we set a delay on the Exchange Service Attendant. There are also two services that do
not normally wait for the Service Attendant to start—the Information Store and the Active Directory
Topology services. We set these to wait on the Service Attendant to start before attempting to start.
Regedit
Navigate to the following key:
HKEY_LOCAL_MACHINE\System\CurrentCont
rolSet\Services\MSExchangeSA\Parameters
Right-click in the right-hand pane and choose
New > DWORD (32-Bit value)
HKEY_LOCAL_MACHINE\System\CurrentCont
rolSet\Services\MSExchangeIS\
IMPORTANT: Do NOT delete the log files manually. It is important that they be played back into the
latest backup of the database in case of failure, to ensure that nothing is lost. However, if they fill up
the drive, then the Exchange services will not start.
To correct this and prevent it from recurring, it's important to set up a regular backup of the Exchange
database. The backup MUST be run while Exchange is in a running state. Once this is in place,
Exchange will detect the backups and purge the log files accordingly.
You will find instructions on creating a backup solution in Appendix D: Backing Up Microsoft
Exchange 2010
Name: ChangeExpiredPasswordEnabled
Value: 1
This registry change must be made on each Client Access Server that utilizes Outlook Web Access.
When Exchange 2010 is installed, there are The purpose of this section will be to demonstrate
specific extensions made to the Active Directory how to mail-enable a new user, how to re-assign a
Schema, which gives a new set of attributes to the mailbox to an accidentally-deleted user, how to
user accounts. Among these is a field that links a disable a user's mailbox, and how to delete
specific Exchange mailbox to a particular user orphaned mailboxes.
account.
Mail-Enabling Users
In this example, we have a new user that has joined the faculty. His account has been created as
clayton.stallings.
Before Clayton can receive mail, Exchange 2010 must be instructed to create a database for this user.
Open the Exchange Management Console and
navigate to Recipient Configuration > Mailbox
On the Action pane to the right, click on New
Mailbox.
Click Next
Get-MailboxDatabase
Next, issue the Clean-MailboxDatabase
commadlet, using the name of the database (from
the previous step) within quotes. Here we are
assuming that the name is Faculty Mailbox
Database:
Click Next.
Alias: JaneSmith
These are handy for scheduling, as it allows all users the ability to check out resources as needed in a
centralized calendar.
Creating Mailboxes for Rooms
Open the Exchange Management Shell. Navigate
to Recipient Configuration > Mailbox.
We'll begin our example by adding one for the
science lab.
Click Next
Choose New User and click Next
Click Next.
Alias: HS-SciLab-101
Click Next
Click Next.
Alias: 1018-HS-Projector
Address lists also provide a mechanism to partition mail-enabled objects in Active Directory for the
benefit of specific groups of users, such as faculty at a specific campus.
Creating a Global Address List
The Global Address List (also called a GAL) is a directory that contains entries
for every group, user, and contact within an Exchange 2010 organization.
Open the Exchange Management Shell by going Note: This
to Start > All Programs > Microsoft Exchange cannot be
Server 2010 > Exchange Management Shell. done through
the Exchange Management Console.
In this example, we will show how to create an address list out of the entire Faculty organizational
unit of the myschooldistrict.local domain.
Open the Exchange Management Shell. Navigate
to Organizational Configuration > Mailbox.
In the Action pane, click New Address List.
On the Introduction Page, give the following
information:
Click Next
Click Next
Click Finish
Alias: faculty.list
It is recommended that passwords be required for devices, as these may contain student data. As the
standards are currently not set for mobile devices for schools, it is important to cover these with the
district's administration.
Note that prior to using ActiveSync, you MUST purchase and install a multi-site UCC certificate from
a third-party trusted authority. The installation and purchase of this certificate is currently beyond the
scope of this document.
In the Exchange Management Console, navigate
to Organization Configuration > Client Access
Select the checkbox marked Allow Non- Not all devices will support all of the features that
Provisional Devices ActiveSync currently offers. Those that do not
support all of these features are called non-
provisional devices. As these are
recommendations that are being pushed from the
server, at this time it is safe to allow them.
Leave the box marked Allow attachments to be Again, this depends on your district's policies, and
downloaded to the device checked. should be set after consulting with the
administrative staff.
Select the box marked Require Password. Select
the options that are required.
When setting up your Exchange Server, there are a number of settings that will need to be made within
your external DNS systems. These will need to be made for the server to work properly. The MX
record is used to tell outside mail servers which machine is responsible for handling the mail for your
entire domain.
Also, there is the matter of the Autodiscover service. Autodiscover allows you to rapidly get clients set
up both internally and externally. When you set up a user on a machine, it looks to DNS to find
autodiscover.msd.k12.ar.us. If this record is set up, it will point to your mail server, which will then
send the basic information of how the clients are to connect to it. Autodiscover is also critical for other
services, such as ActiveSync, which allow you to easily set up secure remote access to the mailserver
for many mobile devices, such as smartphones.
The following table is for msd.k12.ar.us, who are using myschooldistrict.local as their local domain.
The EXTERNAL IP address of their mailserver is 170.211.1.98 and the INTERNAL address is
10.10.103.8. By looking at the following tables, you can see how these records need to be set up:
In some cases, such as sites that are using a mail filtering device such as a Barracuda filter or
SpamAssassin server. In that case, you will want to use the same table as above, with some minor
modifications. An A-record will also need to be assigned to the mail filter, and the MX record will
need to point to it. Assuming that msd.k12.ar.us purchases and installs a mail filter at 170.211.1.99,
this is how their DNS records would be set up:
(Figure B.1: Standard setup with mail server, using an external filter)
DNS RECORDS FOR EXTERNAL SYSTEMS
Record Type Name Data TTL
A (Host) mail.msd.k12.ar.us 170.211.1.98 (default)
A (Host) autodiscover.msd.k12.ar.us 170.211.1.98 (default)
A (Host) filter.msd.k12.ar.us 170.211.1.99 (default)
MX (Mail Exchange) msd.k12.ar.us filter.msd.k12.ar.us (default)
SENDER PROTECTION FRAMEWORK (SPF) RECORD
TXT msd.k12.ar.us v=spf1 mx a:mail.msd.k12.ar.us ~all (default)
DNS RECORDS FOR INTERNAL SYSTEMS
A (Host) Autodiscover.msd.k12.ar.us 170.211.1.98 (default)
A (Host) Autodiscover.msd.k12.ar.us 10.10.103.8 (default)
A (Host) Autodiscover.myschooldistrict.local 170.211.1.98 (default)
A (Host) Autodiscover.myschooldistrict.local 10.10.103.8 (default)
Next, there is Unified Communicator. Most sites do not use this, but for those that do, these SRV
records will need to be added. The sipfederation SRV record is only necessary if you have signed up to
federate with Microsoft's servers, which would make your users available to external users of Microsoft
Live/MSN Messenger. If you choose to federate, you will also need to register with Microsoft, which
is beyond the scope of this document.
DNS SRV RECORDS FOR EXTERNAL SYSTEMS
SRV Priority Weight Port Target
_sip._tls.msd.k12.ar.us 10 2 443 mail.msd.k12.ar.us
_sipfederation._tls.msd.k12.ar.us 10 2 5061 federation.messenger.msn.com
DNS SRV RECORDS FOR INTERNAL SYSTEMS
An SPF (Sender Protection Framework) has not been traditionally used. However, as mail
administrators struggle with spam daily, it is becoming more of a widespread requirement. An SPF
record is a specially formatted text record (TXT) that lists the servers that are authorized to get mail for
a domain. When a message is received, the receiving server checks the alleged sender’s mail domain
for an SPF record in DNS. If it finds one, then it checks the servers listed on it to ensure that there is a
match. If the sending address is not on the list, then the mail is discarded as spam. If no SPF record is
found, then often the sending address is compared against the MX, however more domains increasingly
reject them.
Note: While the example below uses the state mail relay. While this was once the preferred method
for systems that used the state spam filter, this is NO LONGER RECOMMENDED. Instead, for users
of the state mail filter, it's recommended to send out mail directly by MX (which is the default) and to
add an SPF record into your external DNS to prevent bounces. Instructions for creating an SPF record
can be found in Appendix B.
Click Next
Click Next
IP addresses: 165.29.1.128/25
Choose Next
Next, choose New, then Finish.
If the partition does become full, then you will need to expand that drive space, obtain a full backup of
the database and transaction logs, then enable circular logging temporarily to clear out the logs.
Preparation: Installing the Windows Backup Service
Open the Windows Server Manager by going to Start >
Administrative Tools > Server Manager
Click Features from the tree menu to the left, then choose Add
Features from the upper-right corner of the Features Summary
window.
Check the box next to Windows
Server Backup Features.
Note: If you are backing up to a removable drive, it's best to share out this drive, then use the same
directions below for backing up to a shared network location.
If backing up to a shared network location
Open My Computer and navigate to the C: drive. It is easier to manage scripts if they
are held in a common location. It is
Create a new directory on C: called AdminScripts the preference of the author to call
it AdminScripts. You may change
this to your preference.
In AdminScripts, create a new text
document with Notepad.
File Name:
Make certain you change the Save as Type to All Files.
Otherwise it will be saved as BackupExchange.cmd.txt, which BackupExchange.cmd
will NOT kick off the backup job.
Save as Type:
All Files
Name:
Exchange Full Backup
Data:
Performs a full backup of the
Exchange Databases, T-Logs, and
System State.
Choose Next.
Most startup issues with Exchange 2010 are based on three things: Availability of Active Directory,
adequate drive space, and database integrity.
Availability of Active Directory
In many cases, such as the event of a building-wide power failure, the Exchange server will be booted
at the same time as the site's domain controllers. Because Active Directory is one of the last few items
on a Windows server to start, this can cause the following errors:
Event ID : 1005
Source : MSExchangeSA
Category : General
Type : Error
Description : Unexpected error The Local Security Authority cannot be contacted ID no: 80090304 Microsoft Exchange System Attendant occurred.
Event ID: 2601
Source: MSExchange ADAccess
Category: General
Type: Warning
Description: Process MSEXCHANGEADTOPOLOGY (PID=1624). When initializing a remote procedure call (RPC) to the Microsoft Exchange Active
Directory Topology service, Exchange could not retrieve the SID for account <WKGUID=DC1301662F547445B9C490A52961F8FC,CN=Microsoft
Exchange,CN=Services,CN=Configuration,...> - Error code=80040934. The Microsoft Exchange Active Directory Topology service will continue
starting with limited permissions.
Event ID: 1121
Source: MSExchangeIS
Category: General
Type: Error
Description: Error 0x96e connecting to the Microsoft Active Directory.
Event ID: 5000
Source: MSExchangeIS
Category: General
Type: Error
Description: Unable to initialize the Microsoft Exchange Information Store service. - Error 0x96e.
To fix this, wait for the Domain Controllers to start, then reboot the Exchange server. Also, the
following registry entries may be added to the Exchange 2010 server to create an additional delay
before attempting to start. These will help as they give Active Directory adequate time to start before
the various Exchange services begin. The server will need to be rebooted prior to these taking effect:
Registry Path Registry Subkey (Multi_SZ) Registry Values
HKEY_LOCAL_MACHINE\Sy DependOnService EventLog, RPCSS,
stem\CurrentControlSet\Services LanmanWorkstation,
\MSExchangeSA LanmanServer, Netlogon
HKEY_LOCAL_MACHINE\Sy DependOnService Netlogon
stem\CurrentControlSet\Services
The transaction logs will automatically be deleted by Exchange once it is convinced that the mail store
has been backed up. It is imperative that these not be deleted manually if at all possible, with the
exception of certain cases, because these contain every single transaction that has occurred on the
Exchange system prior to the last backup of the database. In the event of the database being crashed
beyond repair, these can be played back to the backup to prevent lost mail.
Reclaiming Drive Space on the Transaction Log Partition OR Repairing the Database:
In order to claim the transaction log space, you will need an external drive roughly equivalent to 115%
of your mail store. Plug the drive into the server. For purposes of demonstration, we will refer to this
external drive as H: although the actual letter mapped to it will differ depending on your server
configuration.
This procedure is also the same as the one used if the database is in a corrupt state, such as a Dirty
Shutdown caused by power loss before changes can be committed.
First, check the state of the mailbox databases to
ensure that they are Not Mounted:
cd G:\path\to\exchange\logfiles
Once you are in the directory that contains the log
Eseutil /p F:\path\to\exchange\database.edb /t h:\tempfile
files, issue the command to the left, adjusting
Eseutil /d F:\path\to\exchange\database.edb /t h:\tempfile paths and filenames as required for your own
Exchange organization. You can make typing in
the path to the database easier by using the TAB
key after the first couple of characters of each
directory.