Click here to Skip to main content
14,971,280 members
Articles / Containers / Virtual Machine
Posted 24 Sep 2010


6 bookmarked

Exchange Server: Express Configuration for Testing

Rate me:
Please Sign up or sign in to vote.
4.38/5 (5 votes)
24 Sep 2010CPOL9 min read
The aim of the article is to present a step-by-step description of the installation and configuration of the domain controller, Exchange Server, and MS Outlook with two accounts for the testing purposes.

Real and Virtual Hardware
OS Installation
Configuring Active Directory
Mailbox Creation
Outlook Installation and Configuration
Configuring an Additional MS Outlook Account


This article can be useful for those testers who configure their test environment themselves without the help of the system administrator. The aim of the article is to present a step-by-step description of the installation and configuration of the domain controller, Exchange Server, and MS Outlook with two accounts for the testing purposes.

This article comes from the personal experience. I tested an application that worked with a “living” Exchange system. For testing, I needed a real Exchange server through which it would be possible to send and receive mail for checking different test cases. My task was to find the most optimal configuration of the test environment to configure everything quickly on the one hand and to simulate a relatively real situation on the other hand.

In the simplest case, it is enough to have one machine – real or virtual. Then, there can be variations: to make it more trustworthy, we can use 3 real machines – server and two clients in a separate sub-network. The installation and configuration of the software will not differ much.

Real and Virtual Hardware

For the real system, in the general case, we need two real computers and a switch. The simplest case is when our Exchange is located in its local network without access to the Internet or any other sub-network.  We connect the network cables of both computers to the switch and do not forget to switch the switch on. The hardware is ready.

For the VMWare-based sub-network, we need virtual machines with the network of the host only or custom type. The configuration of the sub-network on VMWare is not a subject of this article. More information you can find in the VMWare Help.

OS Installation

Exchange Server requires Active Directory and the last, in its turn, requires the server OS. We use the Windows 2003 Server R2 Enterprise. In the process of installation, we set the name for the server (e.g., bob) and add it to the workgroup. The system updates are not necessary at the moment; the required updates will be described later.

