Monday, 11 April 2011

Moving Public Folders from Exchange 2003 to Exchange 2010

Migrating from Exchange 2003 can be a worrisome process.
Exchange is probably the most mission critical server in your organisation you want to ensure that no data is lost.
Public folders are often overlooked and it's only when you get towards decommissioning the server that you start to think about how to get the data off it.

The concept is easy, Exchange 2003 will only allow you to delete a PF store, if all PFs are replicated on other servers.

Microsoft have provided a few scripts to help you set up the PF replication they are located on the Ex2010 server in C:\Program Files\Microsoft\Exchange Server\V14\Scripts:


AddReplicaToPFRecursive.ps1 – adds a server to the replica list for a public folder and subfolders.
For example, to add EX2010 as a replica for all public folders on server EX2003 starting at the root folder of \ you would run this command.
AddReplicaToPFRecursive.ps1 –Server EX2003
 –TopPublicFolder \ –ServerToAdd EX2010



MoveAllReplicas.ps1 – this script replaces all of the replicas on one server with the new server. It works over the whole Public Folder store so there is no need to specify the root folder.
To move all replicas from EX2003 to EX2010 you would run this command.
MoveAllReplicas.ps1 –Server EX2003 –NewServer EX2010


To check that the replicas have been set on the folders, you can run:
Get-publicfolder -recurse |fl identity,replicas

Once the replicas are all up to date, you should be able to remove the Ex 2003 public folder store.


I hope this tip proves useful for you, please remember to click on the ads to show your thanks.

Monday, 4 April 2011

Setting up Exchange 2010 to relay

By default, Exchange 2010 is locked down to stop unauthenticated users sending out emails to the Internet.
This is very good practice, but sometimes you do want this functionality (for example I want my monitoring system to alert me by SMS which involves sending an email to to phone provider).


First, you're going to need a new internal IP address.. there might be ways around this, but this will minimise any security risks... you don't need another NIC, just add a second IP address to your existing one.


One you have that set up, go to Server Config – Hub Transport:

Edit Default Receive Connector to only listen on the OLD IP address.

Then:  

Actions – New Receive Connector

Follow the wizard filling in the information:

Name: RelayConnector
Use: Custom

Local Network settings:
FQDN:

Remote Network Settings:

Then edit the new Receive Connector so nothing is ticked on the Authentication Tab

Then make sure Anonymous users is selected on the Permissions Groups tab


Once this is done, open up Exchange PowerShell and allow anonymous users to authenticate using:

Get-ReceiveConnector RelayConnector | Add-ADPermission -User “NT AUTHORITY\ANONYMOUS LOGON” -ExtendedRights “ms-Exch-SMTP-Accept-Any-Recipient”

You should then be able to relay from you own subnet to external IPs.

I hope this tip helps you out... show your appreciation by clicking on an advert on the site.