Configuring Exchange 2007

It’s been several days since I’ve written, partly because of configuration issues and partly because I have not been able to spend the time I should be concentrating on Exchange.

I ran into a RUS problem that was similar to the problem posted by Andy at http://telnetport25.wordpress.com/ Fortunately for me, Andy had just posted his problem and solution less than a day before I ran into the same problem.

I purchased and generated an SSL certificate from GeoCerts.com (http://www.geocerts.com/ssl/tbidmd). Very important note: When one uses the command New-ExchangeCertificate in PowerShell, do not put any spaces between the server names after the -DomainName parameter.

Here are the commands I used:

New-ExchangeCertificate -GenerateRequest -Path c:\mail_unionmark_com.csr -KeySize 1024 -SubjectName “c=US, s=Florida, l=Sarasota, o=Union Marketing, cn=mail.unionmark.com” -DomainName mail1,autodiscover.unionmark.com,mail1.um.dom -PrivateKeyExportable $True

Then I downloaded my new certificate to the C: drive.

Import-ExchangeCertificate -Path c:\mail_unionmark_com.txt -FriendlyName “mail.unionmark.com” | Enable-ExchangeCertificate -services “iis,smtp”

The last command can be split into two separate commands, but then one must cut and paste the Thumbprint – this is quicker.

Next minor steps

Since we are not using an Edge Transport server, then I also used the Set-ReceiveConnector.

It is doubtful that one would need to do this, but I have seen some blogs that mention one needs to use the New-RoutingGroupConnector command.

My Power Scripts

Before I was done for the day,

  • I set our firewall to accept mail on port 25 for this email server.
  • I selected 7 email accounts from old Union Marketing employees. For those AD accounts, I changed the “Office” AD attribute to “move1″.
  • Then I used the following two PowerShell command to move those 7 mailboxes.

Get-Mailbox -filter “Office -like ‘move1′” | move-mailbox -BadItemLimit ‘25′ -TargetDatabase “First Storage Group\Mailbox Database” -PreserveMailboxSizeLimit -ValidateOnly | ConvertTo-Html > MoveOne.htm

Here I checked “MoveOne.htm” to see if all 7 mailboxes could be successfully moved, then proceeded.

Get-Mailbox -filter “Office -like ‘move1′” | move-mailbox -BadItemLimit ‘25′ -TargetDatabase “First Storage Group\Mailbox Database” -PreserveMailboxSizeLimit | ConvertTo-Html > MoveOneB.htm

I’m pretty proud of my command of PowerShell here – I like the way I can select people from an Office and move just those people’s mailboxes. In another post I will show you how to move mailboxes based on another Active Directory attribute.

0 Responses to “Configuring Exchange 2007”



  1. No Comments Yet

Leave a Reply




 

August 2008
M T W T F S S
« Jul   Oct »
 123
45678910
11121314151617
18192021222324
25262728293031

Recent Comments