Installing Exchange 2007 On Windows Server 2008

(Greenfield site – No existing Exchange)

KB ID 0000268

Problem

Assumptions

You have an x64 Bit server (x32 is not supported for production). You have an x64 Bit copy of Server 2008 or Server 2008 R2.

Solution

Pre site visit

To save time onsite it may be worth (If remote connection is available) downloading the relevant install media and service packs beforehand.

Pre requisites

1. .net 2.0 – pre installed in Server 2008 and Server 2008 R2

2. MMC 3.0 – pre installed in Server 2008 and Server2008 R2

3. Powershell needs to be installed, its pre installed on Server 2008 R2, on Server 2008 do the following > Start > run > cmd {Enter}> enter the following command,

ServerManagerCmd -i PowerShell

Note: It may look like it’s hung but after a while it will say “Success: Installation succeeded.”

4. You now need to add a server role > Start > Server Manager > Roles > Add Roles > IIS (Web Server) > Start > Server Manager > Roles > Add Roles > Next > Tick “Web Server IIS” > Next.

add iis role

5. Security Section > Add Basic Authentication, Digest Authentication, and Windows Authentication.

digest authentication

6. IIS 6 Management Compatibility Section > Add IIS 6 Metabase Compatibility and IIS 6 Management Console > Performance section > Tick Static and Dynamic Content compression.

iis management compatability

7. Click Next > Install > Close.

8. Now Select Features > Ad Features > Expand Remote server Administration Tools > Expand Role Administration Tools > tick AD DS and AD LDS Tools > Add Required Features > Next > Install > Close > Reboot when promoted.

ad ds and ad lds tools

9. Run Windows update.

 

Pre Install Tasks

Assuming you’re installing from CD/DVD (if not change E: to the correct path.)

If you are going to do the via RDP you MUST! Be on the console session.

1. From command line Execute the following command,

E:Setup.com /PrepareSchema

prepareschema

2. When it’s done Execute the following command,

E:Setup.com /PrepareAD /OrganizationName:{the_organisation_name}

preparead

3. When its done Execute the following command,

E:Setup.com /PrepareDomain

preparedomain

Install Exchange 2007

I have on one occasion needed to copy all the DVD/CD’s contents to the server for Installation to be successful.

1. Assuming the CD/DVD from which you are deploying Exchange 2007 from is E: > Start > Run > CMD {enter}.

2. Execute the following command,

E:Setup.exe

setup exchange

3. Click Step 4 > Introduction Screen > Next > Tick “I accept the terms….” > Next > Next > Select Typical > Next.

install exchange 2007

4. You will then be asked if you have and Outlook 2003 or earlier clients Answer Yes or No > Next.

client settings

5. Exchange 2007 will now do some checks > Click Install > When done > Finish >Reboot the server.

exchange 2007 setup

6. Launch the Exchange Management Console > Ignore any Licence warnings.

7. Select Server configuration > Select the new Server > Action > Enter Product Key > Type in your Key > Read the Warning > Finish > either reboot or restart the “Microsoft Exchange Information Store” service.

enter exchange 207 key

8. At time of writing SP2 is not supported on R2. But run Windows update to get any further updates/roll ups.

Error: This compuer is running Windows Server R2 Enterprise. Exchange Server 2007 is not supported on this operating system.

install 2007 on 2008 r2

9. The new 2007 Organisation will have one mailbox database and one Public folder database (If you said “Yes” I have Outlook 2003 or earlier during install) > Expand Microsoft Exchange > Server configuration > Mailbox > Select the server > The Databases will be displayed in the center panel at the bottom.

10. You can select the databases > Right Click > “Move Database Path” to move them onto another partition.

move exchange database

11. Point SMTP Feed to the New Server, the MX Record should now be pointing to the public IP of the new server OR the Firewall SMTP Port re-directs needs changing to the new server.

12. Once the SMTP Feed has swapped across, inbound mail may fail and return the following error,

mail.domainc.com #530 5.7.1 Client was not authenticated ##

To fix that you will need to allow anonymous access on the servers default receive connector. > Launch Exchange Management Console > Server Configuration > Hub Transport > right click the “Default {server name}” connector > Permission groups > tick “Anonymous users” > Apply >OK.

receive connector permissions

5. You may also find outbound mail will fail, and sit on the outbound queue with the following error,

A matching connector cannot be found to route the external recipient

To fix that you will need to create a “Send Connector”. Launch the Exchange 2007 Management Console > Organization Configuration > Hub Transport > Send Connectors > New Send Connector > Give it a name and CHANGE the intended use from Custom to Internet > Next > Add > In the address box type a single asterisk * > tick Include all subfolders > OK > Next > Add a smart host IF you use one > Next > Next > New > Finish.

send connector

Install Antispam Agents

1. Start > All Programs > Microsoft Exchange Server 2007 > Exchange Management Shell.

2. Execute the following commands,

cd "c:Program FilesMicrosoftExchange ServerScripts"
./install-AntispamAgents.ps1
Net stop "Microsoft Exchange Transport"
Net start "Microsoft Exchange Transport"

exchange install antispam agents

3. Stop and restart the Exchange Management Console (NOT the exchange Management Shell).

Note: If the antispam Agents are installed remove the following folder from the backup (Or it will error).

C:Program FilesMicrosoftExchange ServerTransportRoles

Post Install Tasks

1. You may need to exclude the following folder from the backup. C:WINDOWSMicrosoft.NETFramework64v2.0.50727CONFIG

2. If OWA displays “Service Unavailable” See here and run through the ASP.NET 2.0, 64-bit version section.

Related Articles, References, Credits, or External Links

NA

Author: Migrated

Share This Post On