In the properties of the network connection, we set the static IP address (e.g., In the Default gateway and DNS we set the same IP.

Configuring Active Directory

We need to configure DHCP and DNS for the domain controller. That is why it must be located in a separate sub-network not to cause troubles in the main local network.

We need to assign server roles. By default, the corresponding window appears just after the installation or you can call it by selecting Start -> Administrative tools -> Manage your server. Do the following:

  1. In the Manage Your Server window, click Add or remove role (see Figure 1).

Manage Your Server window
Figure 1

  1. The Configure Your Server wizard opens.
  2. Select the Typical configuration for a first server and click Next.
  3. You are proposed to enter the domain name (the same as the DNS server name). Enter any   name (e.g., alice) though the name of the organization is set by default.
  4. Click Next and then click Next once more. Agree to restart.   
  5. Restart the computer, login, and wait while the configuration completes.

By default, the domain works in the mixed mode, i.e. it supports clients managed by the OS 2000 and lower. Exchange 2007 is not compatible with this mode that is why we need to change the mode.

To change the mode, do the following:

  1. Select Administrative tools -> Active directory users and computers.
  2. Right click on the domain (e.g., alice.local) and select the Raise domain functional level option.
  3. In the combo box, select Windows 2000 native.
  4. Click Raise and agree that it is irreversible.
  5. Now we have a domain.

Now we can add the client machine (if it exists) to the domain.

To add the client machine to the domain, do the following:

  1. Select My computer -> Properties -> Computer name -> Change.
  2. Instead of Workgroup, select Domain and enter the name of your domain (i.e., alice.local).
  3. Enter the name of the domain administrator alice\administrator and the password.
  4. The client machine is in the domain.

The client machine should be seen in the domain controller (bob server). To view it, select Start -> Administrative tools -> Active Directory Users and Computers -> Computers.

Now we should install some missing software:

  1. Windows components: select Control panel -> Add or remove programs -> Add/remove Windows components -> Application Server (see Figure 2).

Windows components
Figure 2

Select the Application server console, ASP.NET, Enable network COM+ access, and IIS options as shown in Figure 3.

Application server components
Figure 3

  1. Complete the installation with the following tools:

Now we can install Exchange itself:

  1. Start the Setup.exe file.
  2. Move between pages by default till the Exchange organization page where we can set the name of the organization.
  3. In the Client Settings, select Yes if you are going to connect to the Exchange via MS Outlook 2003 and lower.
  4. Readiness checks: if everything was installed correctly till this moment, after the check, there will be 1 successful message and 3 warnings. Do not pay attention to warnings, they will not prevent us from further actions.
  5. Click Install. The process of installation should complete successfully (all check marks must be green).
  6. Click Finish. The Exchange Management console (EMC) opens.

Mailbox Creation

We need to have users in the domain to create mailboxes.

To create a user, do the following:

  1. Select Administrative tools -> Active directory users and computers.
  2. Expand the tree of our domain.
  3. Right click Users and select New –> User (see Figure 4).

Start domain user creating
Figure 4

  1. In the opened New Object – User window, enter the First name, the User logon name (it can be the same as the First name), and the password (see Figure 5 and Figure 6).

Domain user names
Figure 5
Domain user password
Figure 6

To create the mailbox, do the following:

  1. Open the Exchange Management Console.
  2. In the Recipient Configuration node, select the Mailbox sub-node, right click and select New Mailbox (see Figure 7).

Start to create new mailbox
Figure 7

  1. On the Introduction page, select the User Mailbox radio button and click Next (see Figure 8).

Select mailbox type
Figure 8

  1. On the User Type page, select the Existing Users radio button and click Add(see Figure 9).

Add domain user to mailbox creation wizard
Figure 9

  1. In the Select User window, select the required user (see Figure 10).

Figure 10

  1. Click OK. The new user appears in the grid. We can add several users in such a way.
  2. Click Next. The Mailbox Settings page opens (see Figure 11).

Select mailbox database
Figure 11

  1. At the Mailbox database field, click Browse.
  2. In the opened window, select the only one default path to the database (<server name>\First Storage Group\Mailbox Database).
  3. Move between other pages of the wizard by default.
  4. The mailbox is ready. It is displayed in EMC (see Figure 12).

 Just created mailbox is shown in the Exchange console
Figure 12

Outlook Installation and Configuration

As we know, the MS Outlook is installed together with the MS Office installation. We can install the whole MS Office or only MS Outlook.

On its first startup, MS Outlook proposes to configure the mail account and starts the corresponding wizard. Select Yes and move on.

By default, on the Add New E-mail Account page, information about the domain user, under which the MS Outlook was started, is filled (see Figure 13). 

Configure default account in Outlook
Figure 13

If we want to configure the MS Outlook for another user, enter the required address in the Email Address field. Of course, we also need to enter the domain password for this user (see Figure 14).

Configure not default account in Outlook
Figure 14

Click Next. MS Outlook starts checking the server connection.

If everything is configured correctly, MS Outlook displays three green check marks in the end. Then just move between other pages of the wizard by default.

Configuring an Additional MS Outlook Account

For my situation, I needed that the mail came through the Exchange server and the database was supplemented. At the same time, I did not want to assign a separate machine for the client and configure the sub-network.

For such case, we can configure several accounts in MS Outlook and send mail from one account to another by turn.

To configure the accounts, do the following:

  1. Close the MS Outlook if it was started.
  2. Select Start -> Control Panel -> Mail (for the Classic View of the Control Panel) (see Figure 15).

Mail Setup - Outlook
Figure 15

  1. In the Mail Setup window, click Show Profiles.
  2. In the Mail window, click Add (see Figure 16).

Add new profile
Figure 16

  1. There can be any user name but for the clarity, it would be better if it coincides with the name of the corresponding user (see Figure 17).

Profile name
Figure 17

  1. Then, there is an account configuration again (we already know how to configure an account). Click Next (see Figure 18).

Set up new mail account
Figure 18

  1. We receive two profiles in the MS Outlook that are configured for different accounts. We also do not forget to select the Prompt for a profile to be used option (see Figure 19). Then, at each startup, MS Outlook will ask which profile to use.

Two mail accounts in Outlook
Figure 19

Now we check how the mail passes. We start the MS Outlook under one account and send a message to another account. Then we start the MS Outlook under another account and check if there is a message from the first account. If everything is correct, each account should receive messages.


So, we successfully provided ourselves with the test environment that is close to the real system. At least, the functional testing of any application connected with Active Directory (AD) or Exchange server can be performed without problems. We can vary the configuration as we like: we can use either real or virtual hardware, install everything on a single machine or connect a number of clients, add specific settings of AD or Exchange, work with Security Policies, etc. Everything depends on what environment properties are required for the testing.

If we need to install everything quickly and easy, we can take one virtual machine and install the whole system with two accounts on it in an hour. If we need the system close to the real conditions, we can perform the same on the real server with several real clients in a separate sub-network.

Anyway, if I had such instruction for my task in due time, it would have helped a lot.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Authors

Apriorit Inc
Chief Technology Officer Apriorit Inc.
United States United States
ApriorIT is a software research and development company specializing in cybersecurity and data management technology engineering. We work for a broad range of clients from Fortune 500 technology leaders to small innovative startups building unique solutions.

As Apriorit offers integrated research&development services for the software projects in such areas as endpoint security, network security, data security, embedded Systems, and virtualization, we have strong kernel and driver development skills, huge system programming expertise, and are reals fans of research projects.

Our specialty is reverse engineering, we apply it for security testing and security-related projects.

A separate department of Apriorit works on large-scale business SaaS solutions, handling tasks from business analysis, data architecture design, and web development to performance optimization and DevOps.

Official site:
Clutch profile:
Group type: Organisation

33 members

Kit Tatiana
Tester / Quality Assurance Apriorit
United States United States
No Biography provided

Comments and Discussions

GeneralMy vote of 5 Pin
Manoj Kumar Choubey15-Apr-12 22:08
professionalManoj Kumar Choubey15-Apr-12 22:08 
GeneralFree Magento Extensions Pin
magentoext26-Sep-10 20:15
Membermagentoext26-Sep-10 20:15 
GeneralMy vote of 5 Pin
Eric Xue (brokensnow)24-Sep-10 14:27
MemberEric Xue (brokensnow)24-Sep-10 14:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.